org.apache.tuscany.sdo.util.resource
Class DataObjectXMLStreamReader.SimpleElementStreamReader
java.lang.Object
org.apache.tuscany.sdo.util.resource.DataObjectXMLStreamReader.SimpleElementStreamReader
- Enclosing class:
- DataObjectXMLStreamReader
protected static class DataObjectXMLStreamReader.SimpleElementStreamReader
- extends Object
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_TEXT
public static final String ELEMENT_TEXT
- See Also:
- Constant Field Values
DataObjectXMLStreamReader.SimpleElementStreamReader
public DataObjectXMLStreamReader.SimpleElementStreamReader(javax.xml.namespace.QName name,
String value,
DataObjectXMLStreamReader.NameSpaceContext nameSpaces)
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.