Package org.apache.cxf.staxutils
Class W3CDOMStreamReader
java.lang.Object
org.apache.cxf.staxutils.AbstractDOMStreamReader<Node,Node>
org.apache.cxf.staxutils.W3CDOMStreamReader
- All Implemented Interfaces:
XMLStreamConstants
,XMLStreamReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cxf.staxutils.AbstractDOMStreamReader
AbstractDOMStreamReader.ElementFrame<T,
I> -
Field Summary
Fields inherited from class org.apache.cxf.staxutils.AbstractDOMStreamReader
currentEvent
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
-
Constructor Summary
ConstructorDescriptionW3CDOMStreamReader
(DocumentFragment docfrag) W3CDOMStreamReader
(Element element) W3CDOMStreamReader
(Element element, String systemId) -
Method Summary
Modifier and TypeMethodDescriptionint
getAttributeLocalName
(int i) getAttributeName
(int i) getAttributeNamespace
(int i) getAttributePrefix
(int i) getAttributeType
(int i) getAttributeValue
(int i) getAttributeValue
(String ns, String local) protected AbstractDOMStreamReader.ElementFrame<Node,
Node> final Element
final Node
Get the document associated with this stream.getName()
int
getNamespacePrefix
(int i) getNamespaceURI
(int i) getNamespaceURI
(String prefix) getText()
char[]
int
int
protected boolean
boolean
isAttributeSpecified
(int i) protected final void
Find name spaces declaration in atrributes and move them to separate collection.protected int
toString()
Methods inherited from class org.apache.cxf.staxutils.AbstractDOMStreamReader
close, consumeFrame, endElement, getCharacterEncodingScheme, getCurrentFrame, getEventType, getProperty, getPublicId, getTextCharacters, getVersion, hasName, hasNext, hasText, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet
-
Constructor Details
-
W3CDOMStreamReader
- Parameters:
element
-
-
W3CDOMStreamReader
-
W3CDOMStreamReader
-
W3CDOMStreamReader
-
-
Method Details
-
getDocument
Get the document associated with this stream. -
getSystemId
- Overrides:
getSystemId
in classAbstractDOMStreamReader<Node,
Node>
-
newFrame
Find name spaces declaration in atrributes and move them to separate collection.- Overrides:
newFrame
in classAbstractDOMStreamReader<Node,
Node>
-
getCurrentNode
-
getCurrentElement
-
getChildFrame
- Specified by:
getChildFrame
in classAbstractDOMStreamReader<Node,
Node>
-
hasMoreChildren
protected boolean hasMoreChildren()- Specified by:
hasMoreChildren
in classAbstractDOMStreamReader<Node,
Node>
-
nextChild
protected int nextChild()- Specified by:
nextChild
in classAbstractDOMStreamReader<Node,
Node>
-
getElementText
- Specified by:
getElementText
in interfaceXMLStreamReader
- Specified by:
getElementText
in classAbstractDOMStreamReader<Node,
Node> - Throws:
XMLStreamException
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceXMLStreamReader
- Specified by:
getNamespaceURI
in classAbstractDOMStreamReader<Node,
Node>
-
getAttributeValue
-
getAttributeCount
public int getAttributeCount() -
getAttributeName
-
getAttributeNamespace
-
getAttributeLocalName
-
getAttributePrefix
-
getAttributeType
-
getAttributeValue
-
isAttributeSpecified
public boolean isAttributeSpecified(int i) -
getNamespaceCount
public int getNamespaceCount() -
getNamespacePrefix
-
getNamespaceURI
-
getNamespaceContext
-
getText
-
getTextCharacters
public char[] getTextCharacters() -
getTextStart
public int getTextStart() -
getTextLength
public int getTextLength() -
getEncoding
-
getName
-
getLocalName
-
getNamespaceURI
-
getPrefix
-
getPITarget
-
getPIData
-
getLocation
- Specified by:
getLocation
in interfaceXMLStreamReader
- Overrides:
getLocation
in classAbstractDOMStreamReader<Node,
Node>
-
toString
-