Class XMLStreamReaderExtImpl
java.lang.Object
org.apache.xmlbeans.impl.richParser.XMLStreamReaderExtImpl
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
,XMLStreamReaderExt
public class XMLStreamReaderExtImpl extends Object implements XMLStreamReaderExt
Author: Cezar Andrei (cezar.andrei at bea.com)
Date: Nov 17, 2003
-
Field Summary
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
Fields inherited from interface org.apache.xmlbeans.impl.richParser.XMLStreamReaderExt
WS_COLLAPSE, WS_PRESERVE, WS_REPLACE
-
Constructor Summary
Constructors Constructor Description XMLStreamReaderExtImpl(XMLStreamReader xmlStream)
-
Method Summary
Modifier and Type Method Description void
close()
InputStream
getAttributeBase64Value(int index)
Returns the decoded base64 value as anInputStream.InputStream
getAttributeBase64Value(String uri, String local)
Returns the decoded base64 value as anInputStream.BigDecimal
getAttributeBigDecimalValue(int index)
Returns the value as aBigDecimal
.BigDecimal
getAttributeBigDecimalValue(String uri, String local)
Returns the value as aBigDecimal
.BigInteger
getAttributeBigIntegerValue(int index)
Returns the value as aBigInteger
.BigInteger
getAttributeBigIntegerValue(String uri, String local)
Returns the value as aBigInteger
.boolean
getAttributeBooleanValue(int index)
Returns the value as a boolean.boolean
getAttributeBooleanValue(String uri, String local)
Returns the value as a boolean.byte
getAttributeByteValue(int index)
Returns the value as a byte.byte
getAttributeByteValue(String uri, String local)
Returns the value as a byte.XmlCalendar
getAttributeCalendarValue(int index)
Returns the value as an XmlCalendar which extendsCalendar
.XmlCalendar
getAttributeCalendarValue(String uri, String local)
Returns the value as an XmlCalendar which extendsCalendar
.int
getAttributeCount()
Date
getAttributeDateValue(int index)
Returns the value as aDate
.Date
getAttributeDateValue(String uri, String local)
Returns the value as aDate
.double
getAttributeDoubleValue(int index)
Returns the value as a double.double
getAttributeDoubleValue(String uri, String local)
Returns the value as a double.float
getAttributeFloatValue(int index)
Returns the value as a float.float
getAttributeFloatValue(String uri, String local)
Returns the value as a float.GDate
getAttributeGDateValue(int index)
Returns the value as aGDate
.GDate
getAttributeGDateValue(String uri, String local)
Returns the value as aGDate
.GDuration
getAttributeGDurationValue(int index)
Returns the value as aGDuration
.GDuration
getAttributeGDurationValue(String uri, String local)
Returns the value as aGDuration
.InputStream
getAttributeHexBinaryValue(int index)
Returns the decoded hexbinary value as an InputStream.InputStream
getAttributeHexBinaryValue(String uri, String local)
Returns the decoded hexbinary value as an InputStream.int
getAttributeIntValue(int index)
Returns the value as an int.int
getAttributeIntValue(String uri, String local)
Returns the value as an int.String
getAttributeLocalName(int i)
long
getAttributeLongValue(int index)
Returns the value as a long.long
getAttributeLongValue(String uri, String local)
Returns the value as a long.QName
getAttributeName(int i)
String
getAttributeNamespace(int i)
String
getAttributePrefix(int i)
QName
getAttributeQNameValue(int index)
Returns the value as aQName
.QName
getAttributeQNameValue(String uri, String local)
Returns the value as aQName
.short
getAttributeShortValue(int index)
Returns the value as a short.short
getAttributeShortValue(String uri, String local)
Returns the value as a short.String
getAttributeStringValue(int index)
Returns the value as aString
.String
getAttributeStringValue(int index, int wsStyle)
Returns the value as aString
, with wsStyle applied.String
getAttributeStringValue(String uri, String local)
Returns the value as aString
.String
getAttributeStringValue(String uri, String local, int wsStyle)
Returns the value as aString
, with wsStyle applied.String
getAttributeType(int i)
String
getAttributeValue(int i)
String
getAttributeValue(String s, String s1)
InputStream
getBase64Value()
Returns the decoded base64 value as anInputStream.BigDecimal
getBigDecimalValue()
Returns the value as aBigDecimal
.BigInteger
getBigIntegerValue()
Returns the value as aBigInteger
.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 extendsCalendar
.String
getCharacterEncodingScheme()
Date
getDateValue()
Returns the value as aDate
.double
getDoubleValue()
Returns the value as a double.String
getElementText()
String
getEncoding()
int
getEventType()
float
getFloatValue()
Returns the value as a float.GDate
getGDateValue()
Returns the value as aGDate
.GDuration
getGDurationValue()
Returns the value as aGDuration
.InputStream
getHexBinaryValue()
Returns the decoded hexbinary value as an InputStream.int
getIntValue()
Returns the value as an int.String
getLocalName()
Location
getLocation()
long
getLongValue()
Returns the value as a long.QName
getName()
NamespaceContext
getNamespaceContext()
int
getNamespaceCount()
String
getNamespacePrefix(int i)
String
getNamespaceURI()
String
getNamespaceURI(int i)
String
getNamespaceURI(String s)
String
getPIData()
String
getPITarget()
String
getPrefix()
Object
getProperty(String s)
QName
getQNameValue()
Returns the value as aQName
.short
getShortValue()
Returns the value as a short.String
getStringValue()
Returns the value as aString
.String
getStringValue(int wsStyle)
Returns the value as aString
, with wsStyle applied.String
getText()
char[]
getTextCharacters()
int
getTextCharacters(int i, char[] chars, int i1, int i2)
int
getTextLength()
int
getTextStart()
XMLStreamReader
getUnderlyingXmlStream()
String
getVersion()
boolean
hasName()
boolean
hasNext()
boolean
hasText()
boolean
isAttributeSpecified(int i)
boolean
isCharacters()
boolean
isEndElement()
boolean
isStandalone()
boolean
isStartElement()
boolean
isWhiteSpace()
int
next()
int
nextTag()
void
require(int i, String s, String s1)
void
setDefaultValue(String defaultValue)
Sets the default value for the next getXXXValue() call.boolean
standaloneSet()
-
Constructor Details
-
Method Details
-
getUnderlyingXmlStream
-
getStringValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aString
.- Specified by:
getStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getStringValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aString
, with wsStyle applied.- Specified by:
getStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getBooleanValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a boolean.- Specified by:
getBooleanValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getByteValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a byte.- Specified by:
getByteValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getShortValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a short.- Specified by:
getShortValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getIntValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an int.- Specified by:
getIntValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getLongValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a long.- Specified by:
getLongValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getBigIntegerValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigInteger
.- Specified by:
getBigIntegerValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getBigDecimalValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigDecimal
.- Specified by:
getBigDecimalValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getFloatValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a float.- Specified by:
getFloatValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getDoubleValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a double.- Specified by:
getDoubleValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getHexBinaryValue
Description copied from interface:XMLStreamReaderExt
Returns the decoded hexbinary value as an InputStream.- Specified by:
getHexBinaryValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getBase64Value
Description copied from interface:XMLStreamReaderExt
Returns the decoded base64 value as anInputStream.- Specified by:
getBase64Value
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getCalendarValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an XmlCalendar which extendsCalendar
.- Specified by:
getCalendarValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aDate
.- Specified by:
getDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getGDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDate
.- Specified by:
getGDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getGDurationValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDuration
.- Specified by:
getGDurationValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getQNameValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aQName
.- Specified by:
getQNameValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
InvalidLexicalValueException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aString
.- Specified by:
getAttributeStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aString
, with wsStyle applied.- Specified by:
getAttributeStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBooleanValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a boolean.- Specified by:
getAttributeBooleanValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeByteValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a byte.- Specified by:
getAttributeByteValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeShortValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a short.- Specified by:
getAttributeShortValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeIntValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an int.- Specified by:
getAttributeIntValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeLongValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a long.- Specified by:
getAttributeLongValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBigIntegerValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigInteger
.- Specified by:
getAttributeBigIntegerValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBigDecimalValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigDecimal
.- Specified by:
getAttributeBigDecimalValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeFloatValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a float.- Specified by:
getAttributeFloatValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeDoubleValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a double.- Specified by:
getAttributeDoubleValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeHexBinaryValue
Description copied from interface:XMLStreamReaderExt
Returns the decoded hexbinary value as an InputStream.- Specified by:
getAttributeHexBinaryValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBase64Value
Description copied from interface:XMLStreamReaderExt
Returns the decoded base64 value as anInputStream.- Specified by:
getAttributeBase64Value
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeCalendarValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an XmlCalendar which extendsCalendar
.- Specified by:
getAttributeCalendarValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aDate
.- Specified by:
getAttributeDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeGDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDate
.- Specified by:
getAttributeGDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeGDurationValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDuration
.- Specified by:
getAttributeGDurationValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeQNameValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aQName
.- Specified by:
getAttributeQNameValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aString
.- Specified by:
getAttributeStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeStringValue
public String getAttributeStringValue(String uri, String local, int wsStyle) throws XMLStreamExceptionDescription copied from interface:XMLStreamReaderExt
Returns the value as aString
, with wsStyle applied.- Specified by:
getAttributeStringValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBooleanValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a boolean.- Specified by:
getAttributeBooleanValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeByteValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a byte.- Specified by:
getAttributeByteValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeShortValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a short.- Specified by:
getAttributeShortValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeIntValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an int.- Specified by:
getAttributeIntValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeLongValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a long.- Specified by:
getAttributeLongValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBigIntegerValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigInteger
.- Specified by:
getAttributeBigIntegerValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBigDecimalValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aBigDecimal
.- Specified by:
getAttributeBigDecimalValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeFloatValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a float.- Specified by:
getAttributeFloatValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeDoubleValue
Description copied from interface:XMLStreamReaderExt
Returns the value as a double.- Specified by:
getAttributeDoubleValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeHexBinaryValue
Description copied from interface:XMLStreamReaderExt
Returns the decoded hexbinary value as an InputStream.- Specified by:
getAttributeHexBinaryValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeBase64Value
Description copied from interface:XMLStreamReaderExt
Returns the decoded base64 value as anInputStream.- Specified by:
getAttributeBase64Value
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeCalendarValue
Description copied from interface:XMLStreamReaderExt
Returns the value as an XmlCalendar which extendsCalendar
.- Specified by:
getAttributeCalendarValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aDate
.- Specified by:
getAttributeDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeGDateValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDate
.- Specified by:
getAttributeGDateValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeGDurationValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aGDuration
.- Specified by:
getAttributeGDurationValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getAttributeQNameValue
Description copied from interface:XMLStreamReaderExt
Returns the value as aQName
.- Specified by:
getAttributeQNameValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
setDefaultValue
Description copied from interface:XMLStreamReaderExt
Sets the default value for the next getXXXValue() call. For example: setDefaultValue("7"); //the xml looks like:- Specified by:
setDefaultValue
in interfaceXMLStreamReaderExt
- Throws:
XMLStreamException
-
getProperty
- Specified by:
getProperty
in interfaceXMLStreamReader
- Throws:
IllegalArgumentException
-
next
- Specified by:
next
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
require
- Specified by:
require
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
getElementText
- Specified by:
getElementText
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTag
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
hasNext
- Specified by:
hasNext
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
close
- Specified by:
close
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElement
in interfaceXMLStreamReader
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElement
in interfaceXMLStreamReader
-
isCharacters
public boolean isCharacters()- Specified by:
isCharacters
in interfaceXMLStreamReader
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpace
in interfaceXMLStreamReader
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceXMLStreamReader
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCount
in interfaceXMLStreamReader
-
getAttributeName
- Specified by:
getAttributeName
in interfaceXMLStreamReader
-
getAttributeNamespace
- Specified by:
getAttributeNamespace
in interfaceXMLStreamReader
-
getAttributeLocalName
- Specified by:
getAttributeLocalName
in interfaceXMLStreamReader
-
getAttributePrefix
- Specified by:
getAttributePrefix
in interfaceXMLStreamReader
-
getAttributeType
- Specified by:
getAttributeType
in interfaceXMLStreamReader
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceXMLStreamReader
-
isAttributeSpecified
public boolean isAttributeSpecified(int i)- Specified by:
isAttributeSpecified
in interfaceXMLStreamReader
-
getNamespaceCount
public int getNamespaceCount()- Specified by:
getNamespaceCount
in interfaceXMLStreamReader
-
getNamespacePrefix
- Specified by:
getNamespacePrefix
in interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
-
getNamespaceContext
- Specified by:
getNamespaceContext
in interfaceXMLStreamReader
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLStreamReader
-
getText
- Specified by:
getText
in interfaceXMLStreamReader
-
getTextCharacters
public char[] getTextCharacters()- Specified by:
getTextCharacters
in interfaceXMLStreamReader
-
getTextCharacters
- Specified by:
getTextCharacters
in interfaceXMLStreamReader
- Throws:
XMLStreamException
-
getTextStart
public int getTextStart()- Specified by:
getTextStart
in interfaceXMLStreamReader
-
getTextLength
public int getTextLength()- Specified by:
getTextLength
in interfaceXMLStreamReader
-
getEncoding
- Specified by:
getEncoding
in interfaceXMLStreamReader
-
hasText
public boolean hasText()- Specified by:
hasText
in interfaceXMLStreamReader
-
getLocation
- Specified by:
getLocation
in interfaceXMLStreamReader
-
getName
- Specified by:
getName
in interfaceXMLStreamReader
-
getLocalName
- Specified by:
getLocalName
in interfaceXMLStreamReader
-
hasName
public boolean hasName()- Specified by:
hasName
in interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
-
getPrefix
- Specified by:
getPrefix
in interfaceXMLStreamReader
-
getVersion
- Specified by:
getVersion
in interfaceXMLStreamReader
-
isStandalone
public boolean isStandalone()- Specified by:
isStandalone
in interfaceXMLStreamReader
-
standaloneSet
public boolean standaloneSet()- Specified by:
standaloneSet
in interfaceXMLStreamReader
-
getCharacterEncodingScheme
- Specified by:
getCharacterEncodingScheme
in interfaceXMLStreamReader
-
getPITarget
- Specified by:
getPITarget
in interfaceXMLStreamReader
-
getPIData
- Specified by:
getPIData
in interfaceXMLStreamReader
-