se.unlogic.standardutils.json
Class JsonLeaf

java.lang.Object
  extended by se.unlogic.standardutils.json.JsonLeaf
All Implemented Interfaces:
java.io.Serializable, JsonNode

public class JsonLeaf
extends java.lang.Object
implements JsonNode

A JSON value component (no children) Equalizes the "leaf" of the "composite pattern" design pattern.

Author:
sikstromj
See Also:
Serialized Form

Constructor Summary
JsonLeaf(java.lang.String value)
           
 
Method Summary
 java.lang.String toJson()
           
 java.lang.String toJson(java.lang.StringBuilder stringBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonLeaf

public JsonLeaf(java.lang.String value)
Method Detail

toJson

public java.lang.String toJson()
Specified by:
toJson in interface JsonNode

toJson

public java.lang.String toJson(java.lang.StringBuilder stringBuilder)
Specified by:
toJson in interface JsonNode


Copyright © 2011. All Rights Reserved.