se.unlogic.standardutils.json
Class JsonLeaf
java.lang.Object
se.unlogic.standardutils.json.JsonLeaf
- All Implemented Interfaces:
- Serializable, JsonNode
public class JsonLeaf
- extends Object
- implements JsonNode
A JSON value component (no children)
Equalizes the "leaf" of the "composite pattern" design pattern.
- Author:
- sikstromj
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonLeaf
public JsonLeaf(String value)
toJson
public String toJson()
- Specified by:
toJson
in interface JsonNode
toJson
public String toJson(StringBuilder stringBuilder)
- Specified by:
toJson
in interface JsonNode
Copyright © 2011. All Rights Reserved.