Package org.mapfish.print.wrapper
Class PElement
java.lang.Object
org.mapfish.print.wrapper.PElement
- Direct Known Subclasses:
PAbstractObject
,PJsonArray
,PYamlArray
Common parent class for the Json and Yaml wrappers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addPathTo
(StringBuilder result) Append the path to the StringBuilder.protected final String
final String
Gets the string representation of the path to the current JSON element.final PElement
final String
Gets the string representation of the path to the current JSON element.
-
Constructor Details
-
PElement
Constructor.- Parameters:
parent
- the parent elementcontextName
- the field name of this element in the parent.
-
-
Method Details
-
getPath
Gets the string representation of the path to the current JSON element.- Parameters:
key
- the leaf key
-
getContextName
-
getCurrentPath
Gets the string representation of the path to the current JSON element. -
addPathTo
Append the path to the StringBuilder.- Parameters:
result
- the string builder to add the path to.
-
getParent
-