public abstract class Unmarshaller<ABSTRACT_SESSION extends CoreAbstractSession,CONTEXT extends Context,DESCRIPTOR extends Descriptor,ID_RESOLVER extends IDResolver,MEDIA_TYPE extends MediaType,ROOT extends Root,UNMARSHALLER_HANDLER extends UnmarshallerHandler,UNMARSHALLER_LISTENER extends Unmarshaller.Listener>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Unmarshaller.Listener
An implementation of UnmarshalListener can be set on an Unmarshaller to
provide additional behaviour during unmarshal operations.
|
Constructor and Description |
---|
Unmarshaller(CONTEXT context) |
Modifier and Type | Method and Description |
---|---|
abstract ROOT |
createRoot()
INTERNAL
|
abstract UnmarshalRecord |
createRootUnmarshalRecord(java.lang.Class clazz)
INTERNAL
|
abstract UnmarshalRecord |
createUnmarshalRecord(DESCRIPTOR descriptor,
ABSTRACT_SESSION session)
INTERNAL
|
abstract XMLAttachmentUnmarshaller |
getAttachmentUnmarshaller() |
abstract java.lang.String |
getAttributePrefix()
Value that will be used to prefix attributes.
|
CONTEXT |
getContext()
Return the instance of XMLContext that was used to create this instance
of Unmarshaller.
|
abstract org.xml.sax.ErrorHandler |
getErrorHandler()
Get the ErrorHandler set on this Unmarshaller
|
abstract ID_RESOLVER |
getIDResolver()
Return this Unmarshaller's custom IDResolver.
|
abstract JsonTypeConfiguration |
getJsonTypeConfiguration()
Returns json type configuration.
|
abstract MEDIA_TYPE |
getMediaType()
Get the MediaType for this unmarshaller.
|
abstract NamespaceResolver |
getNamespaceResolver()
Name of the NamespaceResolver to be used during unmarshal
Ignored unmarshalling XML.
|
abstract char |
getNamespaceSeparator()
Get the namespace separator used during unmarshal operations.
|
abstract java.lang.Object |
getProperty(java.lang.Object key)
Return the property for a given key, if one exists.
|
abstract javax.xml.validation.Schema |
getSchema() |
abstract StrBuffer |
getStringBuffer()
INTERNAL:
This is the text handler during unmarshal operations.
|
abstract java.lang.Class |
getUnmappedContentHandlerClass()
Get the class that will be instantiated to handled unmapped content
Class must implement the org.eclipse.persistence.oxm.unmapped.UnmappedContentHandler interface
|
abstract java.lang.Object |
getUnmarshalAttributeGroup()
INTERNAL:
Returns the AttributeGroup or the name of the AttributeGroup to be used to
unmarshal.
|
abstract UNMARSHALLER_HANDLER |
getUnmarshallerHandler() |
UNMARSHALLER_LISTENER |
getUnmarshalListener() |
abstract java.lang.String |
getValueWrapper()
Name of the property to marshal/unmarshal as a wrapper on the text() mappings
Ignored unmarshalling XML.
|
abstract boolean |
isApplicationJSON()
INTERNAL
|
abstract boolean |
isApplicationXML()
INTERNAL
|
abstract boolean |
isAutoDetectMediaType()
Return if this Unmarshaller should try to automatically determine
the MediaType of the document (instead of using the MediaType set
by setMediaType)
|
abstract boolean |
isCaseInsensitive()
Return whether this Unmarshaller should perform case insensitive unmarshalling.
|
abstract boolean |
isIncludeRoot()
Determine if the @XMLRootElement should be marshalled when present.
|
abstract boolean |
isResultAlwaysXMLRoot() |
abstract boolean |
isWrapperAsCollectionName() |
abstract void |
setIDResolver(ID_RESOLVER idResolver) |
void |
setUnmarshalListener(UNMARSHALLER_LISTENER unmarshalListener) |
abstract boolean |
shouldWarnOnUnmappedElement() |
public Unmarshaller(CONTEXT context)
public abstract ROOT createRoot()
public abstract UnmarshalRecord createRootUnmarshalRecord(java.lang.Class clazz)
public abstract UnmarshalRecord createUnmarshalRecord(DESCRIPTOR descriptor, ABSTRACT_SESSION session)
public abstract XMLAttachmentUnmarshaller getAttachmentUnmarshaller()
public abstract java.lang.String getAttributePrefix()
public CONTEXT getContext()
public abstract org.xml.sax.ErrorHandler getErrorHandler()
public abstract ID_RESOLVER getIDResolver()
IDResolver
public abstract MEDIA_TYPE getMediaType()
public abstract NamespaceResolver getNamespaceResolver()
public abstract char getNamespaceSeparator()
public abstract java.lang.Object getProperty(java.lang.Object key)
public abstract javax.xml.validation.Schema getSchema()
public abstract StrBuffer getStringBuffer()
public abstract java.lang.Class getUnmappedContentHandlerClass()
public abstract java.lang.Object getUnmarshalAttributeGroup()
public abstract UNMARSHALLER_HANDLER getUnmarshallerHandler()
public UNMARSHALLER_LISTENER getUnmarshalListener()
public abstract java.lang.String getValueWrapper()
public abstract boolean isApplicationJSON()
public abstract boolean isApplicationXML()
public abstract boolean isAutoDetectMediaType()
public abstract boolean isCaseInsensitive()
public abstract boolean isIncludeRoot()
public abstract boolean isResultAlwaysXMLRoot()
public abstract boolean isWrapperAsCollectionName()
public abstract void setIDResolver(ID_RESOLVER idResolver)
public abstract boolean shouldWarnOnUnmappedElement()
public void setUnmarshalListener(UNMARSHALLER_LISTENER unmarshalListener)
public abstract JsonTypeConfiguration getJsonTypeConfiguration()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference