org.infolayer.model
Class LoggedArray

java.lang.Object
  extended byorg.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)
           
 
Method Summary
 boolean add(java.lang.Object value)
           
 java.lang.Object get(int index)
           
 OclCollection getCollection(int collectionType, UmlClassifier elementType)
           
 Entry getEntry(int index)
           
 int indexOf(java.lang.Object value)
           
 java.util.Iterator iterator()
           
 void remove(int index)
           
 int removed()
           
 boolean set(int index, java.lang.Object value)
           
 void setSize(int newSize)
           
 int size()
           
 void sync(LoggedArray a)
           
 void touch(int index)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedArray

public LoggedArray(boolean unique,
                   int size)
Method Detail

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)