Package org.mapfish.print.wrapper.yaml
Class PYamlArray
java.lang.Object
org.mapfish.print.wrapper.PElement
org.mapfish.print.wrapper.yaml.PYamlArray
- All Implemented Interfaces:
PArray
Array wrapper for Yaml parsing.
-
Constructor Summary
ConstructorsConstructorDescriptionPYamlArray
(PElement parent, List<Object> array, String contextName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
get
(int i) Get the object at the given index.final PArray
getArray
(int i) Get the element at the index as a json array.final boolean
getBool
(int i) Get the element as a boolean.final double
getDouble
(int i) Get the element at the index as a double.final float
getFloat
(int i) Get the element at the index as a float.final int
getInt
(int i) Get the element at the index as an integer.final long
getLong
(int i) Get the element at the index as a long.final PObject
getObject
(int i) Get the element at the index as a object.final String
getString
(int i) Get the element at the index as a string.final int
size()
Return the size of the array.final PJsonArray
toJSON()
Convert this object to a json array.final 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 Details
-
PYamlArray
Constructor.- Parameters:
parent
- the parent object.array
- the array to wrapcontextName
- the name of this object within the parent.
-
-
Method Details
-
size
public final int size()Description copied from interface:PArray
Return the size of the array. -
getObject
Description copied from interface:PArray
Get the element at the index as a object. -
getArray
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
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
Description copied from interface:PArray
Get the object at the given index. -
toString
-
toJSON
Convert this object to a json array.
-