|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.json.JSONSettings
public class JSONSettings
Tunable parameters for the JSON encoding/decoding. Please refer to JSON Fudge Messages for details on the representation.
Field Summary | |
---|---|
static String |
DEFAULT_PROCESSINGDIRECTIVES_FIELD
Default name for the processing directives field. |
static String |
DEFAULT_SCHEMAVERSION_FIELD
Default name for the schema version field. |
static String |
DEFAULT_TAXONOMY_FIELD
Default name for the taxonomy field. |
Constructor Summary | |
---|---|
JSONSettings()
Creates a new settings object with the default values. |
|
JSONSettings(JSONSettings copy)
Creates a new settings object copying the current values from another. |
Method Summary | |
---|---|
boolean |
getPreferFieldNames()
|
String |
getProcessingDirectivesField()
Returns the name of the field to use for the processing directives, or null if it is to be omitted. |
String |
getSchemaVersionField()
Returns the name of the field to use for the schema version, or null if it is to be omitted. |
String |
getTaxonomyField()
Returns the name of the field to use for the taxonomy, or null if it is to be omitted. |
void |
setPreferFieldNames(boolean preferFieldNames)
|
void |
setProcessingDirectivesField(String processingDirectivesField)
Sets the field name to use for adding the message processing directives to the JSON object. |
void |
setSchemaVersionField(String schemaVersionField)
Sets the field name to use for adding the schema version to the JSON object. |
void |
setTaxonomyField(String taxonomyField)
Sets the field name to use for adding the taxonomy Id to the JSON object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_PROCESSINGDIRECTIVES_FIELD
public static final String DEFAULT_SCHEMAVERSION_FIELD
public static final String DEFAULT_TAXONOMY_FIELD
Constructor Detail |
---|
public JSONSettings()
public JSONSettings(JSONSettings copy)
copy
- object to copy the settings fromMethod Detail |
---|
public String getProcessingDirectivesField()
null
if it is to be omitted.
null
to omitpublic String getSchemaVersionField()
null
if it is to be omitted.
null
to omitpublic String getTaxonomyField()
null
if it is to be omitted.
null
to omitpublic void setProcessingDirectivesField(String processingDirectivesField)
null
to
omit the field.
processingDirectivesField
- field name or null
to omitpublic void setSchemaVersionField(String schemaVersionField)
null
to omit the field.
schemaVersionField
- field name or null
to omitpublic void setTaxonomyField(String taxonomyField)
null
to omit the field.
taxonomyField
- field name or null
to omitpublic void setPreferFieldNames(boolean preferFieldNames)
public boolean getPreferFieldNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |