Package org.mapfish.print.wrapper
Class PJoinedArray
- java.lang.Object
-
- org.mapfish.print.wrapper.PJoinedArray
-
-
Constructor Summary
Constructors Constructor Description PJoinedArray(PArray[] arrays)
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.java.lang.String
getCurrentPath()
Gets the string representation of the path to the current element.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
getPath(java.lang.String key)
Gets the string representation of the path to the current element.java.lang.String
getString(int i)
Get the element at the index as a string.int
size()
Return the size of the array.
-
-
-
Constructor Detail
-
PJoinedArray
public PJoinedArray(PArray[] arrays)
Constructor.- Parameters:
arrays
- the arrays that constitute the joined array.
-
-
Method Detail
-
size
public int size()
Description copied from interface:PArray
Return the size of the array.
-
getObject
public PObject getObject(int i)
Description copied from interface:PArray
Get the element at the index as a object.
-
getArray
public PArray getArray(int i)
Description copied from interface:PArray
Get the element at the index as a json array.
-
getInt
public int getInt(int i)
Description copied from interface:PArray
Get the element at the index as an integer.
-
getLong
public long getLong(int i)
Description copied from interface:PArray
Get the element at the index as a long.
-
getFloat
public float getFloat(int i)
Description copied from interface:PArray
Get the element at the index as a float.
-
getDouble
public double getDouble(int i)
Description copied from interface:PArray
Get the element at the index as a double.
-
getString
public java.lang.String getString(int i)
Description copied from interface:PArray
Get the element at the index as a string.
-
getBool
public boolean getBool(int i)
Description copied from interface:PArray
Get the element as a boolean.
-
getPath
public java.lang.String getPath(java.lang.String key)
Description copied from interface:PArray
Gets the string representation of the path to the current element.
-
getCurrentPath
public java.lang.String getCurrentPath()
Description copied from interface:PArray
Gets the string representation of the path to the current element.- Specified by:
getCurrentPath
in interfacePArray
-
-