|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
immutable(!) collections of objects. Please note that for union the resulting collection type is max(ct1, ct2).
| Field Summary | |
static int |
BAG
|
static int |
COLLECTION
0 is reserved for no collection, see generic type!! |
static java.lang.String[] |
names
|
static int |
ORDERED_SET
|
static int |
SEQUENCE
|
static int |
SET
|
| Method Summary | |
OclCollection |
append(java.lang.Object o)
|
OclCollection |
asBag()
|
OclCollection |
asSequence()
|
OclCollection |
asSet()
|
java.lang.Object |
at(long n)
Returns the n-th element of the collection. |
OclCollection |
collectNested(OclExpression expr)
|
long |
count(java.lang.Object object)
The number of times that object occurs in this collection |
OclCollection |
difference(OclCollection c2)
|
boolean |
excludes(java.lang.Object object)
|
boolean |
excludesAll(OclCollection collection)
|
OclCollection |
excluding(java.lang.Object o)
|
java.lang.Object |
first()
|
OclCollection |
flatten()
|
int |
getCollectionType()
|
UmlClassifier |
getElementType()
|
OclCollection |
getSealed()
|
boolean |
includes(java.lang.Object object)
|
boolean |
includesAll(OclCollection collection)
|
OclCollection |
including(java.lang.Object o)
|
long |
indexOf(java.lang.Object o)
|
OclCollection |
insertAt(long index,
java.lang.Object o)
|
OclCollection |
intersection(OclCollection c2)
|
boolean |
isEmpty()
|
boolean |
isSealed()
|
java.util.Iterator |
iterator()
|
java.lang.Object |
last()
|
java.lang.Object |
max()
|
java.lang.Object |
min()
|
boolean |
notEmpty()
|
OclCollection |
prepend(java.lang.Object o)
|
OclCollection |
reverse()
|
OclCollection |
select(int permission)
|
OclCollection |
select(OclExpression filter)
|
long |
size()
Returns the number of elements contained in this collection |
OclCollection |
sortedBy(OclExpression orderBy)
|
OclCollection |
subSequence(long lower,
long upper)
|
java.lang.Object |
sum()
|
OclCollection |
symmetricDifference(OclCollection c2)
|
OclCollection |
union(OclCollection c2)
|
| Methods inherited from interface org.infolayer.model.Typed |
getType, toOclLiteral |
| Field Detail |
public static final int COLLECTION
public static final int SET
public static final int BAG
public static final int SEQUENCE
public static final int ORDERED_SET
public static final java.lang.String[] names
| Method Detail |
public UmlClassifier getElementType()
public int getCollectionType()
public java.util.Iterator iterator()
public long size()
public boolean includes(java.lang.Object object)
public boolean excludes(java.lang.Object object)
public long count(java.lang.Object object)
public boolean includesAll(OclCollection collection)
public boolean excludesAll(OclCollection collection)
public boolean isEmpty()
public boolean notEmpty()
public java.lang.Object sum()
public java.lang.Object max()
public java.lang.Object min()
public OclCollection union(OclCollection c2)
public OclCollection intersection(OclCollection c2)
public OclCollection reverse()
public OclCollection difference(OclCollection c2)
public OclCollection including(java.lang.Object o)
public OclCollection excluding(java.lang.Object o)
public OclCollection symmetricDifference(OclCollection c2)
public OclCollection flatten()
public OclCollection asSet()
public OclCollection asSequence()
public OclCollection asBag()
public OclCollection append(java.lang.Object o)
public OclCollection prepend(java.lang.Object o)
public OclCollection insertAt(long index,
java.lang.Object o)
public OclCollection subSequence(long lower,
long upper)
public java.lang.Object at(long n)
n - The index position of the desired element
public long indexOf(java.lang.Object o)
public java.lang.Object first()
public java.lang.Object last()
public boolean isSealed()
public OclCollection getSealed()
public OclCollection select(int permission)
public OclCollection select(OclExpression filter)
public OclCollection sortedBy(OclExpression orderBy)
public OclCollection collectNested(OclExpression expr)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||