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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObjectToCache(Object obj, Node node) voidaddObjectToCache(Object obj, Node node, Mapping selfRecordMapping) getNodeForObject(Object obj) getObjectForNode(Node node) getObjectForNode(Node node, Mapping selfRecordMapping) booleanMethods 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:
addObjectToCachein classDocumentPreservationPolicy
-
addObjectToCache
- Specified by:
addObjectToCachein classDocumentPreservationPolicy
-
getNodeForObject
- Specified by:
getNodeForObjectin classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNodein classDocumentPreservationPolicy
-
getObjectForNode
- Specified by:
getObjectForNodein classDocumentPreservationPolicy
-
shouldPreserveDocument
public boolean shouldPreserveDocument()- Specified by:
shouldPreserveDocumentin classDocumentPreservationPolicy
-