Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » richParser » [javadoc | source]
org.apache.xmlbeans.impl.richParser
public interface: XMLStreamReaderExt [javadoc | source]

All Implemented Interfaces:
    XMLStreamReader

All Known Implementing Classes:
    XMLStreamReaderExtImpl

This interface extends the simple XMLStreamReader interface adding methods to get java objects asociated with schemas simple types like: ints, long, BigIntegers, Dates etc Note: Given the fact that an implemetation of this interface will not run validation in the stream, we will not include support for lists, enumeration and unions. They might be possible to introduce but the user has to push the corect schema type. Because usualy the backends are not list/union aware, there would be not performance win from this. If interest rises for this, support should be added. Author: Cezar Andrei (cezar.andrei at bea.com) Date: Nov 14, 2003
Field Summary
public static final  int WS_PRESERVE     
public static final  int WS_REPLACE     
public static final  int WS_COLLAPSE     
Method from org.apache.xmlbeans.impl.richParser.XMLStreamReaderExt Summary:
getAttributeBase64Value,   getAttributeBase64Value,   getAttributeBigDecimalValue,   getAttributeBigDecimalValue,   getAttributeBigIntegerValue,   getAttributeBigIntegerValue,   getAttributeBooleanValue,   getAttributeBooleanValue,   getAttributeByteValue,   getAttributeByteValue,   getAttributeCalendarValue,   getAttributeCalendarValue,   getAttributeDateValue,   getAttributeDateValue,   getAttributeDoubleValue,   getAttributeDoubleValue,   getAttributeFloatValue,   getAttributeFloatValue,   getAttributeGDateValue,   getAttributeGDateValue,   getAttributeGDurationValue,   getAttributeGDurationValue,   getAttributeHexBinaryValue,   getAttributeHexBinaryValue,   getAttributeIntValue,   getAttributeIntValue,   getAttributeLongValue,   getAttributeLongValue,   getAttributeQNameValue,   getAttributeQNameValue,   getAttributeShortValue,   getAttributeShortValue,   getAttributeStringValue,   getAttributeStringValue,   getAttributeStringValue,   getAttributeStringValue,   getBase64Value,   getBigDecimalValue,   getBigIntegerValue,   getBooleanValue,   getByteValue,   getCalendarValue,   getDateValue,   getDoubleValue,   getFloatValue,   getGDateValue,   getGDurationValue,   getHexBinaryValue,   getIntValue,   getLongValue,   getQNameValue,   getShortValue,   getStringValue,   getStringValue,   setDefaultValue
Method from org.apache.xmlbeans.impl.richParser.XMLStreamReaderExt Detail:
 public InputStream getAttributeBase64Value(int index) throws XMLStreamException
    Returns the decoded base64 value as anInputStream.
 public InputStream getAttributeBase64Value(String uri,
    String local) throws XMLStreamException
    Returns the decoded base64 value as anInputStream.
 public BigDecimal getAttributeBigDecimalValue(int index) throws XMLStreamException
 public BigDecimal getAttributeBigDecimalValue(String uri,
    String local) throws XMLStreamException
 public BigInteger getAttributeBigIntegerValue(int index) throws XMLStreamException
 public BigInteger getAttributeBigIntegerValue(String uri,
    String local) throws XMLStreamException
 public boolean getAttributeBooleanValue(int index) throws XMLStreamException
    Returns the value as a boolean.
 public boolean getAttributeBooleanValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a boolean.
 public byte getAttributeByteValue(int index) throws XMLStreamException
    Returns the value as a byte.
 public byte getAttributeByteValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a byte.
 public XmlCalendar getAttributeCalendarValue(int index) throws XMLStreamException
 public XmlCalendar getAttributeCalendarValue(String uri,
    String local) throws XMLStreamException
 public Date getAttributeDateValue(int index) throws XMLStreamException
 public Date getAttributeDateValue(String uri,
    String local) throws XMLStreamException
 public double getAttributeDoubleValue(int index) throws XMLStreamException
    Returns the value as a double.
 public double getAttributeDoubleValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a double.
 public float getAttributeFloatValue(int index) throws XMLStreamException
    Returns the value as a float.
 public float getAttributeFloatValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a float.
 public GDate getAttributeGDateValue(int index) throws XMLStreamException
 public GDate getAttributeGDateValue(String uri,
    String local) throws XMLStreamException
 public GDuration getAttributeGDurationValue(int index) throws XMLStreamException
 public GDuration getAttributeGDurationValue(String uri,
    String local) throws XMLStreamException
 public InputStream getAttributeHexBinaryValue(int index) throws XMLStreamException
    Returns the decoded hexbinary value as an InputStream.
 public InputStream getAttributeHexBinaryValue(String uri,
    String local) throws XMLStreamException
    Returns the decoded hexbinary value as an InputStream.
 public int getAttributeIntValue(int index) throws XMLStreamException
    Returns the value as an int.
 public int getAttributeIntValue(String uri,
    String local) throws XMLStreamException
    Returns the value as an int.
 public long getAttributeLongValue(int index) throws XMLStreamException
    Returns the value as a long.
 public long getAttributeLongValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a long.
 public QName getAttributeQNameValue(int index) throws XMLStreamException
 public QName getAttributeQNameValue(String uri,
    String local) throws XMLStreamException
 public short getAttributeShortValue(int index) throws XMLStreamException
    Returns the value as a short.
 public short getAttributeShortValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a short.
 public String getAttributeStringValue(int index) throws XMLStreamException
    Returns the value as a String .
 public String getAttributeStringValue(int index,
    int wsStyle) throws XMLStreamException
    Returns the value as a String , with wsStyle applied.
 public String getAttributeStringValue(String uri,
    String local) throws XMLStreamException
    Returns the value as a String .
 public String getAttributeStringValue(String uri,
    String local,
    int wsStyle) throws XMLStreamException
    Returns the value as a String , with wsStyle applied.
 public InputStream getBase64Value() throws XMLStreamException
    Returns the decoded base64 value as anInputStream.
 public BigDecimal getBigDecimalValue() throws XMLStreamException
 public BigInteger getBigIntegerValue() throws XMLStreamException
 public boolean getBooleanValue() throws XMLStreamException
    Returns the value as a boolean.
 public byte getByteValue() throws XMLStreamException
    Returns the value as a byte.
 public XmlCalendar getCalendarValue() throws XMLStreamException
 public Date getDateValue() throws XMLStreamException
 public double getDoubleValue() throws XMLStreamException
    Returns the value as a double.
 public float getFloatValue() throws XMLStreamException
    Returns the value as a float.
 public GDate getGDateValue() throws XMLStreamException
 public GDuration getGDurationValue() throws XMLStreamException
 public InputStream getHexBinaryValue() throws XMLStreamException
    Returns the decoded hexbinary value as an InputStream.
 public int getIntValue() throws XMLStreamException
    Returns the value as an int.
 public long getLongValue() throws XMLStreamException
    Returns the value as a long.
 public QName getQNameValue() throws XMLStreamException
 public short getShortValue() throws XMLStreamException
    Returns the value as a short.
 public String getStringValue() throws XMLStreamException
    Returns the value as a String .
 public String getStringValue(int wsStyle) throws XMLStreamException
    Returns the value as a String , with wsStyle applied.
 public  void setDefaultValue(String defaultValue) throws XMLStreamException
    Sets the default value for the next getXXXValue() call. For example: setDefaultValue("7"); //the xml looks like: int i = getIntValue(); // returns 7 // from now on the default value will not apply anymore Note: Works for getAttributeXXXValue(...) too.