Class SettingsXpp3Reader
- java.lang.Object
-
- org.apache.maven.settings.io.xpp3.SettingsXpp3Reader
-
public class SettingsXpp3Reader extends java.lang.ObjectClass SettingsXpp3Reader.- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSettingsXpp3Reader.ContentTransformer
-
Field Summary
Fields Modifier and Type Field Description private booleanaddDefaultEntitiesIf set the parser will be loaded with all single characters from the XHTML specification.SettingsXpp3Reader.ContentTransformercontentTransformerField contentTransformer.
-
Constructor Summary
Constructors Constructor Description SettingsXpp3Reader()SettingsXpp3Reader(SettingsXpp3Reader.ContentTransformer contentTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancheckFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String tagName, java.lang.String alias, java.util.Set parsed)Method checkFieldWithDuplicate.private voidcheckUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String attribute, java.lang.String tagName, boolean strict)Method checkUnknownAttribute.private voidcheckUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method checkUnknownElement.booleangetAddDefaultEntities()Returns the state of the "add default entities" flag.private booleangetBooleanValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)Method getBooleanValue.private booleangetBooleanValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String defaultValue)Method getBooleanValue.private bytegetByteValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getByteValue.private chargetCharacterValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)Method getCharacterValue.private java.util.DategetDateValue(java.lang.String s, java.lang.String attribute, java.lang.String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)Method getDateValue.private java.util.DategetDateValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)Method getDateValue.private doublegetDoubleValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getDoubleValue.private floatgetFloatValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getFloatValue.private intgetIntegerValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getIntegerValue.private longgetLongValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getLongValue.private java.lang.StringgetRequiredAttributeValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getRequiredAttributeValue.private shortgetShortValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method getShortValue.private java.lang.StringgetTrimmedValue(java.lang.String s)Method getTrimmedValue.private java.lang.StringinterpolatedTrimmed(java.lang.String value, java.lang.String context)Method interpolatedTrimmed.private intnextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)Method nextTag.private ActivationparseActivation(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseActivation.private ActivationFileparseActivationFile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseActivationFile.private ActivationOSparseActivationOS(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseActivationOS.private ActivationPropertyparseActivationProperty(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseActivationProperty.private IdentifiableBaseparseIdentifiableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseIdentifiableBase.private MirrorparseMirror(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseMirror.private ProfileparseProfile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseProfile.private ProxyparseProxy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseProxy.private RepositoryparseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseRepository.private RepositoryBaseparseRepositoryBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseRepositoryBase.private RepositoryPolicyparseRepositoryPolicy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseRepositoryPolicy.private ServerparseServer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseServer.private SettingsparseSettings(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseSettings.private TrackableBaseparseTrackableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method parseTrackableBase.Settingsread(java.io.InputStream in)Method read.Settingsread(java.io.InputStream in, boolean strict)Method read.Settingsread(java.io.Reader reader)Settingsread(java.io.Reader reader, boolean strict)private Settingsread(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)Method read.voidsetAddDefaultEntities(boolean addDefaultEntities)Sets the state of the "add default entities" flag.
-
-
-
Field Detail
-
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 Detail
-
SettingsXpp3Reader
public SettingsXpp3Reader()
-
SettingsXpp3Reader
public SettingsXpp3Reader(SettingsXpp3Reader.ContentTransformer contentTransformer)
-
-
Method Detail
-
checkFieldWithDuplicate
private boolean checkFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String tagName, java.lang.String alias, java.util.Set parsed) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod checkFieldWithDuplicate.- Parameters:
parser-parsed-alias-tagName-- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
checkUnknownAttribute
private void checkUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String attribute, java.lang.String tagName, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOExceptionMethod checkUnknownAttribute.- Parameters:
parser-strict-tagName-attribute-- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
checkUnknownElement
private void checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, java.io.IOExceptionMethod checkUnknownElement.- Parameters:
parser-strict-- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOException
-
getAddDefaultEntities
public boolean getAddDefaultEntities()
Returns the state of the "add default entities" flag.- Returns:
- boolean
-
getBooleanValue
private boolean getBooleanValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getBooleanValue.- Parameters:
s-parser-attribute-- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getBooleanValue
private boolean getBooleanValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String defaultValue) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getBooleanValue.- Parameters:
s-defaultValue-parser-attribute-- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getByteValue
private byte getByteValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getByteValue.- Parameters:
s-strict-parser-attribute-- Returns:
- byte
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getCharacterValue
private char getCharacterValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getCharacterValue.- Parameters:
s-parser-attribute-- Returns:
- char
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getDateValue
private java.util.Date getDateValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getDateValue.- Parameters:
s-parser-attribute-- Returns:
- Date
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getDateValue
private java.util.Date getDateValue(java.lang.String s, java.lang.String attribute, java.lang.String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getDateValue.- Parameters:
s-parser-dateFormat-attribute-- Returns:
- Date
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getDoubleValue
private double getDoubleValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getDoubleValue.- Parameters:
s-strict-parser-attribute-- Returns:
- double
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getFloatValue
private float getFloatValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getFloatValue.- Parameters:
s-strict-parser-attribute-- Returns:
- float
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getIntegerValue
private int getIntegerValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getIntegerValue.- Parameters:
s-strict-parser-attribute-- Returns:
- int
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getLongValue
private long getLongValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getLongValue.- Parameters:
s-strict-parser-attribute-- Returns:
- long
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getRequiredAttributeValue
private java.lang.String getRequiredAttributeValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getRequiredAttributeValue.- Parameters:
s-strict-parser-attribute-- Returns:
- String
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getShortValue
private short getShortValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod getShortValue.- Parameters:
s-strict-parser-attribute-- Returns:
- short
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
getTrimmedValue
private java.lang.String getTrimmedValue(java.lang.String s)
Method getTrimmedValue.- Parameters:
s-- Returns:
- String
-
interpolatedTrimmed
private java.lang.String interpolatedTrimmed(java.lang.String value, java.lang.String context)Method interpolatedTrimmed.- Parameters:
value-context-- Returns:
- String
-
nextTag
private int nextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionMethod nextTag.- Parameters:
parser-- Returns:
- int
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
read
public Settings read(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
reader-strict-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException- See Also:
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Settings read(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
reader-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException- See Also:
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Settings read(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.- Parameters:
in-strict-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
read
public Settings read(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.- Parameters:
in-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseActivation
private Activation parseActivation(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseActivation.- Parameters:
parser-strict-- Returns:
- Activation
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseActivationFile
private ActivationFile parseActivationFile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseActivationFile.- Parameters:
parser-strict-- Returns:
- ActivationFile
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseActivationOS
private ActivationOS parseActivationOS(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseActivationOS.- Parameters:
parser-strict-- Returns:
- ActivationOS
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseActivationProperty
private ActivationProperty parseActivationProperty(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseActivationProperty.- Parameters:
parser-strict-- Returns:
- ActivationProperty
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseIdentifiableBase
private IdentifiableBase parseIdentifiableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseIdentifiableBase.- Parameters:
parser-strict-- Returns:
- IdentifiableBase
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseMirror
private Mirror parseMirror(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseMirror.- Parameters:
parser-strict-- Returns:
- Mirror
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseProfile
private Profile parseProfile(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseProfile.- Parameters:
parser-strict-- Returns:
- Profile
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseProxy
private Proxy parseProxy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseProxy.- Parameters:
parser-strict-- Returns:
- Proxy
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseRepository
private Repository parseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseRepository.- Parameters:
parser-strict-- Returns:
- Repository
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseRepositoryBase
private RepositoryBase parseRepositoryBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseRepositoryBase.- Parameters:
parser-strict-- Returns:
- RepositoryBase
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseRepositoryPolicy
private RepositoryPolicy parseRepositoryPolicy(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseRepositoryPolicy.- Parameters:
parser-strict-- Returns:
- RepositoryPolicy
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseServer
private Server parseServer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseServer.- Parameters:
parser-strict-- Returns:
- Server
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseSettings
private Settings parseSettings(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseSettings.- Parameters:
parser-strict-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
parseTrackableBase
private TrackableBase parseTrackableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseTrackableBase.- Parameters:
parser-strict-- Returns:
- TrackableBase
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
read
private Settings read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.- Parameters:
parser-strict-- Returns:
- Settings
- Throws:
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
setAddDefaultEntities
public void setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag.- Parameters:
addDefaultEntities-
-
-