Package org.codehaus.jettison.mapped
Class MappedXMLStreamWriter.JSONProperty
- java.lang.Object
-
- org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONProperty
-
- Direct Known Subclasses:
MappedXMLStreamWriter.JSONPropertyObject
,MappedXMLStreamWriter.JSONPropertyString
- Enclosing class:
- MappedXMLStreamWriter
private abstract class MappedXMLStreamWriter.JSONProperty extends java.lang.Object
JSON property currently being constructed. For efficiency, this is concretely represented as either a property with a String value or an Object value.
-
-
Constructor Summary
Constructors Constructor Description JSONProperty(java.lang.String key, java.lang.String parentKey)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addText(java.lang.String text)
Add textjava.lang.String
getKey()
Get the key of the property.java.lang.String
getParentKey()
java.lang.String
getTreeKey()
abstract java.lang.Object
getValue()
Get the value of the propertyMappedXMLStreamWriter.JSONPropertyObject
withProperty(MappedXMLStreamWriter.JSONProperty property)
abstract MappedXMLStreamWriter.JSONPropertyObject
withProperty(MappedXMLStreamWriter.JSONProperty property, boolean add)
Return a new property object with this property added
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Get the key of the property.
-
getParentKey
public java.lang.String getParentKey()
-
getTreeKey
public java.lang.String getTreeKey()
-
getValue
public abstract java.lang.Object getValue()
Get the value of the property
-
addText
public abstract void addText(java.lang.String text)
Add text
-
withProperty
public abstract MappedXMLStreamWriter.JSONPropertyObject withProperty(MappedXMLStreamWriter.JSONProperty property, boolean add)
Return a new property object with this property added
-
withProperty
public MappedXMLStreamWriter.JSONPropertyObject withProperty(MappedXMLStreamWriter.JSONProperty property)
-
-