Class JsonTypeConfiguration


  • public class JsonTypeConfiguration
    extends java.lang.Object
    Handles Json type configuration.
    Author:
    Martin Vojtek
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getJsonTypeAttributeName()
      Getter for type property name for JSON as MOXy type discriminator.
      boolean isJsonDisableNestedArrayName()
      Getter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.
      boolean isJsonTypeCompatibility()
      Getter for jsonTypeCompatibility
      boolean isUseXsdTypesWithPrefix()
      Getter for useXsdTypesWithPrefix property.
      void setJsonDisableNestedArrayName​(boolean jsonDisableNestedArrayName)
      Setter for JSON property to enable/disable generation of "item" name in nested arrays in JSON.
      void setJsonTypeAttributeName​(java.lang.String jsonTypeAttributeName)
      Override default type property name for JSON as MOXy type discriminator.
      void setJsonTypeCompatibility​(boolean jsonTypeCompatibility)
      If we should treat unqualified type property in JSON as MOXy type discriminator.
      void setUseXsdTypesWithPrefix​(boolean useXsdTypesWithPrefix)
      If there should be xsd prefix when using simple types, e.g.
      java.lang.String useJsonTypeAttributeName()
      Override default type property name for JSON as MOXy type discriminator.
      boolean useJsonTypeCompatibility()
      If we should treat unqualified type property in JSON as MOXy type discriminator.
      boolean useXsdTypesWithPrefix()
      If there should be xsd prefix when using simple types, e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonTypeConfiguration

        public JsonTypeConfiguration()
    • Method Detail

      • 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

        public java.lang.String getJsonTypeAttributeName()
        Getter for type property name for JSON as MOXy type discriminator.
        Returns:
        value of jsonTypeAttributeName property
        Since:
        2.7.4
      • useJsonTypeAttributeName

        public java.lang.String 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

        public void setJsonTypeAttributeName​(java.lang.String jsonTypeAttributeName)
        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