public class ReferenceChangeTracker extends Object
Constructor and Description |
---|
ReferenceChangeTracker() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets all internal state.
|
NodeId |
getMappedId(NodeId oldId)
Returns the new node id to which
oldId has been mapped
or null if no such mapping exists. |
Iterator<Object> |
getProcessedReferences()
Returns an iterator over all processed reference properties.
|
void |
mappedId(NodeId oldId,
NodeId newId)
Store the given id mapping for later lookup using
. |
void |
processedReference(Object refProp)
Store the given reference property for later retrieval using
. |
boolean |
removeReferences(List<Object> processedReferences)
Remove the given references that have already been processed from the
references list.
|
public void clear()
public void mappedId(NodeId oldId, NodeId newId)
getMappedId(NodeId)
.oldId
- old node idnewId
- new node idpublic void processedReference(Object refProp)
getProcessedReferences()
.refProp
- reference propertypublic NodeId getMappedId(NodeId oldId)
oldId
has been mapped
or null
if no such mapping exists.oldId
- old node idnull
if no such mapping existsmappedId(NodeId, NodeId)
public Iterator<Object> getProcessedReferences()
processedReference(Object)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.