org.apache.tuscany.sdo.util.resource
Class DataObjectXMLStreamReader.SimpleElementStreamReader

java.lang.Object
  extended by org.apache.tuscany.sdo.util.resource.DataObjectXMLStreamReader.SimpleElementStreamReader
Enclosing class:
DataObjectXMLStreamReader

protected static class DataObjectXMLStreamReader.SimpleElementStreamReader
extends Object


Field Summary
static String ELEMENT_TEXT
           
 
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
DataObjectXMLStreamReader.SimpleElementStreamReader(javax.xml.namespace.QName name, String value, DataObjectXMLStreamReader.NameSpaceContext nameSpaces)
           
 
Method Summary
 void close()
           
 int getAttributeCount()
           
 String getAttributeLocalName(int i)
           
 javax.xml.namespace.QName getAttributeName(int i)
           
 String getAttributeNamespace(int i)
           
 String getAttributePrefix(int i)
           
 String getAttributeType(int i)
           
 String getAttributeValue(int i)
           
 String getAttributeValue(String string, String string1)
           
 String getCharacterEncodingScheme()
           
 String getElementText()
           
 String getEncoding()
           
 int getEventType()
           
 String getLocalName()
           
 javax.xml.stream.Location getLocation()
           
 javax.xml.namespace.QName getName()
           
 javax.xml.namespace.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()
           
 void init()
          Initiate the parser - this will do whatever the needed tasks to initiate the parser and must be called before attempting any specific parsing using this parser
 boolean isAttributeSpecified(int i)
           
 boolean isCharacters()
           
 boolean isEndElement()
           
 boolean isEndOfFragment()
          Extra method to query the state of the pullparser
 boolean isStandalone()
           
 boolean isStartElement()
           
 boolean isWhiteSpace()
           
 int next()
           
 int nextTag()
           
 void require(int i, String string, String string1)
           
 boolean standaloneSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_TEXT

public static final String ELEMENT_TEXT
See Also:
Constant Field Values
Constructor Detail

DataObjectXMLStreamReader.SimpleElementStreamReader

public DataObjectXMLStreamReader.SimpleElementStreamReader(javax.xml.namespace.QName name,
                                                           String value,
                                                           DataObjectXMLStreamReader.NameSpaceContext nameSpaces)
Method Detail

getProperty

public Object getProperty(String key)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException

next

public int next()
         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

require

public void require(int i,
                    String string,
                    String string1)
             throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getElementText

public String getElementText()
                      throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

nextTag

public int nextTag()
            throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

hasNext

public boolean hasNext()
                throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

close

public void close()
           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getNamespaceURI

public String getNamespaceURI(String prefix)

isStartElement

public boolean isStartElement()

isEndElement

public boolean isEndElement()

isCharacters

public boolean isCharacters()

isWhiteSpace

public boolean isWhiteSpace()

isAttributeSpecified

public boolean isAttributeSpecified(int i)

getNamespaceContext

public javax.xml.namespace.NamespaceContext getNamespaceContext()

getEventType

public int getEventType()

getText

public String getText()

getTextCharacters

public char[] getTextCharacters()

getTextCharacters

public int getTextCharacters(int i,
                             char[] chars,
                             int i1,
                             int i2)
                      throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getTextStart

public int getTextStart()

getTextLength

public int getTextLength()

getEncoding

public String getEncoding()

hasText

public boolean hasText()

getLocation

public javax.xml.stream.Location getLocation()

getName

public javax.xml.namespace.QName getName()

getLocalName

public String getLocalName()

hasName

public boolean hasName()

getNamespaceURI

public String getNamespaceURI()

getPrefix

public String getPrefix()

getVersion

public String getVersion()

isStandalone

public boolean isStandalone()

standaloneSet

public boolean standaloneSet()

getCharacterEncodingScheme

public String getCharacterEncodingScheme()

getPITarget

public String getPITarget()

getPIData

public String getPIData()

isEndOfFragment

public boolean isEndOfFragment()
Extra method to query the state of the pullparser

Returns:

init

public void init()
Initiate the parser - this will do whatever the needed tasks to initiate the parser and must be called before attempting any specific parsing using this parser


getAttributeCount

public int getAttributeCount()

getAttributeLocalName

public String getAttributeLocalName(int i)

getAttributeName

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

getAttributeNamespace

public String getAttributeNamespace(int i)

getAttributePrefix

public String getAttributePrefix(int i)

getAttributeType

public String getAttributeType(int i)

getAttributeValue

public String getAttributeValue(int i)

getAttributeValue

public String getAttributeValue(String string,
                                String string1)

getNamespaceCount

public int getNamespaceCount()

getNamespacePrefix

public String getNamespacePrefix(int i)

getNamespaceURI

public String getNamespaceURI(int i)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.