|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.catalog.gxe.GxeJsonSerializer
public class GxeJsonSerializer
Serializes a Geoportal XML editor definition to JSON format.
Constructor Summary | |
---|---|
GxeJsonSerializer()
Default constructor |
Method Summary | |
---|---|
String |
asJson(GxeContext context,
GxeDefinition definition)
Returns a JSON representation for a Geoportal XML editor definition. |
protected String |
evaluateNodeValue(GxeContext context,
XmlNode xmlNode,
String value)
Evaluates a GXE XmlNode value. |
protected List<XmlAttribute> |
getAttributesToRender(GxeContext context,
XmlElement element)
Gets the list of attributes to render. |
protected List<XmlElement> |
getChildrenToRender(GxeContext context,
XmlElement element)
Gets the list of children to render. |
protected String |
lookupI18N(GxeContext context,
String i18nKey,
XmlNode xmlNode,
String originalValue)
Looks up an I18N (internationalization and localization) message. |
void |
toJson(GxeContext context,
XmlElement element,
PrintWriter writer,
int depth,
boolean isLast)
Writes a JSON representation of the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GxeJsonSerializer()
Method Detail |
---|
public String asJson(GxeContext context, GxeDefinition definition) throws IOException
context
- the processing contextdefinition
- the definition to be serialized
IOException
- if an exception occursprotected String evaluateNodeValue(GxeContext context, XmlNode xmlNode, String value)
context
- the processing contextxmlNode
- the GXE XmlNode that is actively being processedvalue
- the node value to evaluate
protected List<XmlAttribute> getAttributesToRender(GxeContext context, XmlElement element)
context
- the processing contextelement
- the GXE XmlElement that is actively being processed
protected List<XmlElement> getChildrenToRender(GxeContext context, XmlElement element)
context
- the processing contextelement
- the GXE XmlElement that is actively being processed
protected String lookupI18N(GxeContext context, String i18nKey, XmlNode xmlNode, String originalValue)
context
- the processing contexti18nKey
- the resource bundle keyxmlNode
- the GXE XmlNode that is actively being processedoriginalValue
- the original node value
public void toJson(GxeContext context, XmlElement element, PrintWriter writer, int depth, boolean isLast) throws IOException
context
- the processing contextelement
- the GXE element that is actively being processedwriter
- the writerdepth
- the depth of the parentisLast
- true
Throws:
IOException
- if an I/O exception occurs
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |