public class ADBXMLStreamReaderImpl extends Object implements ADBXMLStreamReader
ELEMENT_TEXTATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENTDATA_HANDLER, DEFAULT_XSD_NAMESPACE_PREFIX, DEFAULT_XSI_NAMESPACE_PREFIX, INNER_ARRAY_COMPLEX_TYPE_NAME, IS_BINARY, NIL, OM_ATTRIBUTE_KEY, OM_ELEMENT_KEY, OPTIMIZATION_ENABLED, RETURN_WRAPPER, TRUE, XSD_NAMESPACE, XSI_NAMESPACE, XSI_TYPE_ATTRIBUTE| Constructor and Description |
|---|
ADBXMLStreamReaderImpl(QName adbBeansQName,
Object[] properties,
Object[] attributes) |
ADBXMLStreamReaderImpl(QName adbBeansQName,
Object[] properties,
Object[] attributes,
org.apache.axis2.description.java2wsdl.TypeTable typeTable,
boolean qualified) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespaceContext(NamespaceContext nsContext)
add the namespace context
|
void |
close() |
int |
getAttributeCount() |
String |
getAttributeLocalName(int i) |
QName |
getAttributeName(int i) |
String |
getAttributeNamespace(int i) |
String |
getAttributePrefix(int i) |
String |
getAttributeType(int i) |
String |
getAttributeValue(int i) |
String |
getAttributeValue(String nsUri,
String localName) |
String |
getCharacterEncodingScheme() |
String |
getElementText()
todo implement the right contract for this
|
String |
getEncoding() |
int |
getEventType() |
String |
getLocalName() |
javax.xml.stream.Location |
getLocation() |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
String |
getNamespacePrefix(int i) |
String |
getNamespaceURI() |
String |
getNamespaceURI(int i) |
String |
getNamespaceURI(String prefix) |
String |
getPIData() |
String |
getPITarget() |
String |
getPrefix() |
Object |
getProperty(String key) |
String |
getText() |
char[] |
getTextCharacters() |
int |
getTextCharacters(int i,
char[] chars,
int i1,
int i2) |
int |
getTextLength() |
int |
getTextStart() |
String |
getVersion() |
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText()
check the validity of this implementation
|
void |
init()
we need to split out the calling to the populate namespaces seperately since this needs to be
done *after* setting the parent namespace context.
|
boolean |
isAttributeSpecified(int i) |
boolean |
isCharacters() |
boolean |
isDone()
are we done ?
|
boolean |
isEndElement() |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next()
By far this should be the most important method in this class this method changes the state
of the parser
|
int |
nextTag()
todo implement this
|
void |
require(int i,
String string,
String string1) |
boolean |
standaloneSet() |
public ADBXMLStreamReaderImpl(QName adbBeansQName, Object[] properties, Object[] attributes)
public void addNamespaceContext(NamespaceContext nsContext)
addNamespaceContext in interface ADBXMLStreamReaderpublic void init()
init in interface ADBXMLStreamReaderpublic Object getProperty(String key) throws IllegalArgumentException
getProperty in interface javax.xml.stream.XMLStreamReaderkey - IllegalArgumentExceptionpublic void require(int i,
String string,
String string1)
throws javax.xml.stream.XMLStreamException
require in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic String getElementText() throws javax.xml.stream.XMLStreamException
getElementText in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic int nextTag()
throws javax.xml.stream.XMLStreamException
nextTag in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic boolean hasNext()
throws javax.xml.stream.XMLStreamException
hasNext in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic void close()
throws javax.xml.stream.XMLStreamException
close in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface javax.xml.stream.XMLStreamReaderpublic boolean isStartElement()
isStartElement in interface javax.xml.stream.XMLStreamReaderpublic boolean isEndElement()
isEndElement in interface javax.xml.stream.XMLStreamReaderpublic boolean isCharacters()
isCharacters in interface javax.xml.stream.XMLStreamReaderpublic boolean isWhiteSpace()
isWhiteSpace in interface javax.xml.stream.XMLStreamReaderpublic String getAttributeValue(String nsUri, String localName)
getAttributeValue in interface javax.xml.stream.XMLStreamReaderpublic int getAttributeCount()
getAttributeCount in interface javax.xml.stream.XMLStreamReaderpublic QName getAttributeName(int i)
getAttributeName in interface javax.xml.stream.XMLStreamReaderi - public String getAttributeNamespace(int i)
getAttributeNamespace in interface javax.xml.stream.XMLStreamReaderpublic String getAttributeLocalName(int i)
getAttributeLocalName in interface javax.xml.stream.XMLStreamReaderpublic String getAttributePrefix(int i)
getAttributePrefix in interface javax.xml.stream.XMLStreamReaderpublic String getAttributeType(int i)
getAttributeType in interface javax.xml.stream.XMLStreamReaderpublic String getAttributeValue(int i)
getAttributeValue in interface javax.xml.stream.XMLStreamReaderpublic boolean isAttributeSpecified(int i)
isAttributeSpecified in interface javax.xml.stream.XMLStreamReaderpublic int getNamespaceCount()
getNamespaceCount in interface javax.xml.stream.XMLStreamReaderpublic String getNamespacePrefix(int i)
getNamespacePrefix in interface javax.xml.stream.XMLStreamReaderi - public String getNamespaceURI(int i)
getNamespaceURI in interface javax.xml.stream.XMLStreamReaderpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface javax.xml.stream.XMLStreamReaderpublic int getEventType()
getEventType in interface javax.xml.stream.XMLStreamReaderpublic String getText()
getText in interface javax.xml.stream.XMLStreamReaderpublic char[] getTextCharacters()
getTextCharacters in interface javax.xml.stream.XMLStreamReaderpublic int getTextCharacters(int i,
char[] chars,
int i1,
int i2)
throws javax.xml.stream.XMLStreamException
getTextCharacters in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic int getTextStart()
getTextStart in interface javax.xml.stream.XMLStreamReaderpublic int getTextLength()
getTextLength in interface javax.xml.stream.XMLStreamReaderpublic String getEncoding()
getEncoding in interface javax.xml.stream.XMLStreamReaderpublic boolean hasText()
hasText in interface javax.xml.stream.XMLStreamReaderpublic javax.xml.stream.Location getLocation()
getLocation in interface javax.xml.stream.XMLStreamReaderpublic QName getName()
getName in interface javax.xml.stream.XMLStreamReaderpublic String getLocalName()
getLocalName in interface javax.xml.stream.XMLStreamReaderpublic boolean hasName()
hasName in interface javax.xml.stream.XMLStreamReaderpublic String getNamespaceURI()
getNamespaceURI in interface javax.xml.stream.XMLStreamReaderpublic String getPrefix()
getPrefix in interface javax.xml.stream.XMLStreamReaderpublic String getVersion()
getVersion in interface javax.xml.stream.XMLStreamReaderpublic boolean isStandalone()
isStandalone in interface javax.xml.stream.XMLStreamReaderpublic boolean standaloneSet()
standaloneSet in interface javax.xml.stream.XMLStreamReaderpublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface javax.xml.stream.XMLStreamReaderpublic String getPITarget()
getPITarget in interface javax.xml.stream.XMLStreamReaderpublic String getPIData()
getPIData in interface javax.xml.stream.XMLStreamReaderpublic int next()
throws javax.xml.stream.XMLStreamException
next in interface javax.xml.stream.XMLStreamReaderjavax.xml.stream.XMLStreamExceptionpublic boolean isDone()
isDone in interface ADBXMLStreamReaderCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.