Package org.codehaus.jettison.mapped
Class MappedXMLStreamWriter.JSONPropertyString
- java.lang.Object
-
- org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONProperty
-
- org.codehaus.jettison.mapped.MappedXMLStreamWriter.JSONPropertyString
-
- Enclosing class:
- MappedXMLStreamWriter
private final class MappedXMLStreamWriter.JSONPropertyString extends MappedXMLStreamWriter.JSONProperty
Property with a String value.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilderobject
-
Constructor Summary
Constructors Constructor Description JSONPropertyString(java.lang.String key, java.lang.String parentKey)
-
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
-
-
-
-
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
-
-