public static enum DescriptificationConfig.ObjectMode extends java.lang.Enum<DescriptificationConfig.ObjectMode>
Enum Constant and Description |
---|
TO_JAVA_COLLECTIONS
Convert JS objects to Maps and JS arrays to Lists (The default)
Pro: Also descriptifies contained object into Java Counterparts,
Con: Will not be transferred back into the type when using
RhinoExpressionEngine.scriptify(Object, Object) . |
TO_JSON
Convert JS objects and arrays to Gson JSON objects
Pro: Works symmetricly on
RhinoExpressionEngine.scriptify(Object, Object) , i.e. |
Modifier and Type | Method and Description |
---|---|
static DescriptificationConfig.ObjectMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DescriptificationConfig.ObjectMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptificationConfig.ObjectMode TO_JSON
RhinoExpressionEngine.scriptify(Object, Object)
, i.e. JSON objects get cleanly transferred back, Smaller serialisation payload
Con: Contained Non-JSON objects raise errorspublic static final DescriptificationConfig.ObjectMode TO_JAVA_COLLECTIONS
RhinoExpressionEngine.scriptify(Object, Object)
. Large serialisation payloadpublic static DescriptificationConfig.ObjectMode[] values()
for (DescriptificationConfig.ObjectMode c : DescriptificationConfig.ObjectMode.values()) System.out.println(c);
public static DescriptificationConfig.ObjectMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null