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_ELEMENTFields 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 voidclose()InputStreamgetAttributeBase64Value(int index)Returns the decoded base64 value as anInputStream.InputStreamgetAttributeBase64Value(String uri, String local)Returns the decoded base64 value as anInputStream.BigDecimalgetAttributeBigDecimalValue(int index)Returns the value as aBigDecimal.BigDecimalgetAttributeBigDecimalValue(String uri, String local)Returns the value as aBigDecimal.BigIntegergetAttributeBigIntegerValue(int index)Returns the value as aBigInteger.BigIntegergetAttributeBigIntegerValue(String uri, String local)Returns the value as aBigInteger.booleangetAttributeBooleanValue(int index)Returns the value as a boolean.booleangetAttributeBooleanValue(String uri, String local)Returns the value as a boolean.bytegetAttributeByteValue(int index)Returns the value as a byte.bytegetAttributeByteValue(String uri, String local)Returns the value as a byte.XmlCalendargetAttributeCalendarValue(int index)Returns the value as an XmlCalendar which extendsCalendar.XmlCalendargetAttributeCalendarValue(String uri, String local)Returns the value as an XmlCalendar which extendsCalendar.intgetAttributeCount()DategetAttributeDateValue(int index)Returns the value as aDate.DategetAttributeDateValue(String uri, String local)Returns the value as aDate.doublegetAttributeDoubleValue(int index)Returns the value as a double.doublegetAttributeDoubleValue(String uri, String local)Returns the value as a double.floatgetAttributeFloatValue(int index)Returns the value as a float.floatgetAttributeFloatValue(String uri, String local)Returns the value as a float.GDategetAttributeGDateValue(int index)Returns the value as aGDate.GDategetAttributeGDateValue(String uri, String local)Returns the value as aGDate.GDurationgetAttributeGDurationValue(int index)Returns the value as aGDuration.GDurationgetAttributeGDurationValue(String uri, String local)Returns the value as aGDuration.InputStreamgetAttributeHexBinaryValue(int index)Returns the decoded hexbinary value as an InputStream.InputStreamgetAttributeHexBinaryValue(String uri, String local)Returns the decoded hexbinary value as an InputStream.intgetAttributeIntValue(int index)Returns the value as an int.intgetAttributeIntValue(String uri, String local)Returns the value as an int.StringgetAttributeLocalName(int i)longgetAttributeLongValue(int index)Returns the value as a long.longgetAttributeLongValue(String uri, String local)Returns the value as a long.QNamegetAttributeName(int i)StringgetAttributeNamespace(int i)StringgetAttributePrefix(int i)QNamegetAttributeQNameValue(int index)Returns the value as aQName.QNamegetAttributeQNameValue(String uri, String local)Returns the value as aQName.shortgetAttributeShortValue(int index)Returns the value as a short.shortgetAttributeShortValue(String uri, String local)Returns the value as a short.StringgetAttributeStringValue(int index)Returns the value as aString.StringgetAttributeStringValue(int index, int wsStyle)Returns the value as aString, with wsStyle applied.StringgetAttributeStringValue(String uri, String local)Returns the value as aString.StringgetAttributeStringValue(String uri, String local, int wsStyle)Returns the value as aString, with wsStyle applied.StringgetAttributeType(int i)StringgetAttributeValue(int i)StringgetAttributeValue(String s, String s1)InputStreamgetBase64Value()Returns the decoded base64 value as anInputStream.BigDecimalgetBigDecimalValue()Returns the value as aBigDecimal.BigIntegergetBigIntegerValue()Returns the value as aBigInteger.booleangetBooleanValue()Returns the value as a boolean.bytegetByteValue()Returns the value as a byte.XmlCalendargetCalendarValue()Returns the value as an XmlCalendar which extendsCalendar.StringgetCharacterEncodingScheme()DategetDateValue()Returns the value as aDate.doublegetDoubleValue()Returns the value as a double.StringgetElementText()StringgetEncoding()intgetEventType()floatgetFloatValue()Returns the value as a float.GDategetGDateValue()Returns the value as aGDate.GDurationgetGDurationValue()Returns the value as aGDuration.InputStreamgetHexBinaryValue()Returns the decoded hexbinary value as an InputStream.intgetIntValue()Returns the value as an int.StringgetLocalName()LocationgetLocation()longgetLongValue()Returns the value as a long.QNamegetName()NamespaceContextgetNamespaceContext()intgetNamespaceCount()StringgetNamespacePrefix(int i)StringgetNamespaceURI()StringgetNamespaceURI(int i)StringgetNamespaceURI(String s)StringgetPIData()StringgetPITarget()StringgetPrefix()ObjectgetProperty(String s)QNamegetQNameValue()Returns the value as aQName.shortgetShortValue()Returns the value as a short.StringgetStringValue()Returns the value as aString.StringgetStringValue(int wsStyle)Returns the value as aString, with wsStyle applied.StringgetText()char[]getTextCharacters()intgetTextCharacters(int i, char[] chars, int i1, int i2)intgetTextLength()intgetTextStart()XMLStreamReadergetUnderlyingXmlStream()StringgetVersion()booleanhasName()booleanhasNext()booleanhasText()booleanisAttributeSpecified(int i)booleanisCharacters()booleanisEndElement()booleanisStandalone()booleanisStartElement()booleanisWhiteSpace()intnext()intnextTag()voidrequire(int i, String s, String s1)voidsetDefaultValue(String defaultValue)Sets the default value for the next getXXXValue() call.booleanstandaloneSet()
-
Constructor Details
-
Method Details
-
getUnderlyingXmlStream
-
getStringValue
Description copied from interface:XMLStreamReaderExtReturns the value as aString.- Specified by:
getStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getStringValue
Description copied from interface:XMLStreamReaderExtReturns the value as aString, with wsStyle applied.- Specified by:
getStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getBooleanValue
Description copied from interface:XMLStreamReaderExtReturns the value as a boolean.- Specified by:
getBooleanValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getByteValue
Description copied from interface:XMLStreamReaderExtReturns the value as a byte.- Specified by:
getByteValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getShortValue
Description copied from interface:XMLStreamReaderExtReturns the value as a short.- Specified by:
getShortValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getIntValue
Description copied from interface:XMLStreamReaderExtReturns the value as an int.- Specified by:
getIntValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getLongValue
Description copied from interface:XMLStreamReaderExtReturns the value as a long.- Specified by:
getLongValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getBigIntegerValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigInteger.- Specified by:
getBigIntegerValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getBigDecimalValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigDecimal.- Specified by:
getBigDecimalValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getFloatValue
Description copied from interface:XMLStreamReaderExtReturns the value as a float.- Specified by:
getFloatValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getDoubleValue
Description copied from interface:XMLStreamReaderExtReturns the value as a double.- Specified by:
getDoubleValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getHexBinaryValue
Description copied from interface:XMLStreamReaderExtReturns the decoded hexbinary value as an InputStream.- Specified by:
getHexBinaryValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getBase64Value
Description copied from interface:XMLStreamReaderExtReturns the decoded base64 value as anInputStream.- Specified by:
getBase64Valuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getCalendarValue
Description copied from interface:XMLStreamReaderExtReturns the value as an XmlCalendar which extendsCalendar.- Specified by:
getCalendarValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aDate.- Specified by:
getDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getGDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDate.- Specified by:
getGDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getGDurationValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDuration.- Specified by:
getGDurationValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getQNameValue
Description copied from interface:XMLStreamReaderExtReturns the value as aQName.- Specified by:
getQNameValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamExceptionInvalidLexicalValueException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExtReturns the value as aString.- Specified by:
getAttributeStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExtReturns the value as aString, with wsStyle applied.- Specified by:
getAttributeStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBooleanValue
Description copied from interface:XMLStreamReaderExtReturns the value as a boolean.- Specified by:
getAttributeBooleanValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeByteValue
Description copied from interface:XMLStreamReaderExtReturns the value as a byte.- Specified by:
getAttributeByteValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeShortValue
Description copied from interface:XMLStreamReaderExtReturns the value as a short.- Specified by:
getAttributeShortValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeIntValue
Description copied from interface:XMLStreamReaderExtReturns the value as an int.- Specified by:
getAttributeIntValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeLongValue
Description copied from interface:XMLStreamReaderExtReturns the value as a long.- Specified by:
getAttributeLongValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBigIntegerValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigInteger.- Specified by:
getAttributeBigIntegerValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBigDecimalValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigDecimal.- Specified by:
getAttributeBigDecimalValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeFloatValue
Description copied from interface:XMLStreamReaderExtReturns the value as a float.- Specified by:
getAttributeFloatValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeDoubleValue
Description copied from interface:XMLStreamReaderExtReturns the value as a double.- Specified by:
getAttributeDoubleValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeHexBinaryValue
Description copied from interface:XMLStreamReaderExtReturns the decoded hexbinary value as an InputStream.- Specified by:
getAttributeHexBinaryValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBase64Value
Description copied from interface:XMLStreamReaderExtReturns the decoded base64 value as anInputStream.- Specified by:
getAttributeBase64Valuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeCalendarValue
Description copied from interface:XMLStreamReaderExtReturns the value as an XmlCalendar which extendsCalendar.- Specified by:
getAttributeCalendarValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aDate.- Specified by:
getAttributeDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeGDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDate.- Specified by:
getAttributeGDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeGDurationValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDuration.- Specified by:
getAttributeGDurationValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeQNameValue
Description copied from interface:XMLStreamReaderExtReturns the value as aQName.- Specified by:
getAttributeQNameValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeStringValue
Description copied from interface:XMLStreamReaderExtReturns the value as aString.- Specified by:
getAttributeStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeStringValue
public String getAttributeStringValue(String uri, String local, int wsStyle) throws XMLStreamExceptionDescription copied from interface:XMLStreamReaderExtReturns the value as aString, with wsStyle applied.- Specified by:
getAttributeStringValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBooleanValue
Description copied from interface:XMLStreamReaderExtReturns the value as a boolean.- Specified by:
getAttributeBooleanValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeByteValue
Description copied from interface:XMLStreamReaderExtReturns the value as a byte.- Specified by:
getAttributeByteValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeShortValue
Description copied from interface:XMLStreamReaderExtReturns the value as a short.- Specified by:
getAttributeShortValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeIntValue
Description copied from interface:XMLStreamReaderExtReturns the value as an int.- Specified by:
getAttributeIntValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeLongValue
Description copied from interface:XMLStreamReaderExtReturns the value as a long.- Specified by:
getAttributeLongValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBigIntegerValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigInteger.- Specified by:
getAttributeBigIntegerValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBigDecimalValue
Description copied from interface:XMLStreamReaderExtReturns the value as aBigDecimal.- Specified by:
getAttributeBigDecimalValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeFloatValue
Description copied from interface:XMLStreamReaderExtReturns the value as a float.- Specified by:
getAttributeFloatValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeDoubleValue
Description copied from interface:XMLStreamReaderExtReturns the value as a double.- Specified by:
getAttributeDoubleValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeHexBinaryValue
Description copied from interface:XMLStreamReaderExtReturns the decoded hexbinary value as an InputStream.- Specified by:
getAttributeHexBinaryValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeBase64Value
Description copied from interface:XMLStreamReaderExtReturns the decoded base64 value as anInputStream.- Specified by:
getAttributeBase64Valuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeCalendarValue
Description copied from interface:XMLStreamReaderExtReturns the value as an XmlCalendar which extendsCalendar.- Specified by:
getAttributeCalendarValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aDate.- Specified by:
getAttributeDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeGDateValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDate.- Specified by:
getAttributeGDateValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeGDurationValue
Description copied from interface:XMLStreamReaderExtReturns the value as aGDuration.- Specified by:
getAttributeGDurationValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getAttributeQNameValue
Description copied from interface:XMLStreamReaderExtReturns the value as aQName.- Specified by:
getAttributeQNameValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
setDefaultValue
Description copied from interface:XMLStreamReaderExtSets 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.- Specified by:
setDefaultValuein interfaceXMLStreamReaderExt- Throws:
XMLStreamException
-
getProperty
- Specified by:
getPropertyin interfaceXMLStreamReader- Throws:
IllegalArgumentException
-
next
- Specified by:
nextin interfaceXMLStreamReader- Throws:
XMLStreamException
-
require
- Specified by:
requirein interfaceXMLStreamReader- Throws:
XMLStreamException
-
getElementText
- Specified by:
getElementTextin interfaceXMLStreamReader- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTagin interfaceXMLStreamReader- Throws:
XMLStreamException
-
hasNext
- Specified by:
hasNextin interfaceXMLStreamReader- Throws:
XMLStreamException
-
close
- Specified by:
closein interfaceXMLStreamReader- Throws:
XMLStreamException
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXMLStreamReader
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElementin interfaceXMLStreamReader
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElementin interfaceXMLStreamReader
-
isCharacters
public boolean isCharacters()- Specified by:
isCharactersin interfaceXMLStreamReader
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpacein interfaceXMLStreamReader
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXMLStreamReader
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCountin interfaceXMLStreamReader
-
getAttributeName
- Specified by:
getAttributeNamein interfaceXMLStreamReader
-
getAttributeNamespace
- Specified by:
getAttributeNamespacein interfaceXMLStreamReader
-
getAttributeLocalName
- Specified by:
getAttributeLocalNamein interfaceXMLStreamReader
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceXMLStreamReader
-
getAttributeType
- Specified by:
getAttributeTypein interfaceXMLStreamReader
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXMLStreamReader
-
isAttributeSpecified
public boolean isAttributeSpecified(int i)- Specified by:
isAttributeSpecifiedin interfaceXMLStreamReader
-
getNamespaceCount
public int getNamespaceCount()- Specified by:
getNamespaceCountin interfaceXMLStreamReader
-
getNamespacePrefix
- Specified by:
getNamespacePrefixin interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXMLStreamReader
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceXMLStreamReader
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLStreamReader
-
getText
- Specified by:
getTextin interfaceXMLStreamReader
-
getTextCharacters
public char[] getTextCharacters()- Specified by:
getTextCharactersin interfaceXMLStreamReader
-
getTextCharacters
- Specified by:
getTextCharactersin interfaceXMLStreamReader- Throws:
XMLStreamException
-
getTextStart
public int getTextStart()- Specified by:
getTextStartin interfaceXMLStreamReader
-
getTextLength
public int getTextLength()- Specified by:
getTextLengthin interfaceXMLStreamReader
-
getEncoding
- Specified by:
getEncodingin interfaceXMLStreamReader
-
hasText
public boolean hasText()- Specified by:
hasTextin interfaceXMLStreamReader
-
getLocation
- Specified by:
getLocationin interfaceXMLStreamReader
-
getName
- Specified by:
getNamein interfaceXMLStreamReader
-
getLocalName
- Specified by:
getLocalNamein interfaceXMLStreamReader
-
hasName
public boolean hasName()- Specified by:
hasNamein interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXMLStreamReader
-
getPrefix
- Specified by:
getPrefixin interfaceXMLStreamReader
-
getVersion
- Specified by:
getVersionin interfaceXMLStreamReader
-
isStandalone
public boolean isStandalone()- Specified by:
isStandalonein interfaceXMLStreamReader
-
standaloneSet
public boolean standaloneSet()- Specified by:
standaloneSetin interfaceXMLStreamReader
-
getCharacterEncodingScheme
- Specified by:
getCharacterEncodingSchemein interfaceXMLStreamReader
-
getPITarget
- Specified by:
getPITargetin interfaceXMLStreamReader
-
getPIData
- Specified by:
getPIDatain interfaceXMLStreamReader
-