org.apache.maven.artifact.repository.metadata.io.xpp3
Class MetadataXpp3Reader

java.lang.Object
  extended by org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader

public class MetadataXpp3Reader
extends Object

Class MetadataXpp3Reader.

Version:
$Revision$ $Date$

Constructor Summary
MetadataXpp3Reader()
           
 
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.
 boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String defaultValue)
          Method getBooleanValue.
 byte getByteValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method getByteValue.
 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.
 Date getDateValue(String s, String attribute, 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.
 Metadata read(InputStream in)
          Method read.
 Metadata read(InputStream in, boolean strict)
          Method read.
 Metadata read(Reader reader)
           
 Metadata 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

MetadataXpp3Reader

public MetadataXpp3Reader()
Method Detail

getAddDefaultEntities

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

Returns:
boolean

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 -
Returns:
boolean
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getBooleanValue

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

getByteValue

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

getDateValue

public 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 -
parser -
attribute -
Returns:
java.util.Date
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 -
Returns:
java.util.Date
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 -
Returns:
double
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 -
Returns:
float
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 -
Returns:
int
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 -
Returns:
long
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 -
Returns:
String
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 -
Returns:
short
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getTrimmedValue

public String getTrimmedValue(String s)
Method getTrimmedValue.

Parameters:
s -
Returns:
String

read

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

read

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

read

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

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

read

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

Parameters:
in -
Returns:
Metadata
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 © 2001-2010 The Apache Software Foundation. All Rights Reserved.