|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents and identifies the OCL 1.5 type Collection. It is used by the context checker to reflect operations of and to identify the collection type within the OCL-context. The element type of the collection and the type of the evaluation of an expression parameter can not be represented. These types must be remapped to the specified type. Each instance of this interface is handled as an OCL instance of the type Collection during the evaluation process. Its methods are used to describe the predefined properties of the type. For a complete description of the type and its properties (to be specific for this class and its methods) refer to the type description of OCL 1.5.
Method Summary | |
java.lang.Object |
any(OclExpression expr)
Returns any element in this collection for which expr evaluates to True. |
OclInteger |
count(OclAny object)
The number of times that object occurs in this collection. |
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. |
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 expr)
Results in the Sequence containing all elements of this collection. |
java.lang.Object |
sum()
The addition of all elements in this collection. |
Method Detail |
public OclInteger size()
public OclBoolean includes(OclAny object)
object
- an instance of OclAny (!= null)
public OclBoolean excludes(OclAny object)
object
- an instance of OclAny (!= null)
public OclInteger count(OclAny object)
object
- an instance of OclAny (!= null)
public OclBoolean includesAll(OclCollection c2)
c2
-
public OclBoolean excludesAll(OclCollection c2)
c2
-
public OclBoolean isEmpty()
public OclBoolean notEmpty()
public java.lang.Object sum()
public OclBoolean exists(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public OclBoolean forAll(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public OclBoolean isUnique(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public OclSequence sortedBy(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public java.lang.Object iterate(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public java.lang.Object any(OclExpression expr)
expr
- an instance of OclExpression (!= null)
public OclBoolean one(OclExpression expr)
expr
- an instance of OclExpression (!= null)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |