org.xerial.wiki
Class WikiArray

java.lang.Object
  extended by org.xerial.wiki.WikiArray
All Implemented Interfaces:
Iterable<WikiValue>, WikiValue

public class WikiArray
extends Object
implements WikiValue, Iterable<WikiValue>

Array representation of WikiValue

Author:
leo

Constructor Summary
WikiArray()
           
 
Method Summary
 void add(WikiValue value)
           
 WikiValue get(int index)
           
 WikiArray isArray()
           
 WikiHash isHash()
           
 String isString()
           
 Iterator<WikiValue> iterator()
           
 int size()
           
 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

WikiArray

public WikiArray()
Method Detail

iterator

public Iterator<WikiValue> iterator()
Specified by:
iterator in interface Iterable<WikiValue>

get

public WikiValue get(int index)

size

public int size()

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

add

public void add(WikiValue value)

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.