|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.model.v3_0_0.io.xpp3.MavenXpp3Reader
public class MavenXpp3Reader
Class MavenXpp3Reader.
| Field Summary | |
|---|---|
private boolean |
addDefaultEntities
If set the parser will be loaded with all single characters from the XHTML specification. |
| Constructor Summary | |
|---|---|
MavenXpp3Reader()
|
|
| Method Summary | |
|---|---|
private boolean |
checkFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
java.lang.String tagName,
java.lang.String alias,
java.util.Set parsed)
Method checkFieldWithDuplicate. |
private void |
checkUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
java.lang.String attribute,
java.lang.String tagName,
boolean strict)
Method checkUnknownAttribute. |
private void |
checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method checkUnknownElement. |
boolean |
getAddDefaultEntities()
Returns the state of the "add default entities" flag. |
private boolean |
getBooleanValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
Method getBooleanValue. |
private boolean |
getBooleanValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
java.lang.String defaultValue)
Method getBooleanValue. |
private byte |
getByteValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getByteValue. |
private char |
getCharacterValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
Method getCharacterValue. |
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)
Method getDateValue. |
private java.util.Date |
getDateValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
Method getDateValue. |
private double |
getDoubleValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getDoubleValue. |
private float |
getFloatValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getFloatValue. |
private int |
getIntegerValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getIntegerValue. |
private long |
getLongValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getLongValue. |
private java.lang.String |
getRequiredAttributeValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getRequiredAttributeValue. |
private short |
getShortValue(java.lang.String s,
java.lang.String attribute,
org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method getShortValue. |
private java.lang.String |
getTrimmedValue(java.lang.String s)
Method getTrimmedValue. |
private Branch |
parseBranch(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseBranch. |
private Build |
parseBuild(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseBuild. |
private BuildBase |
parseBuildBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseBuildBase. |
private Contributor |
parseContributor(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseContributor. |
private Dependency |
parseDependency(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseDependency. |
private Developer |
parseDeveloper(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseDeveloper. |
private FileSet |
parseFileSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseFileSet. |
private License |
parseLicense(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseLicense. |
private MailingList |
parseMailingList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseMailingList. |
private Model |
parseModel(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseModel. |
private ModelBase |
parseModelBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseModelBase. |
private Organization |
parseOrganization(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseOrganization. |
private PackageGroup |
parsePackageGroup(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePackageGroup. |
private PatternSet |
parsePatternSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePatternSet. |
private PluginConfiguration |
parsePluginConfiguration(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePluginConfiguration. |
private PluginContainer |
parsePluginContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePluginContainer. |
private Repository |
parseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseRepository. |
private Resource |
parseResource(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseResource. |
private SourceModification |
parseSourceModification(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseSourceModification. |
private UnitTest |
parseUnitTest(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseUnitTest. |
private Version |
parseVersion(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseVersion. |
Model |
read(java.io.InputStream in)
Method read. |
Model |
read(java.io.InputStream in,
boolean strict)
Method read. |
Model |
read(java.io.Reader reader)
|
Model |
read(java.io.Reader reader,
boolean strict)
|
private Model |
read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method read. |
void |
setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean addDefaultEntities
| Constructor Detail |
|---|
public MavenXpp3Reader()
| Method Detail |
|---|
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.XmlPullParserException
parser - parsed - alias - tagName -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.IOException
parser - strict - tagName - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOException
private void checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
java.io.IOException
parser - strict -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOExceptionpublic boolean getAddDefaultEntities()
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.XmlPullParserException
s - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - defaultValue - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - parser - dateFormat - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserException
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.XmlPullParserException
s - strict - parser - attribute -
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate java.lang.String getTrimmedValue(java.lang.String s)
s -
private Branch parseBranch(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Build parseBuild(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private BuildBase parseBuildBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Contributor parseContributor(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Dependency parseDependency(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Developer parseDeveloper(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private FileSet parseFileSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private License parseLicense(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private MailingList parseMailingList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Model parseModel(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private ModelBase parseModelBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Organization parseOrganization(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PackageGroup parsePackageGroup(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PatternSet parsePatternSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginConfiguration parsePluginConfiguration(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginContainer parsePluginContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Repository parseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Resource parseResource(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private SourceModification parseSourceModification(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private UnitTest parseUnitTest(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Version parseVersion(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public Model read(java.io.Reader reader,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionReaderFactory.newXmlReader(java.io.InputStream)
public Model read(java.io.Reader reader)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionReaderFactory.newXmlReader(java.io.InputStream)
public Model read(java.io.InputStream in,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
in - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public Model read(java.io.InputStream in)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
in -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private Model read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict -
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic void setAddDefaultEntities(boolean addDefaultEntities)
addDefaultEntities -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||