|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance | +--de.tuberlin.cs.cis.ocl.eval.instance.CollectionInstance
Represents an instance of the OCL type Collection.
Constructor Summary | |
CollectionInstance(Type type,
java.util.Collection representation)
Constructs an instance of the OCL type Collection via a Java Collection . |
Method Summary | |
java.lang.Object |
any(OclExpression expr)
Returns any element in this collection for which expr evaluates to True. |
java.lang.Object |
clone()
|
static java.util.Collection |
collectionValue(OclCollection c2)
Determines the Java Collection representation of an
OclCollection value. |
OclInteger |
count(OclAny object)
The number of times that object occurs in this collection. |
boolean |
equals(java.lang.Object o)
|
OclBoolean |
excludes(OclAny object)
True if object is not an element of collection, False otherwise. |
OclBoolean |
excludesAll(OclCollection c2)
Does this collection contains none of the elements of c2 ? |
OclBoolean |
exists(OclExpression expr)
Results in True if expr evaluates to True for at least one element in this collection. |
OclBoolean |
forAll(OclExpression expr)
Results in True if expr evaluates to True for each element in this collection; otherwise, result is False. |
Type |
getElementType()
Returns the element type of this collection's runtime type. |
OclBoolean |
includes(OclAny object)
Results in True if object is an element of this collection, False otherwise. |
OclBoolean |
includesAll(OclCollection c2)
Does this collection contains all the elements of c2 ? |
OclBoolean |
isEmpty()
Is this collection the empty collection? |
OclBoolean |
isUnique(OclExpression expr)
Results in True if expr evaluates to a different value for each element in this collection; otherwise, result is False. |
java.lang.Object |
iterate(OclExpression expr)
Iterates over the collection. |
OclBoolean |
notEmpty()
Is this collection not the empty collection? |
OclBoolean |
one(OclExpression expr)
Results in True if there is exactly one element in this collection for which expr is True. |
OclInteger |
size()
Results in the number of elements in this collection. |
OclSequence |
sortedBy(OclExpression expression)
Results in the Sequence containing all elements of this collection. |
java.lang.Object |
sum()
The addition of all elements in this collection. |
java.lang.String |
toString()
|
Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance |
getRepresentation, getRuntimeType, getValue, hashCode, invoke, navigate |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CollectionInstance(Type type, java.util.Collection representation)
Collection
. The OCL runtime type can be either
specified by an element type, then the actual type is
Collection(element type), or by a collection type.
type
- the type of the collection. It is either the element
type of the collection or the collection type itself.representation
- the Java Collection
representation of this OCL collection.Method Detail |
public static java.util.Collection collectionValue(OclCollection c2)
Collection
representation of an
OclCollection
value.
c2
- an OclCollection
value
Collection
representation of the
specified OCL collection.public java.lang.Object any(OclExpression expr)
OclCollection
any
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public OclInteger count(OclAny object)
OclCollection
count
in interface OclCollection
object
- an instance of OclAny (!= null)
public OclBoolean excludes(OclAny object)
OclCollection
excludes
in interface OclCollection
object
- an instance of OclAny (!= null)
public OclBoolean excludesAll(OclCollection c2)
OclCollection
excludesAll
in interface OclCollection
c2
-
public OclBoolean exists(OclExpression expr)
OclCollection
exists
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public OclBoolean forAll(OclExpression expr)
OclCollection
forAll
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public OclBoolean includes(OclAny object)
OclCollection
includes
in interface OclCollection
object
- an instance of OclAny (!= null)
public OclBoolean includesAll(OclCollection c2)
OclCollection
includesAll
in interface OclCollection
c2
-
public OclBoolean isEmpty()
OclCollection
isEmpty
in interface OclCollection
public OclBoolean isUnique(OclExpression expr)
OclCollection
isUnique
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public java.lang.Object iterate(OclExpression expr)
OclCollection
iterate
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public OclBoolean notEmpty()
OclCollection
notEmpty
in interface OclCollection
public OclInteger size()
OclCollection
size
in interface OclCollection
public OclSequence sortedBy(OclExpression expression)
OclCollection
sortedBy
in interface OclCollection
expression
- an instance of OclExpression (!= null)
public java.lang.Object sum()
OclCollection
sum
in interface OclCollection
public OclBoolean one(OclExpression expr)
OclCollection
one
in interface OclCollection
expr
- an instance of OclExpression (!= null)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class PredefinedInstance
public Type getElementType()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |