EclipseLink 2.4.0, build 'v20120509-r11325' API Reference

org.eclipse.persistence.jaxb
Class JAXBContextProperties

java.lang.Object
  extended by org.eclipse.persistence.jaxb.JAXBContextProperties

public class JAXBContextProperties
extends java.lang.Object

These are properties that may be passed in to create a JAXBContext:

 Map<String, Object> properties = new HashMap(1);
 properties.put();
 JAXBContext jc = JAXBContext.newInstance(new Class[] {Foo.class}, properties);
 

Since:
2.4.0

Field Summary
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_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.
static java.lang.String NAMESPACE_PREFIX_MAPPER
          The Constant NAMESPACE_PREFIX_MAPPER.
static java.lang.String SESSION_EVENT_LISTENER
          The Constant SESSION_EVENT_LISTENER.
 
Constructor Summary
JAXBContextProperties()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSON_ATTRIBUTE_PREFIX

public static final java.lang.String JSON_ATTRIBUTE_PREFIX
The Constant JSON_ATTRIBUTE_PREFIX. This can be used as the property name with JAXBMarshaller.setProperty and JAXBUnmarshaller.setProperty or used in the properties supplied during JAXBContext creation to specify a prefix to prepend to attributes. No effect when media type is "application/xml".

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 as the property name with JAXBMarshaller.setProperty and JAXBUnmarshaller.setProperty or used in the properties supplied during JAXBContext creation to specify if the

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

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. Not applicable if the eclipselink.media.type is set to "application/xml".

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 as the property name with JAXBMarshaller.setProperty and JAXBUnmarshaller.setProperty or used in the properties supplied during JAXBContext creation to set the media type. Supported values are "application/xml" and "application/json".

See Also:
Constant Field Values
Since:
2.4

NAMESPACE_PREFIX_MAPPER

public static final java.lang.String NAMESPACE_PREFIX_MAPPER
The Constant NAMESPACE_PREFIX_MAPPER. Provides a means to customize the namespace prefixes used while marshalling to XML. Used for both marshal and unmarshal when mediaType is set to "application/json". Value is either a Map of URIs to prefixes, or an implementation of org.eclipse.persistence.oxm.NamespacePrefixMapper.

See Also:
Constant Field Values
Since:
2.4

SESSION_EVENT_LISTENER

public static final java.lang.String SESSION_EVENT_LISTENER
The Constant SESSION_EVENT_LISTENER. This can be used to specify a SessionEventListener that can be used to customize the metadata before or after it has been initialized.

See Also:
SessionEventListener, Constant Field Values
Since:
2.4
Constructor Detail

JAXBContextProperties

public JAXBContextProperties()

EclipseLink 2.4.0, build 'v20120509-r11325' API Reference