Module org.eclipse.persistence.core
Class JsonTypeConfiguration
java.lang.Object
org.eclipse.persistence.internal.oxm.JsonTypeConfiguration
Handles Json type configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for type property name for JSON as MOXy type discriminator.booleanGetter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.booleanGetter for jsonTypeCompatibilitybooleanGetter for useXsdTypesWithPrefix property.voidsetJsonDisableNestedArrayName(boolean jsonDisableNestedArrayName) Setter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.voidsetJsonTypeAttributeName(String jsonTypeAttributeName) Override default type property name for JSON as MOXy type discriminator.voidsetJsonTypeCompatibility(boolean jsonTypeCompatibility) If we should treat unqualified type property in JSON as MOXy type discriminator.voidsetUseXsdTypesWithPrefix(boolean useXsdTypesWithPrefix) If there should be xsd prefix when using simple types, e.g.Override default type property name for JSON as MOXy type discriminator.booleanIf we should treat unqualified type property in JSON as MOXy type discriminator.booleanIf there should be xsd prefix when using simple types, e.g.
-
Constructor Details
-
JsonTypeConfiguration
public JsonTypeConfiguration()
-
-
Method Details
-
isUseXsdTypesWithPrefix
public boolean isUseXsdTypesWithPrefix()Getter for useXsdTypesWithPrefix property.- Returns:
- value of useXsdTypesWithPrefix property
- Since:
- 2.6.0
-
useXsdTypesWithPrefix
public boolean useXsdTypesWithPrefix()If there should be xsd prefix when using simple types, e.g. xsd.int.- Returns:
- true if there should be xsd prefix when using simple types, e.g. xsd.int.
- Since:
- 2.6.0
-
setUseXsdTypesWithPrefix
public void setUseXsdTypesWithPrefix(boolean useXsdTypesWithPrefix) If there should be xsd prefix when using simple types, e.g. xsd.int.- Parameters:
useXsdTypesWithPrefix- If there should be xsd prefix when using simple types, e.g. xsd.int.- Since:
- 2.6.0
-
isJsonTypeCompatibility
public boolean isJsonTypeCompatibility()Getter for jsonTypeCompatibility- Returns:
- value of jsonTypeCompatibility property
- Since:
- 2.6.0
-
useJsonTypeCompatibility
public boolean useJsonTypeCompatibility()If we should treat unqualified type property in JSON as MOXy type discriminator.- Returns:
- true if we should treat unqualified type property in JSON as MOXy type discriminator.
- Since:
- 2.6.0
-
setJsonTypeCompatibility
public void setJsonTypeCompatibility(boolean jsonTypeCompatibility) If we should treat unqualified type property in JSON as MOXy type discriminator.- Parameters:
jsonTypeCompatibility- If we should treat unqualified type property in JSON as MOXy type discriminator.- Since:
- 2.6.0
-
getJsonTypeAttributeName
Getter for type property name for JSON as MOXy type discriminator.- Returns:
- value of jsonTypeAttributeName property
- Since:
- 2.7.4
-
useJsonTypeAttributeName
Override default type property name for JSON as MOXy type discriminator.- Returns:
- type property name for JSON as MOXy type discriminator.
- Since:
- 2.7.4
-
setJsonTypeAttributeName
Override default type property name for JSON as MOXy type discriminator.- Parameters:
jsonTypeAttributeName- Type property name for JSON as MOXy type discriminator.- Since:
- 2.6.0
-
isJsonDisableNestedArrayName
public boolean isJsonDisableNestedArrayName()Getter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.- Returns:
- value of jsonDisableNestedArrayName property
- Since:
- 2.7.5
-
setJsonDisableNestedArrayName
public void setJsonDisableNestedArrayName(boolean jsonDisableNestedArrayName) Setter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.- Parameters:
jsonDisableNestedArrayName- value of jsonDisableNestedArrayName property- Since:
- 2.7.5
-