|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.jmi.JmiCorrespondence
public class JmiCorrespondence
JmiCorrespondence keeps track of the correspondence between a "before" version of a set of objects and an "after" version of the same set.
Field Summary | |
---|---|
private Set<RefObject> |
additionSet
|
private Map<RefObject,RefObject> |
afterToBeforeMap
|
private Map<RefObject,RefObject> |
beforeToAfterMap
|
private Set<RefObject> |
deletionSet
|
Constructor Summary | |
---|---|
JmiCorrespondence()
Creates a new correspondence (initially empty). |
Method Summary | |
---|---|
void |
addMapping(RefObject beforeVersion,
RefObject afterVersion)
Creates a mapping between a "before" version of an object and its corresponding "after" version. |
void |
augmentBeforeSet(Collection<RefObject> objs)
Adds a collection of "before" objects. |
Set<RefObject> |
getAdditionSet()
|
Set<RefObject> |
getAfterSet()
|
Set<RefObject> |
getBeforeSet()
|
Set<RefObject> |
getDeletionSet()
|
RefObject |
getMapping(RefObject obj)
Looks up the mapping for an object version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Map<RefObject,RefObject> beforeToAfterMap
private final Map<RefObject,RefObject> afterToBeforeMap
private final Set<RefObject> additionSet
private final Set<RefObject> deletionSet
Constructor Detail |
---|
public JmiCorrespondence()
Method Detail |
---|
public void addMapping(RefObject beforeVersion, RefObject afterVersion)
beforeVersion
- "before" version to mapafterVersion
- corresponding "after" versionpublic RefObject getMapping(RefObject obj)
obj
- object to look up (can be either version)
public Set<RefObject> getBeforeSet()
public Set<RefObject> getAfterSet()
public Set<RefObject> getAdditionSet()
public Set<RefObject> getDeletionSet()
public void augmentBeforeSet(Collection<RefObject> objs)
objs
- objects to add to "before" set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |