| Constructor and Description |
|---|
PYamlArray(PElement parent,
java.util.List<java.lang.Object> array,
java.lang.String contextName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int i)
Get the object at the given index.
|
PArray |
getArray(int i)
Get the element at the index as a json array.
|
boolean |
getBool(int i)
Get the element as a boolean.
|
double |
getDouble(int i)
Get the element at the index as a double.
|
float |
getFloat(int i)
Get the element at the index as a float.
|
int |
getInt(int i)
Get the element at the index as an integer.
|
long |
getLong(int i)
Get the element at the index as a long.
|
PObject |
getObject(int i)
Get the element at the index as a object.
|
java.lang.String |
getString(int i)
Get the element at the index as a string.
|
int |
size()
Return the size of the array.
|
PJsonArray |
toJSON()
Convert this object to a json array.
|
java.lang.String |
toString() |
addPathTo, getContextName, getCurrentPath, getParent, getPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrentPath, getPathpublic PYamlArray(PElement parent, java.util.List<java.lang.Object> array, java.lang.String contextName)
parent - the parent object.array - the array to wrapcontextName - the name of this object within the parent.public final int size()
PArraypublic final PObject getObject(int i)
PArraypublic final PArray getArray(int i)
PArraypublic final int getInt(int i)
PArraypublic final long getLong(int i)
PArraypublic final float getFloat(int i)
PArraypublic final double getDouble(int i)
PArraypublic final java.lang.String getString(int i)
PArraypublic final boolean getBool(int i)
PArraypublic final java.lang.Object get(int i)
PArraypublic final java.lang.String toString()
toString in class java.lang.Objectpublic final PJsonArray toJSON()