Class SettingsXpp3Reader

java.lang.Object
org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

public class SettingsXpp3Reader extends Object
Class SettingsXpp3Reader.
Version:
$Revision$ $Date$
  • Field Details

    • addDefaultEntities

      private boolean addDefaultEntities
      If set the parser will be loaded with all single characters from the XHTML specification. The entities used:
      • http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
      • http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent
      • http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent
    • contentTransformer

      public final SettingsXpp3Reader.ContentTransformer contentTransformer
      Field contentTransformer.
  • Constructor Details

  • Method Details

    • checkFieldWithDuplicate

      private boolean checkFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String tagName, String alias, Set parsed) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method checkFieldWithDuplicate.
      Parameters:
      parser - a parser object.
      parsed - a parsed object.
      alias - a alias object.
      tagName - a tagName object.
      Returns:
      boolean
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • checkUnknownAttribute

      private void checkUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String attribute, String tagName, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Method checkUnknownAttribute.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      tagName - a tagName object.
      attribute - a attribute object.
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
      IOException - IOException if any.
    • checkUnknownElement

      private void checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Method checkUnknownElement.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
      IOException - IOException if any.
    • getAddDefaultEntities

      public boolean getAddDefaultEntities()
      Returns the state of the "add default entities" flag.
      Returns:
      boolean
    • getBooleanValue

      private boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getBooleanValue.
      Parameters:
      s - a s object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      boolean
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getBooleanValue

      private boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String defaultValue) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getBooleanValue.
      Parameters:
      s - a s object.
      defaultValue - a defaultValue object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      boolean
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getByteValue

      private byte getByteValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getByteValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      byte
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getCharacterValue

      private char getCharacterValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getCharacterValue.
      Parameters:
      s - a s object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      char
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getDateValue

      private Date getDateValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getDateValue.
      Parameters:
      s - a s object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      Date
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getDateValue

      private Date getDateValue(String s, String attribute, String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getDateValue.
      Parameters:
      s - a s object.
      parser - a parser object.
      dateFormat - a dateFormat object.
      attribute - a attribute object.
      Returns:
      Date
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getDoubleValue

      private double getDoubleValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getDoubleValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      double
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getFloatValue

      private float getFloatValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getFloatValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      float
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getIntegerValue

      private int getIntegerValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getIntegerValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      int
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getLongValue

      private long getLongValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getLongValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      long
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getRequiredAttributeValue

      private String getRequiredAttributeValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getRequiredAttributeValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      String
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getShortValue

      private short getShortValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method getShortValue.
      Parameters:
      s - a s object.
      strict - a strict object.
      parser - a parser object.
      attribute - a attribute object.
      Returns:
      short
      Throws:
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • getTrimmedValue

      private String getTrimmedValue(String s)
      Method getTrimmedValue.
      Parameters:
      s - a s object.
      Returns:
      String
    • interpolatedTrimmed

      private String interpolatedTrimmed(String value, String context)
      Method interpolatedTrimmed.
      Parameters:
      value - a value object.
      context - a context object.
      Returns:
      String
    • nextTag

      private int nextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method nextTag.
      Parameters:
      parser - a parser object.
      Returns:
      int
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • read

      public Settings read(Reader reader, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Parameters:
      reader - a reader object.
      strict - a strict object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
      See Also:
      • ReaderFactory.newXmlReader(java.io.InputStream)
    • read

      public Settings read(Reader reader) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Parameters:
      reader - a reader object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
      See Also:
      • ReaderFactory.newXmlReader(java.io.InputStream)
    • read

      public Settings read(InputStream in, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method read.
      Parameters:
      in - a in object.
      strict - a strict object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • read

      public Settings read(InputStream in) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method read.
      Parameters:
      in - a in object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseActivation

      private Activation parseActivation(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseActivation.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Activation
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseActivationFile

      private ActivationFile parseActivationFile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseActivationFile.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      ActivationFile
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseActivationOS

      private ActivationOS parseActivationOS(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseActivationOS.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      ActivationOS
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseActivationProperty

      private ActivationProperty parseActivationProperty(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseActivationProperty.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      ActivationProperty
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseIdentifiableBase

      private IdentifiableBase parseIdentifiableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseIdentifiableBase.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      IdentifiableBase
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseMirror

      private Mirror parseMirror(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseMirror.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Mirror
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseProfile

      private Profile parseProfile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseProfile.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Profile
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseProxy

      private Proxy parseProxy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseProxy.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Proxy
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseRepository

      private Repository parseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseRepository.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Repository
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseRepositoryBase

      private RepositoryBase parseRepositoryBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseRepositoryBase.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      RepositoryBase
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseRepositoryPolicy

      private RepositoryPolicy parseRepositoryPolicy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseRepositoryPolicy.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      RepositoryPolicy
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseServer

      private Server parseServer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseServer.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Server
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseSettings

      private Settings parseSettings(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseSettings.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • parseTrackableBase

      private TrackableBase parseTrackableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method parseTrackableBase.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      TrackableBase
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • read

      private Settings read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Method read.
      Parameters:
      parser - a parser object.
      strict - a strict object.
      Returns:
      Settings
      Throws:
      IOException - IOException if any.
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - XmlPullParserException if any.
    • setAddDefaultEntities

      public void setAddDefaultEntities(boolean addDefaultEntities)
      Sets the state of the "add default entities" flag.
      Parameters:
      addDefaultEntities - a addDefaultEntities object.