public abstract class Marshaller<CONTEXT extends Context,MEDIA_TYPE extends MediaType,NAMESPACE_PREFIX_MAPPER extends NamespacePrefixMapper> extends Object
Constructor and Description |
---|
Marshaller(CONTEXT context) |
Modifier and Type | Method and Description |
---|---|
abstract XMLAttachmentMarshaller |
getAttachmentMarshaller() |
CharacterEscapeHandler |
getCharacterEscapeHandler()
Return this Marshaller's CharacterEscapeHandler.
|
CONTEXT |
getContext()
Return the instance of Context that was used to create this instance
of Marshaller.
|
String |
getEncoding()
Get the encoding set on this Marshaller.
|
ErrorHandler |
getErrorHandler() |
String |
getIndentString()
Return the String that will be used to perform indenting in marshalled
documents.
|
XMLMarshalListener |
getMarshalListener() |
abstract MEDIA_TYPE |
getMediaType()
Get the media type for this Marshaller.
|
NAMESPACE_PREFIX_MAPPER |
getNamespacePrefixMapper()
NamespacePrefixMapper that can be used during marshal (instead of those set in the project meta data)
|
Object |
getProperty(Object key)
Return the property for a given key, if one exists.
|
abstract XMLTransformer |
getTransformer()
INTERNAL
|
boolean |
isEqualUsingIdenity()
INTERNAL
|
boolean |
isFormattedOutput()
Returns if this Marshaller should format the output.
|
abstract boolean |
isIncludeRoot()
Determine if the root not should be marshalled.
|
abstract boolean |
isReduceAnyArrays()
Property to determine if size 1 any collections should be treated as
collections.
|
abstract boolean |
isWrapperAsCollectionName() |
void |
setCharacterEscapeHandler(CharacterEscapeHandler c)
Set this Marshaller's CharacterEscapeHandler.
|
void |
setEncoding(String newEncoding)
Set the encoding on this Marshaller.
|
void |
setEqualUsingIdenity(boolean equalUsingIdenity)
INTERNAL
|
void |
setErrorHandler(ErrorHandler errorHandler) |
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.
|
void |
setIndentString(String s)
Set the String that will be used to perform indenting in marshalled
documents.
|
void |
setMarshalListener(XMLMarshalListener listener) |
void |
setNamespacePrefixMapper(NAMESPACE_PREFIX_MAPPER mapper)
NamespacePrefixMapper that can be used during marshal (instead of those
set in the project meta data)
|
public Marshaller(CONTEXT context)
public abstract XMLAttachmentMarshaller getAttachmentMarshaller()
public CharacterEscapeHandler getCharacterEscapeHandler()
public CONTEXT getContext()
public String getEncoding()
public ErrorHandler getErrorHandler()
public String getIndentString()
public XMLMarshalListener getMarshalListener()
public abstract MEDIA_TYPE getMediaType()
public NAMESPACE_PREFIX_MAPPER getNamespacePrefixMapper()
public Object getProperty(Object key)
public abstract XMLTransformer getTransformer()
public boolean isEqualUsingIdenity()
public boolean isFormattedOutput()
public abstract boolean isIncludeRoot()
public abstract boolean isReduceAnyArrays()
public abstract boolean isWrapperAsCollectionName()
public void setCharacterEscapeHandler(CharacterEscapeHandler c)
public void setEncoding(String newEncoding)
newEncoding
- the encoding to set on this Marshallerpublic void setEqualUsingIdenity(boolean equalUsingIdenity)
public void setErrorHandler(ErrorHandler errorHandler)
public void setFormattedOutput(boolean shouldFormat)
shouldFormat
- if this XMLMarshaller should format the XMLpublic void setIndentString(String s)
public void setMarshalListener(XMLMarshalListener listener)
public void setNamespacePrefixMapper(NAMESPACE_PREFIX_MAPPER mapper)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference