Package org.mapfish.print.wrapper
Class PAbstractObject
java.lang.Object
org.mapfish.print.wrapper.PElement
org.mapfish.print.wrapper.PAbstractObject
- All Implemented Interfaces:
PObject
- Direct Known Subclasses:
PJsonObject
,PMultiObject
,PYamlObject
Abstract class for PObject implementation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PAbstractObject
(PElement parent, String contextName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal PArray
Get a property as a array or throw exception.final boolean
Get a property as a boolean or throw exception.final double
Get a property as a double or throw an exception.final float
Get a property as a float or throw an exception.final int
Get a property as an int or throw an exception.final long
Get a property as an long or throw an exception.final PObject
Get a property as a object or throw exception.final String
Get a property as a string or throw an exception.final PArray
Get a property as a array or default.final Boolean
Get a property as a boolean or default value.final Double
Get a property as a double or defaultValue.final Float
Get a property as a float or Default value.final Integer
Get a property as an int or default value.final long
Get a property as an long or default value.final PObject
Get a property as a array or default.final String
Get a property as a string or defaultValue.Methods inherited from class org.mapfish.print.wrapper.PElement
addPathTo, getContextName, getCurrentPath, getParent, getPath
-
Constructor Details
-
PAbstractObject
Constructor.- Parameters:
parent
- the parent elementcontextName
- the field name of this element in the parent.
-
-
Method Details
-
getString
Get a property as a string or throw an exception. -
optString
Get a property as a string or defaultValue. -
getInt
Get a property as an int or throw an exception. -
optInt
Get a property as an int or default value. -
getLong
Get a property as an long or throw an exception. -
optLong
Get a property as an long or default value. -
getDouble
Get a property as a double or throw an exception. -
optDouble
Get a property as a double or defaultValue. -
getFloat
Get a property as a float or throw an exception. -
optFloat
Get a property as a float or Default value. -
getBool
Get a property as a boolean or throw exception. -
optBool
Get a property as a boolean or default value. -
getObject
Get a property as a object or throw exception. -
optObject
Get a property as a array or default. -
getArray
Get a property as a array or throw exception. -
optArray
Get a property as a array or default.
-