public class JsonInspector extends Object implements DomInspector<Element>
Constructor and Description |
---|
JsonInspector(JsonInspectorConfig config) |
Modifier and Type | Method and Description |
---|---|
protected com.google.gson.JsonObject |
getRoot() |
String |
inspect(Object toInspect,
String type,
String... names)
Inspect the given Object according to the given path, and return the result as a String
conforming to inspection-result-1.0.xsd.
|
Element |
inspectAsDom(Object toInspect,
String type,
String... names)
Optimized verison of
inspect that avoids DOM serialization/deserialization. |
public JsonInspector(JsonInspectorConfig config)
public final String inspect(Object toInspect, String type, String... names)
Inspector
Note: the method returns a String, rather than a DOM, to support the use of hetergenous technologies between the Inspectors and the Metawidgets. For example, GwtMetawidget is written in JavaScript but its Inspectors are written in Java.
public Element inspectAsDom(Object toInspect, String type, String... names)
DomInspector
inspect
that avoids DOM serialization/deserialization.inspectAsDom
in interface DomInspector<Element>
protected com.google.gson.JsonObject getRoot()
Copyright © 2015. All Rights Reserved.