public abstract class DocumentPreservationPolicy
extends java.lang.Object
Responsibilities:
Constructor and Description |
---|
DocumentPreservationPolicy() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addObjectToCache(java.lang.Object obj,
org.w3c.dom.Node node) |
abstract void |
addObjectToCache(java.lang.Object obj,
org.w3c.dom.Node node,
org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) |
abstract org.w3c.dom.Node |
getNodeForObject(java.lang.Object obj) |
NodeOrderingPolicy |
getNodeOrderingPolicy() |
abstract java.lang.Object |
getObjectForNode(org.w3c.dom.Node node) |
abstract java.lang.Object |
getObjectForNode(org.w3c.dom.Node node,
org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) |
void |
initialize(org.eclipse.persistence.internal.oxm.Context context)
INTERNAL
|
void |
setNodeOrderingPolicy(NodeOrderingPolicy policy)
PUBLIC:
Sets the NodeOrderingPolicy to be used by this DocumentPreservationPolicy
when adding new elements into a cached XML Document.
|
abstract boolean |
shouldPreserveDocument() |
public void setNodeOrderingPolicy(NodeOrderingPolicy policy)
AppendNewElementsOrderingPolicy
,
IgnoreNewElementsOrderingPolicy
,
RelativePositionNodeOrderingPolicy
public NodeOrderingPolicy getNodeOrderingPolicy()
public abstract void addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node)
public abstract void addObjectToCache(java.lang.Object obj, org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
public abstract org.w3c.dom.Node getNodeForObject(java.lang.Object obj)
public abstract java.lang.Object getObjectForNode(org.w3c.dom.Node node)
public abstract java.lang.Object getObjectForNode(org.w3c.dom.Node node, org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
public abstract boolean shouldPreserveDocument()
public void initialize(org.eclipse.persistence.internal.oxm.Context context)