EclipseLink 2.4.0, build 'v20120509-r11325' API Reference

org.eclipse.persistence.jaxb
Class UnmarshallerProperties

java.lang.Object
  extended by org.eclipse.persistence.jaxb.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
static java.lang.String ID_RESOLVER
          The Constant ID_RESOLVER.
static java.lang.String JSON_ATTRIBUTE_PREFIX
          The Constant JSON_ATTRIBUTE_PREFIX.
static java.lang.String JSON_INCLUDE_ROOT
          The Constant JSON_INCLUDE_ROOT.
static java.lang.String JSON_NAMESPACE_PREFIX_MAPPER
          The Constant JSON_NAMESPACE_PREFIX_MAPPER.
static java.lang.String JSON_NAMESPACE_SEPARATOR
          The Constant JSON_NAMESPACE_SEPARATOR.
static java.lang.String JSON_VALUE_WRAPPER
          The Constant JSON_VALUE_WRAPPER.
static java.lang.String MEDIA_TYPE
          The Constant MEDIA_TYPE.
 
Constructor Summary
UnmarshallerProperties()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_NAMESPACE_PREFIX_MAPPER

public static final java.lang.String JSON_NAMESPACE_PREFIX_MAPPER
The Constant JSON_NAMESPACE_PREFIX_MAPPER. Provides a means to set a a Map of uris to prefixes. Alternatively can be an implementation of org.eclipse.persistence.oxm.NamespacePrefixMapper.

See Also:
Constant Field Values
Since:
2.4

MEDIA_TYPE

public static final java.lang.String MEDIA_TYPE
The Constant MEDIA_TYPE. This can be used to set the media type. Supported values are "application/xml" and "application/json".

See Also:
Constant Field Values
Since:
2.4

ID_RESOLVER

public static final java.lang.String ID_RESOLVER
The Constant ID_RESOLVER. This can be used to specify a custom IDResolver class, to allow customization of ID/IDREF processing.

See Also:
Constant Field Values
Since:
2.3.3

JSON_ATTRIBUTE_PREFIX

public static final java.lang.String JSON_ATTRIBUTE_PREFIX
The Constant JSON_ATTRIBUTE_PREFIX. This can be used to specify a prefix that is prepended to attributes. Only applicable if media type is "application/json".

See Also:
Constant Field Values
Since:
2.4

JSON_INCLUDE_ROOT

public static final java.lang.String JSON_INCLUDE_ROOT
The Constant JSON_INCLUDE_ROOT. This can be used to specify if the root element should be unmarshalled. Only applicable if media type is "application/json".

See Also:
Constant Field Values
Since:
2.4

JSON_VALUE_WRAPPER

public static final java.lang.String JSON_VALUE_WRAPPER
The Constant JSON_VALUE_WRAPPER. This can be used to specify the wrapper that will be used around things mapped with @XmlValue. Only applicable if media type is "application/json".

See Also:
Constant Field Values
Since:
2.4

JSON_NAMESPACE_SEPARATOR

public static final java.lang.String JSON_NAMESPACE_SEPARATOR
The Constant JSON_NAMESPACE_SEPARATOR. This can be used to specify the separator that will be used when separating prefixes and localnames. Only applicable when namespaces are being used. Value should be a Character.

See Also:
Constant Field Values
Since:
2.4
Constructor Detail

UnmarshallerProperties

public UnmarshallerProperties()

EclipseLink 2.4.0, build 'v20120509-r11325' API Reference