org.apache.servicemix.jbi.jaxp
Class W3CDOMStreamReader
java.lang.Object
org.apache.servicemix.jbi.jaxp.DOMStreamReader
org.apache.servicemix.jbi.jaxp.W3CDOMStreamReader
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader
public class W3CDOMStreamReader
- extends DOMStreamReader
| 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 |
| Methods inherited from class org.apache.servicemix.jbi.jaxp.DOMStreamReader |
close, getCharacterEncodingScheme, getCurrentFrame, getEventType, getLocation, getProperty, getTextCharacters, getVersion, hasName, hasNext, hasText, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
W3CDOMStreamReader
public W3CDOMStreamReader(org.w3c.dom.Element element)
- Parameters:
element -
getDocument
public org.w3c.dom.Document getDocument()
- Get the document associated with this stream.
- Returns:
newFrame
protected void newFrame(DOMStreamReader.ElementFrame frame)
- Find name spaces declaration in atrributes and move them to separate
collection.
- Overrides:
newFrame in class DOMStreamReader
endElement
protected void endElement()
- Overrides:
endElement in class DOMStreamReader
getChildFrame
protected DOMStreamReader.ElementFrame getChildFrame(int currentChild)
- Specified by:
getChildFrame in class DOMStreamReader
getChildCount
protected int getChildCount()
- Specified by:
getChildCount in class DOMStreamReader
moveToChild
protected int moveToChild(int currentChild)
- Specified by:
moveToChild in class DOMStreamReader
getElementText
public java.lang.String getElementText()
throws javax.xml.stream.XMLStreamException
- Specified by:
getElementText in interface javax.xml.stream.XMLStreamReader- Specified by:
getElementText in class DOMStreamReader
- Throws:
javax.xml.stream.XMLStreamException
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI in interface javax.xml.stream.XMLStreamReader- Specified by:
getNamespaceURI in class DOMStreamReader
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String ns,
java.lang.String local)
getAttributeCount
public int getAttributeCount()
getAttributeName
public javax.xml.namespace.QName getAttributeName(int i)
getAttributeNamespace
public java.lang.String getAttributeNamespace(int i)
getAttributeLocalName
public java.lang.String getAttributeLocalName(int i)
getAttributePrefix
public java.lang.String getAttributePrefix(int i)
getAttributeType
public java.lang.String getAttributeType(int i)
getAttributeValue
public java.lang.String getAttributeValue(int i)
isAttributeSpecified
public boolean isAttributeSpecified(int i)
getNamespaceCount
public int getNamespaceCount()
getNamespacePrefix
public java.lang.String getNamespacePrefix(int i)
getNamespaceURI
public java.lang.String getNamespaceURI(int i)
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getText
public java.lang.String getText()
getTextCharacters
public char[] getTextCharacters()
getTextStart
public int getTextStart()
getTextLength
public int getTextLength()
getEncoding
public java.lang.String getEncoding()
getName
public javax.xml.namespace.QName getName()
getLocalName
public java.lang.String getLocalName()
getNamespaceURI
public java.lang.String getNamespaceURI()
getPrefix
public java.lang.String getPrefix()
getPITarget
public java.lang.String getPITarget()
getPIData
public java.lang.String getPIData()
getContent
public static java.lang.String getContent(org.w3c.dom.Node n)
- Get the trimed text content of a node or null if there is no text
getChild
public static org.w3c.dom.Node getChild(org.w3c.dom.Node parent,
int type)
- Get the first direct child with a given type
Copyright © 2005-2011 FuseSource. All Rights Reserved.