org.codehaus.jettison.mapped
Class MappedXMLStreamReader

java.lang.Object
  extended by org.codehaus.jettison.AbstractXMLStreamReader
      extended by org.codehaus.jettison.mapped.MappedXMLStreamReader
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader

public class MappedXMLStreamReader
extends AbstractXMLStreamReader


Field Summary
private  MappedNamespaceConvention convention
           
private  java.lang.String currentValue
           
private  FastStack nodes
           
private  java.lang.String valueKey
           
 
Fields inherited from class org.codehaus.jettison.AbstractXMLStreamReader
event, node
 
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
MappedXMLStreamReader(JSONObject obj)
           
MappedXMLStreamReader(JSONObject obj, MappedNamespaceConvention con)
           
 
Method Summary
 void close()
           
 java.lang.String getElementText()
           
 javax.xml.namespace.NamespaceContext getNamespaceContext()
           
 java.lang.String getText()
           
 int getTextCharacters(int arg0, char[] arg1, int arg2, int arg3)
           
 int next()
           
private  void processElement()
           
 void setValueKey(java.lang.String valueKey)
           
 
Methods inherited from class org.codehaus.jettison.AbstractXMLStreamReader
getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

private FastStack nodes

currentValue

private java.lang.String currentValue

convention

private MappedNamespaceConvention convention

valueKey

private java.lang.String valueKey
Constructor Detail

MappedXMLStreamReader

public MappedXMLStreamReader(JSONObject obj)
                      throws JSONException,
                             javax.xml.stream.XMLStreamException
Throws:
JSONException
javax.xml.stream.XMLStreamException

MappedXMLStreamReader

public MappedXMLStreamReader(JSONObject obj,
                             MappedNamespaceConvention con)
                      throws JSONException,
                             javax.xml.stream.XMLStreamException
Throws:
JSONException
javax.xml.stream.XMLStreamException
Method Detail

next

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

processElement

private void processElement()
                     throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

close

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

getElementText

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

getNamespaceContext

public javax.xml.namespace.NamespaceContext getNamespaceContext()

getText

public java.lang.String getText()

getTextCharacters

public int getTextCharacters(int arg0,
                             char[] arg1,
                             int arg2,
                             int arg3)
                      throws javax.xml.stream.XMLStreamException
Specified by:
getTextCharacters in interface javax.xml.stream.XMLStreamReader
Overrides:
getTextCharacters in class AbstractXMLStreamReader
Throws:
javax.xml.stream.XMLStreamException

setValueKey

public void setValueKey(java.lang.String valueKey)