public class JSONKeywords
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
ARRAY
A constant that denotes the value given to the element name
for arrays.
|
java.lang.String |
BOOLEAN
A constant that denotes the value given to the type attribute
for booleans.
|
java.lang.String |
BOOLEAN_FALSE
A constant that denotes the value given to the value attribute
for false.
|
java.lang.String |
BOOLEAN_TRUE
A constant that denotes the value given to the value attribute
for true.
|
java.lang.String |
CONSTANT
A constant that turns into the element name used to denote
all scalar values - numbers, booleans and null.
|
java.lang.String |
CONSTANT_TYPE
A constant that denotes the type attribute of
all scalar values - numbers, booleans and null.
|
java.lang.String |
CONSTANT_VALUE
A constant that denotes the value attribute of
all scalar values - numbers, booleans and null.
|
java.lang.String |
FIELD
A constant that is used as an attribute to mark the field name
of components of objects.
|
java.lang.String |
FLOAT
A constant that denotes the value given to the type attribute
for floating point number.
|
java.lang.String |
ID
A constant that denotes the value given to the element name
for identifiers - only relevant for MinXSON.
|
java.lang.String |
ID_NAME
A constant that denotes the value given to the name attribute
for identifiers - only relevant for MinXSON.
|
java.lang.String |
INTEGER
A constant that denotes the value given to the type attribute
for whole numbers.
|
static JSONKeywords |
KEYS |
java.lang.String |
NULLEAN
A constant that denotes the value given to the type attribute
for null.
|
java.lang.String |
NULLEAN_NULL
A constant that denotes the value given to the value attribute
for null.
|
java.lang.String |
OBJECT
A constant that denotes the value given to the element name
for objects.
|
java.lang.String |
STRING
A constant that denotes the value given to the type attribute
for strings.
|
java.lang.String |
TYPE
A constant that is used as the attribute used to mark the type
of container ("array" or "object") for MinXSON parsing.
|
Constructor and Description |
---|
JSONKeywords(java.util.Map<java.lang.String,java.lang.String> keys)
Constructs a JSONKeywords translation table by overriding the
default values with values from the keys map.
|
public final java.lang.String TYPE
public final java.lang.String FIELD
<object><constant FIELD="foo" type="integer" value="99"/></object>
public final java.lang.String CONSTANT
<CONSTANT type="boolean" value="true"/>
.public final java.lang.String CONSTANT_TYPE
<constant CONSTANT_TYPE="boolean" value="true"/>
.public final java.lang.String CONSTANT_VALUE
<constant type="boolean" CONSTANT_VALUE="true"/>
.public final java.lang.String FLOAT
<constant type=FLOAT value="3.14159"/>
.public final java.lang.String INTEGER
<constant type=INTEGER value="-17"/>
.public final java.lang.String STRING
<constant type=STRING value="foo"/>
.public final java.lang.String BOOLEAN
<constant type=BOOLEAN value="false"/>
.public final java.lang.String NULLEAN
<constant type=NULLEAN value="null"/>
.public final java.lang.String ARRAY
<ARRAY/>
public final java.lang.String OBJECT
<OBJECT/>
public final java.lang.String NULLEAN_NULL
<constant type="null" value=NULLEAN_NULL/>
.public final java.lang.String BOOLEAN_TRUE
<constant type="boolean" value=BOOLEAN_TRUE/>
.public final java.lang.String BOOLEAN_FALSE
<constant type="boolean" value=BOOLEAN_FALSE/>
.public final java.lang.String ID
<ID name="x"/>
.public final java.lang.String ID_NAME
<id ID_NAME="x"/>
.public static final JSONKeywords KEYS
public JSONKeywords(java.util.Map<java.lang.String,java.lang.String> keys)
keys
- a map of symbolic names to the strings to be used.