org.xerial.wiki
Class WikiHash

java.lang.Object
  extended by org.xerial.wiki.WikiHash
All Implemented Interfaces:
WikiValue

public class WikiHash
extends Object
implements WikiValue

hash representation of WikiValue

Author:
leo

Constructor Summary
WikiHash()
           
 
Method Summary
 boolean containsKey(String parameterName)
           
 WikiValue getValue(String parameterName)
           
 WikiValue getValue(String parameterName, WikiValue defaultValue)
           
 WikiArray isArray()
           
 WikiHash isHash()
           
 String isString()
           
 Set<String> keySet()
           
 void put(String parameterName, WikiValue value)
          Puts a parameter value to this hash
 JSONObject toJSON(String parameterName)
           
 JSONValue toJSONValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WikiHash

public WikiHash()
Method Detail

put

public void put(String parameterName,
                WikiValue value)
Puts a parameter value to this hash

Parameters:
parameterName -
value -

containsKey

public boolean containsKey(String parameterName)

getValue

public WikiValue getValue(String parameterName)

getValue

public WikiValue getValue(String parameterName,
                          WikiValue defaultValue)

keySet

public Set<String> keySet()

isArray

public WikiArray isArray()
Specified by:
isArray in interface WikiValue

isHash

public WikiHash isHash()
Specified by:
isHash in interface WikiValue

isString

public String isString()
Specified by:
isString in interface WikiValue

toJSON

public JSONObject toJSON(String parameterName)
Specified by:
toJSON in interface WikiValue

toJSONValue

public JSONValue toJSONValue()
Specified by:
toJSONValue in interface WikiValue

toString

public String toString()
Overrides:
toString in class Object


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.