| Modifier and Type | Class and Description |
|---|---|
| public static interface | Marshaller.Listener
An implementation of Marshaller.Listener can be set on an Marshaller to provide additional behaviour during marshal operations. |
| Modifier and Type | Field and Description |
|---|---|
| private CHARACTER_ESCAPE_HANDLER | |
| protected CONTEXT | |
| private static String | |
| private String | |
| private boolean | |
| private ErrorHandler | |
| private boolean | |
| private String | |
| protected NAMESPACE_PREFIX_MAPPER | |
| private MARSHALLER_LISTENER | |
| protected Properties |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | Marshaller(Marshaller<CHARACTER_ESCAPE_HANDLER extends CharacterEscapeHandler, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, MARSHALLER_LISTENER extends Marshaller.
Copy constructor |
| Modifier and Type | Method and Description |
|---|---|
| public abstract XMLAttachmentMarshaller | |
| public CHARACTER_ESCAPE_HANDLER | |
| public CONTEXT | |
| public String | |
| public ErrorHandler | |
| public String | |
| public abstract JsonTypeConfiguration | |
| public MARSHALLER_LISTENER | |
| public NAMESPACE_PREFIX_MAPPER | getNamespacePrefixMapper()
NamespacePrefixMapper that can be used during marshal (instead of those set in the project meta data) |
| public Object | |
| public abstract XMLTransformer | |
| public abstract boolean | |
| public abstract boolean | |
| public boolean | |
| public boolean | Returns: if this Marshaller should format the outputReturns if this Marshaller should format the output. |
| public abstract boolean | |
| public abstract boolean | isReduceAnyArrays()
Property to determine if size 1 any collections should be treated as collections. |
| public abstract boolean | |
| public void | |
| public void | setEncoding(String
the encoding to set on this Marshaller newEncoding)Set the encoding on this Marshaller. |
| public void | |
| public void | |
| public void | setFormattedOutput(boolean
if this XMLMarshaller should format the XML shouldFormat)Set if this XMLMarshaller should format the XML By default this is set to true and the XML marshalled will be formatted. |
| public void | setIndentString(String s)
Set the String that will be used to perform indenting in marshalled documents. |
| public void | |
| public void | setNamespacePrefixMapper(NAMESPACE_PREFIX_MAPPER mapper)
NamespacePrefixMapper that can be used during marshal (instead of those set in the project meta data) |
| charEscapeHandler | back to summary |
|---|---|
| private CHARACTER_ESCAPE_HANDLER charEscapeHandler | |
| context | back to summary |
|---|---|
| protected CONTEXT context | |
| DEFAULT_INDENT | back to summary |
|---|---|
| private static String DEFAULT_INDENT | |
| encoding | back to summary |
|---|---|
| private String encoding | |
| equalUsingIdenity | back to summary |
|---|---|
| private boolean equalUsingIdenity | |
| errorHandler | back to summary |
|---|---|
| private ErrorHandler errorHandler | |
| formattedOutput | back to summary |
|---|---|
| private boolean formattedOutput | |
| indentString | back to summary |
|---|---|
| private String indentString | |
| mapper | back to summary |
|---|---|
| protected NAMESPACE_PREFIX_MAPPER mapper | |
| marshalListener | back to summary |
|---|---|
| private MARSHALLER_LISTENER marshalListener | |
| marshalProperties | back to summary |
|---|---|
| protected Properties marshalProperties | |
| Marshaller | back to summary |
|---|---|
| protected Marshaller(CONTEXT context) | |
| Marshaller | back to summary |
|---|---|
| protected Marshaller(Marshaller<CHARACTER_ESCAPE_HANDLER extends CharacterEscapeHandler, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, MARSHALLER_LISTENER extends Marshaller. Copy constructor | |
| getAttachmentMarshaller | back to summary |
|---|---|
| public abstract XMLAttachmentMarshaller getAttachmentMarshaller() | |
| getCharacterEscapeHandler | back to summary |
|---|---|
| public CHARACTER_ESCAPE_HANDLER getCharacterEscapeHandler() Return this Marshaller's CharacterEscapeHandler.
| |
| getContext | back to summary |
|---|---|
| public CONTEXT getContext() Return the instance of Context that was used to create this instance of Marshaller. | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Get the encoding set on this Marshaller. If the encoding has not been set the default UTF-8 will be used | |
| getErrorHandler | back to summary |
|---|---|
| public ErrorHandler getErrorHandler() | |
| getIndentString | back to summary |
|---|---|
| public String getIndentString() Return the String that will be used to perform indenting in marshalled documents. Default is " " (three spaces). | |
| getJsonTypeConfiguration | back to summary |
|---|---|
| public abstract JsonTypeConfiguration getJsonTypeConfiguration() Returns json type configuration.
| |
| getMarshalListener | back to summary |
|---|---|
| public MARSHALLER_LISTENER getMarshalListener() | |
| getNamespacePrefixMapper | back to summary |
|---|---|
| public NAMESPACE_PREFIX_MAPPER getNamespacePrefixMapper() NamespacePrefixMapper that can be used during marshal (instead of those set in the project meta data) | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(Object key) Return the property for a given key, if one exists. | |
| getTransformer | back to summary |
|---|---|
| public abstract XMLTransformer getTransformer() INTERNAL
| |
| isApplicationJSON | back to summary |
|---|---|
| public abstract boolean isApplicationJSON() INTERNAL
| |
| isApplicationXML | back to summary |
|---|---|
| public abstract boolean isApplicationXML() INTERNAL
| |
| isEqualUsingIdenity | back to summary |
|---|---|
| public boolean isEqualUsingIdenity() INTERNAL | |
| isFormattedOutput | back to summary |
|---|---|
| public boolean isFormattedOutput() Returns if this Marshaller should format the output. By default this is set to true and the marshalled output will be formatted.
| |
| isIncludeRoot | back to summary |
|---|---|
| public abstract boolean isIncludeRoot() Determine if the root not should be marshalled. This property may ignored for media types that require a root node such as XML. | |
| isReduceAnyArrays | back to summary |
|---|---|
| public abstract boolean isReduceAnyArrays() Property to determine if size 1 any collections should be treated as collections. | |
| isWrapperAsCollectionName | back to summary |
|---|---|
| public abstract boolean isWrapperAsCollectionName() | |
| setCharacterEscapeHandler | back to summary |
|---|---|
| public void setCharacterEscapeHandler(CHARACTER_ESCAPE_HANDLER c) Set this Marshaller's CharacterEscapeHandler.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String newEncoding) Set the encoding on this Marshaller. If the encoding is not set the default UTF-8 will be used.
| |
| setEqualUsingIdenity | back to summary |
|---|---|
| public void setEqualUsingIdenity(boolean equalUsingIdenity) INTERNAL | |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(ErrorHandler errorHandler) | |
| setFormattedOutput | back to summary |
|---|---|
| public void setFormattedOutput(boolean shouldFormat) Set if this XMLMarshaller should format the XML By default this is set to true and the XML marshalled will be formatted.
| |
| setIndentString | back to summary |
|---|---|
| public void setIndentString(String s) Set the String that will be used to perform indenting in marshalled documents.
| |
| setMarshalListener | back to summary |
|---|---|
| public void setMarshalListener(MARSHALLER_LISTENER listener) | |
| setNamespacePrefixMapper | back to summary |
|---|---|
| public void setNamespacePrefixMapper(NAMESPACE_PREFIX_MAPPER mapper) NamespacePrefixMapper that can be used during marshal (instead of those set in the project meta data) | |
An implementation of Marshaller.Listener can be set on an Marshaller to provide additional behaviour during marshal operations.
| Modifier and Type | Method and Description |
|---|---|
| public void | afterMarshal(Object
The object that was marshalled. target)This event will be called after an object is marshalled. |
| public void | beforeMarshal(Object
The object that will be marshalled. target)This event will be called before an object is marshalled. |
| afterMarshal | back to summary |
|---|---|
| public void afterMarshal(Object target) This event will be called after an object is marshalled.
| |
| beforeMarshal | back to summary |
|---|---|
| public void beforeMarshal(Object target) This event will be called before an object is marshalled.
| |