org.codehaus.xfire.util.stax
Class DepthXMLStreamReader

java.lang.Object
  extended by org.codehaus.xfire.util.stax.DepthXMLStreamReader
Direct Known Subclasses:
FragmentStreamReader

public class DepthXMLStreamReader
extends java.lang.Object

An XMLStreamReader which keeps track of the depth where we are.

Since:
Nov 4, 2004
Author:
Dan Diephouse

Constructor Summary
DepthXMLStreamReader(XMLStreamReader reader)
           
 
Method Summary
 void close()
           
 boolean equals(java.lang.Object arg0)
           
 int getAttributeCount()
           
 java.lang.String getAttributeLocalName(int arg0)
           
 javax.xml.namespace.QName getAttributeName(int arg0)
           
 java.lang.String getAttributeNamespace(int arg0)
           
 java.lang.String getAttributePrefix(int arg0)
           
 java.lang.String getAttributeType(int arg0)
           
 java.lang.String getAttributeValue(int arg0)
           
 java.lang.String getAttributeValue(java.lang.String arg0, java.lang.String arg1)
           
 java.lang.String getCharacterEncodingScheme()
           
 int getDepth()
           
 java.lang.String getElementText()
           
 java.lang.String getEncoding()
           
 int getEventType()
           
 java.lang.String getLocalName()
           
 Location getLocation()
           
 javax.xml.namespace.QName getName()
           
 javax.xml.namespace.NamespaceContext getNamespaceContext()
           
 int getNamespaceCount()
           
 java.lang.String getNamespacePrefix(int arg0)
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getNamespaceURI(int arg0)
           
 java.lang.String getNamespaceURI(java.lang.String arg0)
           
 java.lang.String getPIData()
           
 java.lang.String getPITarget()
           
 java.lang.String getPrefix()
           
 java.lang.Object getProperty(java.lang.String arg0)
           
 java.lang.String getText()
           
 char[] getTextCharacters()
           
 int getTextCharacters(int arg0, char[] arg1, int arg2, int arg3)
           
 int getTextLength()
           
 int getTextStart()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 boolean hasName()
           
 boolean hasNext()
           
 boolean hasText()
           
 boolean isAttributeSpecified(int arg0)
           
 boolean isCharacters()
           
 boolean isEndElement()
           
 boolean isStandalone()
           
 boolean isStartElement()
           
 boolean isWhiteSpace()
           
 int next()
           
 int nextTag()
           
 void require(int arg0, java.lang.String arg1, java.lang.String arg2)
           
 boolean standaloneSet()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DepthXMLStreamReader

public DepthXMLStreamReader(XMLStreamReader reader)
Method Detail

getDepth

public int getDepth()

close

public void close()
           throws XMLStreamException
Throws:
XMLStreamException

getAttributeCount

public int getAttributeCount()

getAttributeLocalName

public java.lang.String getAttributeLocalName(int arg0)

getAttributeName

public javax.xml.namespace.QName getAttributeName(int arg0)

getAttributeNamespace

public java.lang.String getAttributeNamespace(int arg0)

getAttributePrefix

public java.lang.String getAttributePrefix(int arg0)

getAttributeType

public java.lang.String getAttributeType(int arg0)

getAttributeValue

public java.lang.String getAttributeValue(int arg0)

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String arg0,
                                          java.lang.String arg1)

getCharacterEncodingScheme

public java.lang.String getCharacterEncodingScheme()

getElementText

public java.lang.String getElementText()
                                throws XMLStreamException
Throws:
XMLStreamException

getEncoding

public java.lang.String getEncoding()

getEventType

public int getEventType()

getLocalName

public java.lang.String getLocalName()

getLocation

public Location getLocation()

getName

public javax.xml.namespace.QName getName()

getNamespaceContext

public javax.xml.namespace.NamespaceContext getNamespaceContext()

getNamespaceCount

public int getNamespaceCount()

getNamespacePrefix

public java.lang.String getNamespacePrefix(int arg0)

getNamespaceURI

public java.lang.String getNamespaceURI()

getNamespaceURI

public java.lang.String getNamespaceURI(int arg0)

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String arg0)

getPIData

public java.lang.String getPIData()

getPITarget

public java.lang.String getPITarget()

getPrefix

public java.lang.String getPrefix()

getProperty

public java.lang.Object getProperty(java.lang.String arg0)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getText

public java.lang.String getText()

getTextCharacters

public char[] getTextCharacters()

getTextCharacters

public int getTextCharacters(int arg0,
                             char[] arg1,
                             int arg2,
                             int arg3)
                      throws XMLStreamException
Throws:
XMLStreamException

getTextLength

public int getTextLength()

getTextStart

public int getTextStart()

getVersion

public java.lang.String getVersion()

hasName

public boolean hasName()

hasNext

public boolean hasNext()
                throws XMLStreamException
Throws:
XMLStreamException

hasText

public boolean hasText()

isAttributeSpecified

public boolean isAttributeSpecified(int arg0)

isCharacters

public boolean isCharacters()

isEndElement

public boolean isEndElement()

isStandalone

public boolean isStandalone()

isStartElement

public boolean isStartElement()

isWhiteSpace

public boolean isWhiteSpace()

next

public int next()
         throws XMLStreamException
Throws:
XMLStreamException

nextTag

public int nextTag()
            throws XMLStreamException
Throws:
XMLStreamException

require

public void require(int arg0,
                    java.lang.String arg1,
                    java.lang.String arg2)
             throws XMLStreamException
Throws:
XMLStreamException

standaloneSet

public boolean standaloneSet()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.