org.apache.maven.model.io.xpp3
Class MavenXpp3Reader

java.lang.Object
  extended by org.apache.maven.model.io.xpp3.MavenXpp3Reader

public class MavenXpp3Reader
extends java.lang.Object

Class MavenXpp3Reader.

Version:
$Revision$ $Date$

Field Summary
private  boolean addDefaultEntities
          If set the parser till be loaded with all single characters from the XHTML specification.
 
Constructor Summary
MavenXpp3Reader()
           
 
Method Summary
 boolean getAddDefaultEntities()
          Returns the state of the "add default entities" flag.
 boolean getBooleanValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method getBooleanValue
 char getCharacterValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method getCharacterValue
 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
 double getDoubleValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getDoubleValue
 float getFloatValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getFloatValue
 int getIntegerValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getIntegerValue
 long getLongValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getLongValue
 java.lang.String getRequiredAttributeValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getRequiredAttributeValue
 short getShortValue(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getShortValue
 java.lang.String getTrimmedValue(java.lang.String s)
          Method getTrimmedValue
private  Branch parseBranch(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseBranch
private  Build parseBuild(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseBuild
private  BuildBase parseBuildBase(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseBuildBase
private  Contributor parseContributor(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseContributor
private  Dependency parseDependency(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseDependency
private  Developer parseDeveloper(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseDeveloper
private  FileSet parseFileSet(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseFileSet
private  License parseLicense(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseLicense
private  MailingList parseMailingList(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseMailingList
private  Model parseModel(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseModel
private  ModelBase parseModelBase(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseModelBase
private  Organization parseOrganization(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseOrganization
private  PackageGroup parsePackageGroup(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parsePackageGroup
private  PatternSet parsePatternSet(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parsePatternSet
private  PluginConfiguration parsePluginConfiguration(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parsePluginConfiguration
private  PluginContainer parsePluginContainer(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parsePluginContainer
private  Repository parseRepository(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseRepository
private  Resource parseResource(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseResource
private  SourceModification parseSourceModification(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseSourceModification
private  UnitTest parseUnitTest(java.lang.String tagName, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseUnitTest
private  Version parseVersion(java.lang.String tagName, 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)
           
 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

addDefaultEntities

private boolean addDefaultEntities
If set the parser till be loaded with all single characters from the XHTML specification. The entities used:

Constructor Detail

MavenXpp3Reader

public MavenXpp3Reader()
Method Detail

getAddDefaultEntities

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


getBooleanValue

public 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
Method getBooleanValue

Parameters:
s -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getCharacterValue

public 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
Method getCharacterValue

Parameters:
s -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getDateValue

public 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
Method getDateValue

Parameters:
s -
parser -
dateFormat -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getDoubleValue

public 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
Method getDoubleValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getFloatValue

public 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
Method getFloatValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getIntegerValue

public 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
Method getIntegerValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getLongValue

public 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
Method getLongValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getRequiredAttributeValue

public 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
Method getRequiredAttributeValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getShortValue

public 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
Method getShortValue

Parameters:
s -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getTrimmedValue

public java.lang.String getTrimmedValue(java.lang.String s)
Method getTrimmedValue

Parameters:
s -

parseBranch

private Branch parseBranch(java.lang.String tagName,
                           org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                           boolean strict)
                    throws java.io.IOException,
                           org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseBranch

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseBuild

private Build parseBuild(java.lang.String tagName,
                         org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                         boolean strict)
                  throws java.io.IOException,
                         org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseBuild

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseBuildBase

private BuildBase parseBuildBase(java.lang.String tagName,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                 boolean strict)
                          throws java.io.IOException,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseBuildBase

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseContributor

private Contributor parseContributor(java.lang.String tagName,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                     boolean strict)
                              throws java.io.IOException,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseContributor

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseDependency

private Dependency parseDependency(java.lang.String tagName,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                   boolean strict)
                            throws java.io.IOException,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseDependency

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseDeveloper

private Developer parseDeveloper(java.lang.String tagName,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                 boolean strict)
                          throws java.io.IOException,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseDeveloper

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseFileSet

private FileSet parseFileSet(java.lang.String tagName,
                             org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                             boolean strict)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseFileSet

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseLicense

private License parseLicense(java.lang.String tagName,
                             org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                             boolean strict)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseLicense

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseMailingList

private MailingList parseMailingList(java.lang.String tagName,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                     boolean strict)
                              throws java.io.IOException,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseMailingList

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseModel

private Model parseModel(java.lang.String tagName,
                         org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                         boolean strict)
                  throws java.io.IOException,
                         org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseModel

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseModelBase

private ModelBase parseModelBase(java.lang.String tagName,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                 boolean strict)
                          throws java.io.IOException,
                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseModelBase

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseOrganization

private Organization parseOrganization(java.lang.String tagName,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       boolean strict)
                                throws java.io.IOException,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseOrganization

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parsePackageGroup

private PackageGroup parsePackageGroup(java.lang.String tagName,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       boolean strict)
                                throws java.io.IOException,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parsePackageGroup

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parsePatternSet

private PatternSet parsePatternSet(java.lang.String tagName,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                   boolean strict)
                            throws java.io.IOException,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parsePatternSet

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parsePluginConfiguration

private PluginConfiguration parsePluginConfiguration(java.lang.String tagName,
                                                     org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                     boolean strict)
                                              throws java.io.IOException,
                                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parsePluginConfiguration

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parsePluginContainer

private PluginContainer parsePluginContainer(java.lang.String tagName,
                                             org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                             boolean strict)
                                      throws java.io.IOException,
                                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parsePluginContainer

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseRepository

private Repository parseRepository(java.lang.String tagName,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                   boolean strict)
                            throws java.io.IOException,
                                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseRepository

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseResource

private Resource parseResource(java.lang.String tagName,
                               org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                               boolean strict)
                        throws java.io.IOException,
                               org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseResource

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseSourceModification

private SourceModification parseSourceModification(java.lang.String tagName,
                                                   org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                   boolean strict)
                                            throws java.io.IOException,
                                                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseSourceModification

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseUnitTest

private UnitTest parseUnitTest(java.lang.String tagName,
                               org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                               boolean strict)
                        throws java.io.IOException,
                               org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseUnitTest

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseVersion

private Version parseVersion(java.lang.String tagName,
                             org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                             boolean strict)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseVersion

Parameters:
tagName -
strict -
parser -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

read

public Model read(java.io.Reader reader,
                  boolean strict)
           throws java.io.IOException,
                  org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
reader -
strict -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
See Also:
ReaderFactory.newXmlReader(java.io.InputStream)

read

public Model read(java.io.Reader reader)
           throws java.io.IOException,
                  org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
reader -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
See Also:
ReaderFactory.newXmlReader(java.io.InputStream)

read

public Model read(java.io.InputStream in,
                  boolean strict)
           throws java.io.IOException,
                  org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read

Parameters:
in -
strict -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

read

public Model read(java.io.InputStream in)
           throws java.io.IOException,
                  org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read

Parameters:
in -
Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

setAddDefaultEntities

public void setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag.

Parameters:
addDefaultEntities -