Package org.codehaus.jettison.mapped
Class MappedXMLStreamReader
- java.lang.Object
-
- org.codehaus.jettison.AbstractXMLStreamReader
-
- org.codehaus.jettison.mapped.MappedXMLStreamReader
-
- All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants
,javax.xml.stream.XMLStreamReader
public class MappedXMLStreamReader extends AbstractXMLStreamReader
-
-
Field Summary
Fields Modifier and Type Field Description private MappedNamespaceConvention
convention
private javax.xml.namespace.NamespaceContext
ctx
private java.lang.String
currentValue
private FastStack
nodes
private int
popArrayNodes
private java.lang.String
valueKey
-
Fields inherited from class org.codehaus.jettison.AbstractXMLStreamReader
event, node
-
-
Constructor Summary
Constructors Constructor Description MappedXMLStreamReader(JSONObject obj)
MappedXMLStreamReader(JSONObject obj, MappedNamespaceConvention con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MappedNamespaceConvention
getConvention()
java.lang.String
getElementText()
javax.xml.namespace.NamespaceContext
getNamespaceContext()
java.lang.String
getText()
boolean
isAvoidArraySpecificEvents(java.lang.String key)
int
next()
private void
processElement()
private boolean
processUniformArrayIfPossible(java.lang.String arrayKey, JSONArray array)
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, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
-
-
-
-
Field Detail
-
nodes
private FastStack nodes
-
currentValue
private java.lang.String currentValue
-
convention
private MappedNamespaceConvention convention
-
valueKey
private java.lang.String valueKey
-
ctx
private javax.xml.namespace.NamespaceContext ctx
-
popArrayNodes
private int popArrayNodes
-
-
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
-
processUniformArrayIfPossible
private boolean processUniformArrayIfPossible(java.lang.String arrayKey, JSONArray array) throws JSONException, javax.xml.stream.XMLStreamException
- Throws:
JSONException
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()
-
setValueKey
public void setValueKey(java.lang.String valueKey)
-
isAvoidArraySpecificEvents
public boolean isAvoidArraySpecificEvents(java.lang.String key)
-
getConvention
public MappedNamespaceConvention getConvention()
-
-