public class ReferenceChangeTracker
extends java.lang.Object
ImportUUIDBehavior
Constructor and Description |
---|
ReferenceChangeTracker() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets all internal state.
|
java.lang.String |
get(java.lang.String oldUUID)
Returns the new node id to which
oldUUID has been mapped
or null if no such mapping exists. |
java.util.Iterator<java.lang.Object> |
getProcessedReferences()
Returns an iterator over all processed reference properties.
|
void |
processedReference(java.lang.Object refProp)
Store the given reference property for later retrieval using
getProcessedReferences() . |
void |
put(java.lang.String oldUUID,
java.lang.String newUUID)
Store the given id mapping for later lookup using
get(String) . |
boolean |
removeReferences(java.util.List<java.lang.Object> processedReferences)
Remove the given references that have already been processed from the
references list.
|
public java.lang.String get(java.lang.String oldUUID)
oldUUID
has been mapped
or null
if no such mapping exists.oldUUID
- old node idnull
if no such mapping existsput(String, String)
public void put(java.lang.String oldUUID, java.lang.String newUUID)
get(String)
.oldUUID
- old node idnewUUID
- new node idpublic void clear()
public void processedReference(java.lang.Object refProp)
getProcessedReferences()
.refProp
- reference propertypublic java.util.Iterator<java.lang.Object> getProcessedReferences()
processedReference(Object)
public boolean removeReferences(java.util.List<java.lang.Object> processedReferences)
processedReferences
- true
if the internal list of references changed.Copyright © 2010 - 2020 Adobe. All Rights Reserved