Apache CXF API

org.apache.cxf.aegis.util.stax
Class JDOMStreamReader

java.lang.Object
  extended by org.apache.cxf.staxutils.AbstractDOMStreamReader<org.jdom.Element,Integer>
      extended by org.apache.cxf.aegis.util.stax.JDOMStreamReader
All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public class JDOMStreamReader
extends AbstractDOMStreamReader<org.jdom.Element,Integer>

Facade for DOMStreamReader using JDOM implmentation.


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
JDOMStreamReader(org.jdom.Document document)
           
JDOMStreamReader(org.jdom.Element element)
           
 
Method Summary
protected  void endElement()
           
 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 ns, String local)
           
protected  AbstractDOMStreamReader.ElementFrame<org.jdom.Element,Integer> getChildFrame()
           
 org.jdom.Element getCurrentElement()
           
 String getElementText()
           
 String getEncoding()
           
 String getLocalName()
           
 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()
           
 String getText()
           
 char[] getTextCharacters()
           
 int getTextLength()
           
 int getTextStart()
           
protected  boolean hasMoreChildren()
           
 boolean isAttributeSpecified(int i)
           
protected  int nextChild()
           
static String toStaxType(int jdom)
           
 
Methods inherited from class org.apache.cxf.staxutils.AbstractDOMStreamReader
close, consumeFrame, getCharacterEncodingScheme, getCurrentFrame, getEventType, getLocation, getProperty, getPublicId, getSystemId, getTextCharacters, getVersion, hasName, hasNext, hasText, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, newFrame, next, nextTag, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMStreamReader

public JDOMStreamReader(org.jdom.Element element)
Parameters:
element -

JDOMStreamReader

public JDOMStreamReader(org.jdom.Document document)
Parameters:
document -
Method Detail

toStaxType

public static String toStaxType(int jdom)

endElement

protected void endElement()
Overrides:
endElement in class AbstractDOMStreamReader<org.jdom.Element,Integer>

getCurrentElement

public org.jdom.Element getCurrentElement()

getChildFrame

protected AbstractDOMStreamReader.ElementFrame<org.jdom.Element,Integer> getChildFrame()
Specified by:
getChildFrame in class AbstractDOMStreamReader<org.jdom.Element,Integer>

hasMoreChildren

protected boolean hasMoreChildren()
Specified by:
hasMoreChildren in class AbstractDOMStreamReader<org.jdom.Element,Integer>

nextChild

protected int nextChild()
Specified by:
nextChild in class AbstractDOMStreamReader<org.jdom.Element,Integer>

getElementText

public String getElementText()
                      throws XMLStreamException
Specified by:
getElementText in interface XMLStreamReader
Specified by:
getElementText in class AbstractDOMStreamReader<org.jdom.Element,Integer>
Throws:
XMLStreamException

getNamespaceURI

public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface XMLStreamReader
Specified by:
getNamespaceURI in class AbstractDOMStreamReader<org.jdom.Element,Integer>

getAttributeValue

public String getAttributeValue(String ns,
                                String local)

getAttributeCount

public int getAttributeCount()

getAttributeName

public QName getAttributeName(int i)

getAttributeNamespace

public String getAttributeNamespace(int i)

getAttributeLocalName

public String getAttributeLocalName(int i)

getAttributePrefix

public String getAttributePrefix(int i)

getAttributeType

public String getAttributeType(int i)

getAttributeValue

public String getAttributeValue(int i)

isAttributeSpecified

public boolean isAttributeSpecified(int i)

getNamespaceCount

public int getNamespaceCount()

getNamespacePrefix

public String getNamespacePrefix(int i)

getNamespaceURI

public String getNamespaceURI(int i)

getNamespaceContext

public NamespaceContext getNamespaceContext()

getText

public String getText()

getTextCharacters

public char[] getTextCharacters()

getTextStart

public int getTextStart()

getTextLength

public int getTextLength()

getEncoding

public String getEncoding()

getName

public QName getName()

getLocalName

public String getLocalName()

getNamespaceURI

public String getNamespaceURI()

getPrefix

public String getPrefix()

getPITarget

public String getPITarget()

getPIData

public String getPIData()

Apache CXF API

Apache CXF