Module org.eclipse.persistence.core
Class XMLBinderPolicy
java.lang.Object
org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
org.eclipse.persistence.internal.oxm.documentpreservation.XMLBinderPolicy
INTERNAL:
Purpose:Provide an implementation of DocumentPreservationPolicy that maintains bidirectional relationships between Java Objects and the XMLNodes they originated from.
Responsibilities:
- Implement abstract methods from DocumentPreservationPolicy
- Maintain a map of objects to nodes
- Maintain the reverse map of nodes to objects
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjectToCache
(Object obj, Node node) void
addObjectToCache
(Object obj, Node node, Mapping selfRecordMapping) getNodeForObject
(Object obj) getObjectForNode
(Node node) getObjectForNode
(Node node, Mapping selfRecordMapping) boolean
Methods inherited from class org.eclipse.persistence.oxm.documentpreservation.DocumentPreservationPolicy
getNodeOrderingPolicy, initialize, setNodeOrderingPolicy
-
Field Details
-
nodesToObjects
-
objectsToNodes
-
-
Constructor Details
-
XMLBinderPolicy
public XMLBinderPolicy()
-
-
Method Details
-
addObjectToCache
- Specified by:
addObjectToCache
in classDocumentPreservationPolicy
-
addObjectToCache
- Specified by:
addObjectToCache
in classDocumentPreservationPolicy
-
getNodeForObject
- Specified by:
getNodeForObject
in classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNode
in classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNode
in classDocumentPreservationPolicy
-
shouldPreserveDocument
public boolean shouldPreserveDocument()- Specified by:
shouldPreserveDocument
in classDocumentPreservationPolicy
-