org.apache.maven.model.io.stax
Class MavenStaxReader

java.lang.Object
  extended by org.apache.maven.model.io.stax.MavenStaxReader

public class MavenStaxReader
extends java.lang.Object

Class MavenStaxReader.

Version:
$Revision$ $Date$

Constructor Summary
MavenStaxReader()
           
 
Method Summary
 org.codehaus.plexus.util.xml.Xpp3Dom buildDom(javax.xml.stream.XMLStreamReader xmlStreamReader)
          Method buildDom
 boolean getBooleanValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader)
          Method getBooleanValue
 char getCharacterValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader)
          Method getCharacterValue
 java.util.Date getDateValue(java.lang.String s, java.lang.String attribute, java.lang.String dateFormat, javax.xml.stream.XMLStreamReader xmlStreamReader)
          Method getDateValue
 double getDoubleValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getDoubleValue
 float getFloatValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getFloatValue
 int getIntegerValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getIntegerValue
 long getLongValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getLongValue
 java.lang.String getRequiredAttributeValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getRequiredAttributeValue
 short getShortValue(java.lang.String s, java.lang.String attribute, javax.xml.stream.XMLStreamReader xmlStreamReader, boolean strict)
          Method getShortValue
 java.lang.String getTrimmedValue(java.lang.String s)
          Method getTrimmedValue
 Model read(java.io.Reader reader)
          Method read
 Model read(java.io.Reader reader, boolean strict)
          Method read
 Model read(java.lang.String filePath)
          Method read
 Model read(java.lang.String filePath, boolean strict)
          Method read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenStaxReader

public MavenStaxReader()
Method Detail

buildDom

public org.codehaus.plexus.util.xml.Xpp3Dom buildDom(javax.xml.stream.XMLStreamReader xmlStreamReader)
                                              throws javax.xml.stream.XMLStreamException
Method buildDom

Parameters:
xmlStreamReader -
Throws:
javax.xml.stream.XMLStreamException

getBooleanValue

public boolean getBooleanValue(java.lang.String s,
                               java.lang.String attribute,
                               javax.xml.stream.XMLStreamReader xmlStreamReader)
                        throws javax.xml.stream.XMLStreamException
Method getBooleanValue

Parameters:
s -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getCharacterValue

public char getCharacterValue(java.lang.String s,
                              java.lang.String attribute,
                              javax.xml.stream.XMLStreamReader xmlStreamReader)
                       throws javax.xml.stream.XMLStreamException
Method getCharacterValue

Parameters:
s -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getDateValue

public java.util.Date getDateValue(java.lang.String s,
                                   java.lang.String attribute,
                                   java.lang.String dateFormat,
                                   javax.xml.stream.XMLStreamReader xmlStreamReader)
                            throws javax.xml.stream.XMLStreamException
Method getDateValue

Parameters:
s -
xmlStreamReader -
dateFormat -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getDoubleValue

public double getDoubleValue(java.lang.String s,
                             java.lang.String attribute,
                             javax.xml.stream.XMLStreamReader xmlStreamReader,
                             boolean strict)
                      throws javax.xml.stream.XMLStreamException
Method getDoubleValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getFloatValue

public float getFloatValue(java.lang.String s,
                           java.lang.String attribute,
                           javax.xml.stream.XMLStreamReader xmlStreamReader,
                           boolean strict)
                    throws javax.xml.stream.XMLStreamException
Method getFloatValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getIntegerValue

public int getIntegerValue(java.lang.String s,
                           java.lang.String attribute,
                           javax.xml.stream.XMLStreamReader xmlStreamReader,
                           boolean strict)
                    throws javax.xml.stream.XMLStreamException
Method getIntegerValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getLongValue

public long getLongValue(java.lang.String s,
                         java.lang.String attribute,
                         javax.xml.stream.XMLStreamReader xmlStreamReader,
                         boolean strict)
                  throws javax.xml.stream.XMLStreamException
Method getLongValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getRequiredAttributeValue

public java.lang.String getRequiredAttributeValue(java.lang.String s,
                                                  java.lang.String attribute,
                                                  javax.xml.stream.XMLStreamReader xmlStreamReader,
                                                  boolean strict)
                                           throws javax.xml.stream.XMLStreamException
Method getRequiredAttributeValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getShortValue

public short getShortValue(java.lang.String s,
                           java.lang.String attribute,
                           javax.xml.stream.XMLStreamReader xmlStreamReader,
                           boolean strict)
                    throws javax.xml.stream.XMLStreamException
Method getShortValue

Parameters:
s -
strict -
xmlStreamReader -
attribute -
Throws:
javax.xml.stream.XMLStreamException

getTrimmedValue

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

Parameters:
s -

read

public Model read(java.io.Reader reader,
                  boolean strict)
           throws java.io.IOException,
                  javax.xml.stream.XMLStreamException
Method read

Parameters:
reader -
strict -
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

read

public Model read(java.io.Reader reader)
           throws java.io.IOException,
                  javax.xml.stream.XMLStreamException
Method read

Parameters:
reader -
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

read

public Model read(java.lang.String filePath,
                  boolean strict)
           throws java.io.IOException,
                  javax.xml.stream.XMLStreamException
Method read

Parameters:
filePath -
strict -
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

read

public Model read(java.lang.String filePath)
           throws java.io.IOException,
                  javax.xml.stream.XMLStreamException
Method read

Parameters:
filePath -
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException


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