Package org.mapfish.print.wrapper
Interface PArray
-
- All Known Implementing Classes:
PJoinedArray
,PJsonArray
,PYamlArray
public interface PArray
Array wrapper interface for Json and Yaml parsing.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
size
int size()
Return the size of the array.
-
getObject
PObject getObject(int i)
Get the element at the index as a object.- Parameters:
i
- the index of the object to access
-
getArray
PArray getArray(int i)
Get the element at the index as a json array.- Parameters:
i
- the index of the element to access
-
getInt
int getInt(int i)
Get the element at the index as an integer.- Parameters:
i
- the index of the element to access
-
getLong
long getLong(int i)
Get the element at the index as a long.- Parameters:
i
- the index of the element to access
-
getFloat
float getFloat(int i)
Get the element at the index as a float.- Parameters:
i
- the index of the element to access
-
getDouble
double getDouble(int i)
Get the element at the index as a double.- Parameters:
i
- the index of the element to access
-
getString
java.lang.String getString(int i)
Get the element at the index as a string.- Parameters:
i
- the index of the element to access
-
getBool
boolean getBool(int i)
Get the element as a boolean.- Parameters:
i
- the index of the element to access
-
getPath
java.lang.String getPath(java.lang.String key)
Gets the string representation of the path to the current element.- Parameters:
key
- the leaf key
-
getCurrentPath
java.lang.String getCurrentPath()
Gets the string representation of the path to the current element.
-
get
java.lang.Object get(int i)
Get the object at the given index.- Parameters:
i
- the index of the element to access
-
-