Package org.mapfish.print.wrapper.yaml
Class PYamlArray
- java.lang.Object
-
- org.mapfish.print.wrapper.PElement
-
- org.mapfish.print.wrapper.yaml.PYamlArray
-
-
Constructor Summary
Constructors Constructor Description PYamlArray(PElement parent, java.util.List<java.lang.Object> array, java.lang.String contextName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.mapfish.print.wrapper.PElement
addPathTo, getContextName, getCurrentPath, getParent, getPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mapfish.print.wrapper.PArray
getCurrentPath, getPath
-
-
-
-
Constructor Detail
-
PYamlArray
public PYamlArray(PElement parent, java.util.List<java.lang.Object> array, java.lang.String contextName)
Constructor.- Parameters:
parent
- the parent object.array
- the array to wrapcontextName
- the name of this object within the parent.
-
-
Method Detail
-
size
public final int size()
Description copied from interface:PArray
Return the size of the array.
-
getObject
public final PObject getObject(int i)
Description copied from interface:PArray
Get the element at the index as a object.
-
getArray
public final PArray getArray(int i)
Description copied from interface:PArray
Get the element at the index as a json array.
-
getInt
public final int getInt(int i)
Description copied from interface:PArray
Get the element at the index as an integer.
-
getLong
public final long getLong(int i)
Description copied from interface:PArray
Get the element at the index as a long.
-
getFloat
public final float getFloat(int i)
Description copied from interface:PArray
Get the element at the index as a float.
-
getDouble
public final double getDouble(int i)
Description copied from interface:PArray
Get the element at the index as a double.
-
getString
public final java.lang.String getString(int i)
Description copied from interface:PArray
Get the element at the index as a string.
-
getBool
public final boolean getBool(int i)
Description copied from interface:PArray
Get the element as a boolean.
-
get
public final java.lang.Object get(int i)
Description copied from interface:PArray
Get the object at the given index.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toJSON
public final PJsonArray toJSON()
Convert this object to a json array.
-
-