org.apache.maven.archetype.metadata.io.xpp3
Class ArchetypeDescriptorXpp3Reader

java.lang.Object
  extended by org.apache.maven.archetype.metadata.io.xpp3.ArchetypeDescriptorXpp3Reader

public class ArchetypeDescriptorXpp3Reader
extends Object

Class ArchetypeDescriptorXpp3Reader.

Version:
$Revision$ $Date$

Constructor Summary
ArchetypeDescriptorXpp3Reader()
           
 
Method Summary
 boolean getAddDefaultEntities()
          Returns the state of the "add default entities" flag.
 boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method getBooleanValue
 char getCharacterValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method getCharacterValue
 Date getDateValue(String s, String attribute, String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method getDateValue
 double getDoubleValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getDoubleValue
 float getFloatValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getFloatValue
 int getIntegerValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getIntegerValue
 long getLongValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getLongValue
 String getRequiredAttributeValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getRequiredAttributeValue
 short getShortValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getShortValue
 String getTrimmedValue(String s)
          Method getTrimmedValue
 ArchetypeDescriptor read(InputStream in)
          Method read
 ArchetypeDescriptor read(InputStream in, boolean strict)
          Method read
 ArchetypeDescriptor read(Reader reader)
           
 ArchetypeDescriptor read(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
 

Constructor Detail

ArchetypeDescriptorXpp3Reader

public ArchetypeDescriptorXpp3Reader()
Method Detail

getAddDefaultEntities

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


getBooleanValue

public 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 -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getCharacterValue

public 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 -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getDateValue

public 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 -
parser -
dateFormat -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getDoubleValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getFloatValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getIntegerValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getLongValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getRequiredAttributeValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getShortValue

public 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 -
strict -
parser -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getTrimmedValue

public String getTrimmedValue(String s)
Method getTrimmedValue

Parameters:
s -

read

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

read

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

read

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

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

read

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

Parameters:
in -
Throws:
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 -


Copyright © 2007-2010 Apache Software Foundation. All Rights Reserved.