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.ObjectJSON 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 voidaddText(java.lang.String text)Add textjava.lang.StringgetKey()Get the key of the property.java.lang.StringgetParentKey()java.lang.StringgetTreeKey()abstract java.lang.ObjectgetValue()Get the value of the propertyMappedXMLStreamWriter.JSONPropertyObjectwithProperty(MappedXMLStreamWriter.JSONProperty property)abstract MappedXMLStreamWriter.JSONPropertyObjectwithProperty(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)
-
-