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 MappedNamespaceConventionconventionprivate javax.xml.namespace.NamespaceContextctxprivate java.lang.StringcurrentValueprivate FastStacknodesprivate intpopArrayNodesprivate java.lang.StringvalueKey-
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 voidclose()MappedNamespaceConventiongetConvention()java.lang.StringgetElementText()javax.xml.namespace.NamespaceContextgetNamespaceContext()java.lang.StringgetText()booleanisAvoidArraySpecificEvents(java.lang.String key)intnext()private voidprocessElement()private booleanprocessUniformArrayIfPossible(java.lang.String arrayKey, JSONArray array)voidsetValueKey(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:
JSONExceptionjavax.xml.stream.XMLStreamException
-
MappedXMLStreamReader
public MappedXMLStreamReader(JSONObject obj, MappedNamespaceConvention con) throws JSONException, javax.xml.stream.XMLStreamException
- Throws:
JSONExceptionjavax.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:
JSONExceptionjavax.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()
-
-