Class UnmarshallerProperties


  • public class UnmarshallerProperties
    extends java.lang.Object
    These are properties that may be set on an instance of Unmarshaller. Below is an example of using the property mechanism to enable MOXy's JSON binding for an instance of Unmarshaller.
     Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
     unmarshaller.setProperty(UnmarshallerProperties.MEDIA_TYPE, "application/json");
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AUTO_DETECT_MEDIA_TYPE
      The name of the property used to specify if the media type should be auto detected (default is false).
      static java.lang.String BEAN_VALIDATION_FACTORY
      Property for setting preferred or custom validator factory.
      static java.lang.String BEAN_VALIDATION_GROUPS
      Property for setting bean validation target groups.
      static java.lang.String BEAN_VALIDATION_MODE
      Property for setting bean validation mode.
      static java.lang.String BEAN_VALIDATION_NO_OPTIMISATION
      Property for disabling Bean Validation optimisations.
      static java.lang.String DISABLE_SECURE_PROCESSING  
      static java.lang.String ID_RESOLVER
      The name of the property used to specify a custom IDResolver class, to allow customization of ID/IDREF processing.
      static java.lang.String JSON_ATTRIBUTE_PREFIX
      The name of the property used to specify a value that will be prepended to all keys that are mapped to an XML attribute.
      static java.lang.String JSON_INCLUDE_ROOT
      The name of the property used to specify in the root node should be included in the message (default is true).
      static java.lang.String JSON_NAMESPACE_PREFIX_MAPPER
      The Constant JSON_NAMESPACE_PREFIX_MAPPER.
      static java.lang.String JSON_NAMESPACE_SEPARATOR
      The name of the property used to specify the character (default is '.')
      static java.lang.String JSON_TYPE_ATTRIBUTE_NAME
      Override default type property name for JSON as MOXy type discriminator.
      static java.lang.String JSON_TYPE_COMPATIBILITY
      If we should treat unqualified type property in JSON as MOXy type discriminator.
      static java.lang.String JSON_USE_XSD_TYPES_WITH_PREFIX
      If there should be xsd prefix when using simple types, e.g. xsd.int.
      static java.lang.String JSON_VALUE_WRAPPER
      The name of the property used to specify the key that will correspond to the property mapped with @XmlValue.
      static java.lang.String JSON_WRAPPER_AS_ARRAY_NAME
      The Constant JSON_WRAPPER_AS_ARRAY_NAME.
      static java.lang.String MEDIA_TYPE
      The name of the property used to specify the type of binding to be performed.
      static java.lang.String MOXY_LOG_PAYLOAD
      Property for logging Entities content during marshalling/unmarshalling operation in MOXy.
      static java.lang.String MOXY_LOGGING_LEVEL
      Property for MOXy logging level.
      static java.lang.String OBJECT_GRAPH  
      static java.lang.String UNMARSHALLING_CASE_INSENSITIVE
      If set to Boolean.TRUE, JAXBUnmarshaller will match XML Elements and XML Attributes to Java fields case insensitively.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait