Package org.mapfish.print.wrapper
Class PJoinedArray
java.lang.Object
org.mapfish.print.wrapper.PJoinedArray
- All Implemented Interfaces:
PArray
PArray that is consists of several PArray objects merged together.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int i) Get the object at the given index.getArray
(int i) Get the element at the index as a json array.boolean
getBool
(int i) Get the element as a boolean.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.getObject
(int i) Get the element at the index as a object.Gets the string representation of the path to the current element.getString
(int i) Get the element at the index as a string.int
size()
Return the size of the array.
-
Constructor Details
-
PJoinedArray
Constructor.- Parameters:
arrays
- the arrays that constitute the joined array.
-
-
Method Details
-
size
public 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 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
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
Description copied from interface:PArray
Gets the string representation of the path to the current element. -
getCurrentPath
Description copied from interface:PArray
Gets the string representation of the path to the current element.- Specified by:
getCurrentPath
in interfacePArray
-
get
Description copied from interface:PArray
Get the object at the given index.
-