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 Objectget(int i) Get the object at the given index.final PArraygetArray(int i) Get the element at the index as a json array.final booleangetBool(int i) Get the element as a boolean.final doublegetDouble(int i) Get the element at the index as a double.final floatgetFloat(int i) Get the element at the index as a float.final intgetInt(int i) Get the element at the index as an integer.final longgetLong(int i) Get the element at the index as a long.final PObjectgetObject(int i) Get the element at the index as a object.final StringgetString(int i) Get the element at the index as a string.final intsize()Return the size of the array.final PJsonArraytoJSON()Convert this object to a json array.final StringtoString()Methods inherited from class org.mapfish.print.wrapper.PElement
addPathTo, getContextName, getCurrentPath, getParent, getPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:PArrayReturn the size of the array. -
getObject
Description copied from interface:PArrayGet the element at the index as a object. -
getArray
Description copied from interface:PArrayGet the element at the index as a json array. -
getInt
public final int getInt(int i) Description copied from interface:PArrayGet the element at the index as an integer. -
getLong
public final long getLong(int i) Description copied from interface:PArrayGet the element at the index as a long. -
getFloat
public final float getFloat(int i) Description copied from interface:PArrayGet the element at the index as a float. -
getDouble
public final double getDouble(int i) Description copied from interface:PArrayGet the element at the index as a double. -
getString
Description copied from interface:PArrayGet the element at the index as a string. -
getBool
public final boolean getBool(int i) Description copied from interface:PArrayGet the element as a boolean. -
get
Description copied from interface:PArrayGet the object at the given index. -
toString
-
toJSON
Convert this object to a json array.
-