Package org.codehaus.jettison.mapped
Class MappedXMLStreamWriter.JSONPropertyObject
- java.lang.Object
-
- org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONProperty
-
- org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONPropertyObject
-
- Enclosing class:
- MappedXMLStreamWriter
private final class MappedXMLStreamWriter.JSONPropertyObject extends MappedXMLStreamWriter.JSONProperty
Property with a JSONObject value.
-
-
Field Summary
Fields Modifier and Type Field Description private JSONObjectobject
-
Constructor Summary
Constructors Constructor Description JSONPropertyObject(java.lang.String key, java.lang.String parentKey, JSONObject object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddText(java.lang.String text)Add textjava.lang.ObjectgetValue()Get the value of the propertyMappedXMLStreamWriter.JSONPropertyObjectwithProperty(MappedXMLStreamWriter.JSONProperty property, boolean add)Return a new property object with this property added-
Methods inherited from class org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONProperty
getKey, getParentKey, getTreeKey, withProperty
-
-
-
-
Field Detail
-
object
private JSONObject object
-
-
Constructor Detail
-
JSONPropertyObject
public JSONPropertyObject(java.lang.String key, java.lang.String parentKey, JSONObject object)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Description copied from class:MappedXMLStreamWriter.JSONPropertyGet the value of the property- Specified by:
getValuein classMappedXMLStreamWriter.JSONProperty
-
addText
public void addText(java.lang.String text)
Description copied from class:MappedXMLStreamWriter.JSONPropertyAdd text- Specified by:
addTextin classMappedXMLStreamWriter.JSONProperty
-
withProperty
public MappedXMLStreamWriter.JSONPropertyObject withProperty(MappedXMLStreamWriter.JSONProperty property, boolean add)
Description copied from class:MappedXMLStreamWriter.JSONPropertyReturn a new property object with this property added- Specified by:
withPropertyin classMappedXMLStreamWriter.JSONProperty
-
-