Class MavenXpp3Reader
java.lang.Object
org.apache.maven.model.v3_0_0.io.xpp3.MavenXpp3Reader
Class MavenXpp3Reader.
- Version:
- $Revision$ $Date$
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIf set the parser will be loaded with all single characters from the XHTML specification.Field contentTransformer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String tagName, String alias, Set parsed) Method checkFieldWithDuplicate.private voidcheckUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String attribute, String tagName, boolean strict) Method checkUnknownAttribute.private voidcheckUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method checkUnknownElement.booleanReturns the state of the "add default entities" flag.private booleangetBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getBooleanValue.private booleangetBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String defaultValue) Method getBooleanValue.private bytegetByteValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getByteValue.private chargetCharacterValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getCharacterValue.private DategetDateValue(String s, String attribute, String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getDateValue.private DategetDateValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getDateValue.private doublegetDoubleValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getDoubleValue.private floatgetFloatValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getFloatValue.private intgetIntegerValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getIntegerValue.private longgetLongValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getLongValue.private StringgetRequiredAttributeValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getRequiredAttributeValue.private shortgetShortValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getShortValue.private StringMethod getTrimmedValue.private StringinterpolatedTrimmed(String value, String context) Method interpolatedTrimmed.private intnextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method nextTag.private BranchparseBranch(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseBranch.private BuildparseBuild(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseBuild.private BuildBaseparseBuildBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseBuildBase.private ContributorparseContributor(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseContributor.private DependencyparseDependency(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseDependency.private DeveloperparseDeveloper(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseDeveloper.private FileSetparseFileSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseFileSet.private LicenseparseLicense(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseLicense.private MailingListparseMailingList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseMailingList.private ModelparseModel(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseModel.private ModelBaseparseModelBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseModelBase.private OrganizationparseOrganization(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseOrganization.private PackageGroupparsePackageGroup(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parsePackageGroup.private PatternSetparsePatternSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parsePatternSet.private PluginConfigurationparsePluginConfiguration(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parsePluginConfiguration.private PluginContainerparsePluginContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parsePluginContainer.private RepositoryparseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseRepository.private ResourceparseResource(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseResource.private SourceModificationparseSourceModification(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseSourceModification.private UnitTestparseUnitTest(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseUnitTest.private VersionparseVersion(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseVersion.read(InputStream in) Method read.read(InputStream in, boolean strict) Method read.private Modelread(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 Details
-
addDefaultEntities
private boolean addDefaultEntitiesIf 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
Field contentTransformer.
-
-
Constructor Details
-
MavenXpp3Reader
public MavenXpp3Reader() -
MavenXpp3Reader
-
-
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
Method getTrimmedValue.- Parameters:
s- a s object.- Returns:
- String
-
interpolatedTrimmed
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 Model read(Reader reader, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Parameters:
reader- a reader object.strict- a strict object.- Returns:
- Model
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.- See Also:
-
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Model read(Reader reader) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Parameters:
reader- a reader object.- Returns:
- Model
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.- See Also:
-
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Model 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:
- Model
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
read
public Model read(InputStream in) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method read.- Parameters:
in- a in object.- Returns:
- Model
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseBranch
private Branch parseBranch(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseBranch.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Branch
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseBuild
private Build parseBuild(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseBuild.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Build
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseBuildBase
private BuildBase parseBuildBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseBuildBase.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- BuildBase
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseContributor
private Contributor parseContributor(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseContributor.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Contributor
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseDependency
private Dependency parseDependency(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseDependency.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Dependency
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseDeveloper
private Developer parseDeveloper(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseDeveloper.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Developer
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseFileSet
private FileSet parseFileSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseFileSet.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- FileSet
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseLicense
private License parseLicense(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseLicense.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- License
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseMailingList
private MailingList parseMailingList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseMailingList.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- MailingList
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseModel
private Model parseModel(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseModel.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Model
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseModelBase
private ModelBase parseModelBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseModelBase.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- ModelBase
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseOrganization
private Organization parseOrganization(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseOrganization.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Organization
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parsePackageGroup
private PackageGroup parsePackageGroup(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parsePackageGroup.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PackageGroup
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parsePatternSet
private PatternSet parsePatternSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parsePatternSet.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PatternSet
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parsePluginConfiguration
private PluginConfiguration parsePluginConfiguration(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parsePluginConfiguration.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PluginConfiguration
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parsePluginContainer
private PluginContainer parsePluginContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parsePluginContainer.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PluginContainer
- 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.
-
parseResource
private Resource parseResource(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseResource.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Resource
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseSourceModification
private SourceModification parseSourceModification(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseSourceModification.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- SourceModification
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseUnitTest
private UnitTest parseUnitTest(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseUnitTest.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- UnitTest
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
parseVersion
private Version parseVersion(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseVersion.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- Version
- Throws:
IOException- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException- XmlPullParserException if any.
-
read
private Model 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:
- Model
- 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.
-