org.infolayer.model
Class LoggedArray
java.lang.Object
org.infolayer.model.LoggedArray
- public class LoggedArray
- extends java.lang.Object
This class is necessary to keep track of changes in attributes and
associations for delayed write-back.
Delayed write-back could in future version perhaps be utilized for some kind of
transaction mechanism.
Constructor Summary |
LoggedArray(boolean unique,
int size)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggedArray
public LoggedArray(boolean unique,
int size)
setSize
public void setSize(int newSize)
add
public boolean add(java.lang.Object value)
indexOf
public int indexOf(java.lang.Object value)
get
public java.lang.Object get(int index)
getEntry
public Entry getEntry(int index)
touch
public void touch(int index)
remove
public void remove(int index)
set
public boolean set(int index,
java.lang.Object value)
size
public int size()
removed
public int removed()
sync
public void sync(LoggedArray a)
iterator
public java.util.Iterator iterator()
getCollection
public OclCollection getCollection(int collectionType,
UmlClassifier elementType)