|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLStreamReaderExt
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 | |
---|---|
static int |
WS_COLLAPSE
|
static int |
WS_PRESERVE
|
static int |
WS_REPLACE
|
Fields inherited from interface javax.xml.stream.XMLStreamConstants |
---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
Method Summary | |
---|---|
java.io.InputStream |
getAttributeBase64Value(int index)
Returns the decoded base64 value as anInputStream. |
java.io.InputStream |
getAttributeBase64Value(java.lang.String uri,
java.lang.String local)
Returns the decoded base64 value as anInputStream. |
java.math.BigDecimal |
getAttributeBigDecimalValue(int index)
Returns the value as a BigDecimal . |
java.math.BigDecimal |
getAttributeBigDecimalValue(java.lang.String uri,
java.lang.String local)
Returns the value as a BigDecimal . |
java.math.BigInteger |
getAttributeBigIntegerValue(int index)
Returns the value as a BigInteger . |
java.math.BigInteger |
getAttributeBigIntegerValue(java.lang.String uri,
java.lang.String local)
Returns the value as a BigInteger . |
boolean |
getAttributeBooleanValue(int index)
Returns the value as a boolean. |
boolean |
getAttributeBooleanValue(java.lang.String uri,
java.lang.String local)
Returns the value as a boolean. |
byte |
getAttributeByteValue(int index)
Returns the value as a byte. |
byte |
getAttributeByteValue(java.lang.String uri,
java.lang.String local)
Returns the value as a byte. |
XmlCalendar |
getAttributeCalendarValue(int index)
Returns the value as an XmlCalendar which extends Calendar . |
XmlCalendar |
getAttributeCalendarValue(java.lang.String uri,
java.lang.String local)
Returns the value as an XmlCalendar which extends Calendar . |
java.util.Date |
getAttributeDateValue(int index)
Returns the value as a Date . |
java.util.Date |
getAttributeDateValue(java.lang.String uri,
java.lang.String local)
Returns the value as a Date . |
double |
getAttributeDoubleValue(int index)
Returns the value as a double. |
double |
getAttributeDoubleValue(java.lang.String uri,
java.lang.String local)
Returns the value as a double. |
float |
getAttributeFloatValue(int index)
Returns the value as a float. |
float |
getAttributeFloatValue(java.lang.String uri,
java.lang.String local)
Returns the value as a float. |
GDate |
getAttributeGDateValue(int index)
Returns the value as a GDate . |
GDate |
getAttributeGDateValue(java.lang.String uri,
java.lang.String local)
Returns the value as a GDate . |
GDuration |
getAttributeGDurationValue(int index)
Returns the value as a GDuration . |
GDuration |
getAttributeGDurationValue(java.lang.String uri,
java.lang.String local)
Returns the value as a GDuration . |
java.io.InputStream |
getAttributeHexBinaryValue(int index)
Returns the decoded hexbinary value as an InputStream. |
java.io.InputStream |
getAttributeHexBinaryValue(java.lang.String uri,
java.lang.String local)
Returns the decoded hexbinary value as an InputStream. |
int |
getAttributeIntValue(int index)
Returns the value as an int. |
int |
getAttributeIntValue(java.lang.String uri,
java.lang.String local)
Returns the value as an int. |
long |
getAttributeLongValue(int index)
Returns the value as a long. |
long |
getAttributeLongValue(java.lang.String uri,
java.lang.String local)
Returns the value as a long. |
javax.xml.namespace.QName |
getAttributeQNameValue(int index)
Returns the value as a QName . |
javax.xml.namespace.QName |
getAttributeQNameValue(java.lang.String uri,
java.lang.String local)
Returns the value as a QName . |
short |
getAttributeShortValue(int index)
Returns the value as a short. |
short |
getAttributeShortValue(java.lang.String uri,
java.lang.String local)
Returns the value as a short. |
java.lang.String |
getAttributeStringValue(int index)
Returns the value as a String . |
java.lang.String |
getAttributeStringValue(int index,
int wsStyle)
Returns the value as a String , with wsStyle applied. |
java.lang.String |
getAttributeStringValue(java.lang.String uri,
java.lang.String local)
Returns the value as a String . |
java.lang.String |
getAttributeStringValue(java.lang.String uri,
java.lang.String local,
int wsStyle)
Returns the value as a String , with wsStyle applied. |
java.io.InputStream |
getBase64Value()
Returns the decoded base64 value as anInputStream. |
java.math.BigDecimal |
getBigDecimalValue()
Returns the value as a BigDecimal . |
java.math.BigInteger |
getBigIntegerValue()
Returns the value as a BigInteger . |
boolean |
getBooleanValue()
Returns the value as a boolean. |
byte |
getByteValue()
Returns the value as a byte. |
XmlCalendar |
getCalendarValue()
Returns the value as an XmlCalendar which extends Calendar . |
java.util.Date |
getDateValue()
Returns the value as a Date . |
double |
getDoubleValue()
Returns the value as a double. |
float |
getFloatValue()
Returns the value as a float. |
GDate |
getGDateValue()
Returns the value as a GDate . |
GDuration |
getGDurationValue()
Returns the value as a GDuration . |
java.io.InputStream |
getHexBinaryValue()
Returns the decoded hexbinary value as an InputStream. |
int |
getIntValue()
Returns the value as an int. |
long |
getLongValue()
Returns the value as a long. |
javax.xml.namespace.QName |
getQNameValue()
Returns the value as a QName . |
short |
getShortValue()
Returns the value as a short. |
java.lang.String |
getStringValue()
Returns the value as a String . |
java.lang.String |
getStringValue(int wsStyle)
Returns the value as a String , with wsStyle applied. |
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value for the next getXXXValue() call. |
Methods inherited from interface javax.xml.stream.XMLStreamReader |
---|
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet |
Field Detail |
---|
static final int WS_PRESERVE
static final int WS_REPLACE
static final int WS_COLLAPSE
Method Detail |
---|
java.lang.String getStringValue() throws javax.xml.stream.XMLStreamException
String
.
javax.xml.stream.XMLStreamException
java.lang.String getStringValue(int wsStyle) throws javax.xml.stream.XMLStreamException
String
, with wsStyle applied.
javax.xml.stream.XMLStreamException
boolean getBooleanValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
byte getByteValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
short getShortValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
int getIntValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
long getLongValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.math.BigInteger getBigIntegerValue() throws javax.xml.stream.XMLStreamException
BigInteger
.
javax.xml.stream.XMLStreamException
java.math.BigDecimal getBigDecimalValue() throws javax.xml.stream.XMLStreamException
BigDecimal
.
javax.xml.stream.XMLStreamException
float getFloatValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
double getDoubleValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getHexBinaryValue() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getBase64Value() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
XmlCalendar getCalendarValue() throws javax.xml.stream.XMLStreamException
Calendar
.
javax.xml.stream.XMLStreamException
java.util.Date getDateValue() throws javax.xml.stream.XMLStreamException
Date
.
javax.xml.stream.XMLStreamException
GDate getGDateValue() throws javax.xml.stream.XMLStreamException
GDate
.
javax.xml.stream.XMLStreamException
GDuration getGDurationValue() throws javax.xml.stream.XMLStreamException
GDuration
.
javax.xml.stream.XMLStreamException
javax.xml.namespace.QName getQNameValue() throws javax.xml.stream.XMLStreamException
QName
.
javax.xml.stream.XMLStreamException
java.lang.String getAttributeStringValue(int index) throws javax.xml.stream.XMLStreamException
String
.
javax.xml.stream.XMLStreamException
java.lang.String getAttributeStringValue(int index, int wsStyle) throws javax.xml.stream.XMLStreamException
String
, with wsStyle applied.
javax.xml.stream.XMLStreamException
boolean getAttributeBooleanValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
byte getAttributeByteValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
short getAttributeShortValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
int getAttributeIntValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
long getAttributeLongValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.math.BigInteger getAttributeBigIntegerValue(int index) throws javax.xml.stream.XMLStreamException
BigInteger
.
javax.xml.stream.XMLStreamException
java.math.BigDecimal getAttributeBigDecimalValue(int index) throws javax.xml.stream.XMLStreamException
BigDecimal
.
javax.xml.stream.XMLStreamException
float getAttributeFloatValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
double getAttributeDoubleValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getAttributeHexBinaryValue(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getAttributeBase64Value(int index) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
XmlCalendar getAttributeCalendarValue(int index) throws javax.xml.stream.XMLStreamException
Calendar
.
javax.xml.stream.XMLStreamException
java.util.Date getAttributeDateValue(int index) throws javax.xml.stream.XMLStreamException
Date
.
javax.xml.stream.XMLStreamException
GDate getAttributeGDateValue(int index) throws javax.xml.stream.XMLStreamException
GDate
.
javax.xml.stream.XMLStreamException
GDuration getAttributeGDurationValue(int index) throws javax.xml.stream.XMLStreamException
GDuration
.
javax.xml.stream.XMLStreamException
javax.xml.namespace.QName getAttributeQNameValue(int index) throws javax.xml.stream.XMLStreamException
QName
.
javax.xml.stream.XMLStreamException
java.lang.String getAttributeStringValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
String
.
javax.xml.stream.XMLStreamException
java.lang.String getAttributeStringValue(java.lang.String uri, java.lang.String local, int wsStyle) throws javax.xml.stream.XMLStreamException
String
, with wsStyle applied.
javax.xml.stream.XMLStreamException
boolean getAttributeBooleanValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
byte getAttributeByteValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
short getAttributeShortValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
int getAttributeIntValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
long getAttributeLongValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.math.BigInteger getAttributeBigIntegerValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
BigInteger
.
javax.xml.stream.XMLStreamException
java.math.BigDecimal getAttributeBigDecimalValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
BigDecimal
.
javax.xml.stream.XMLStreamException
float getAttributeFloatValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
double getAttributeDoubleValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getAttributeHexBinaryValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
java.io.InputStream getAttributeBase64Value(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
XmlCalendar getAttributeCalendarValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
Calendar
.
javax.xml.stream.XMLStreamException
java.util.Date getAttributeDateValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
Date
.
javax.xml.stream.XMLStreamException
GDate getAttributeGDateValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
GDate
.
javax.xml.stream.XMLStreamException
GDuration getAttributeGDurationValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
GDuration
.
javax.xml.stream.XMLStreamException
javax.xml.namespace.QName getAttributeQNameValue(java.lang.String uri, java.lang.String local) throws javax.xml.stream.XMLStreamException
QName
.
javax.xml.stream.XMLStreamException
void setDefaultValue(java.lang.String defaultValue) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |