|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.lib.OclCollection
tudresden.ocl.lib.OclUnsortedCollection
tudresden.ocl.lib.OclBag
A OclBag is a unordered collection that may contain duplicates. See documentation of OclCollection for further information.
OclCollection
Field Summary |
Fields inherited from class tudresden.ocl.lib.OclCollection |
collection, STRICT_VALUE_TYPES |
Constructor Summary | |
OclBag(int dummy,
String reason)
constructor for undefined OclBag |
|
OclBag(List list)
package-visible constructor for OclBag; the ordering of the argument list is not reflected by OclBag |
Method Summary | |
OclCollection |
collect(OclIterator iter,
OclRootEvaluatable eval)
|
OclCollection |
excluding(OclRoot obj)
STRICT_VALUE_TYPES determines whether the changes of the returned collection affect this collection, and if the returned is actually different from this collection. |
protected HashMap |
getCountMap()
|
static OclBag |
getEmptyOclBag()
static factory method that returns an OclBag that contains no elements |
OclCollection |
including(OclRoot obj)
STRICT_VALUE_TYPES determines whether the changes of the returned collection affect this collection, and if the returned is actually different from this collection. |
OclUnsortedCollection |
intersection(OclBag bag)
The OCL types Bag and Set have this operation defined. |
OclSet |
intersection(OclSet set)
The OCL types Bag and Set have this operation defined. |
OclBoolean |
isEqualTo(Object o)
two OclBags are equal if they contain the same elements the same number of times |
OclCollection |
select(OclIterator iter,
OclBooleanEvaluatable eval)
|
String |
toString()
|
OclBag |
union(OclBag bag)
The union of two OclBags is again an OclBag. |
OclCollection |
union(OclCollection col)
This method tries to call the appropriate method of the same name (for OclSet or OclBag parameters) or, if there is no such method, handles this error by returning an undefined value. |
OclBag |
union(OclSet set)
The union of an OclBag and an OclSet is an OclBag. |
Methods inherited from class tudresden.ocl.lib.OclUnsortedCollection |
getFeature |
Methods inherited from class tudresden.ocl.lib.OclCollection |
asBag, asSequence, asSet, becomeUndefined, collectToList, count, equals, excludes, exists, forAll, getFeatureAsCollection, getIterator, getUndefinedReason, includes, includesAll, isEmpty, isNotEqualTo, isUndefined, isUnique, iterate, notEmpty, reject, selectToList, setToInclude, setToRange, size, sortedBy, sum |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OclBag(List list)
public OclBag(int dummy, String reason)
Method Detail |
public static OclBag getEmptyOclBag()
public OclBoolean isEqualTo(Object o)
isEqualTo
in interface OclRoot
isEqualTo
in class OclCollection
public OclCollection select(OclIterator iter, OclBooleanEvaluatable eval)
select
in class OclCollection
OclCollection.select(OclIterator iter, OclBooleanEvaluatable eval)
,
OclCollection.selectToList(OclIterator iter, OclBooleanEvaluatable eval)
public OclCollection collect(OclIterator iter, OclRootEvaluatable eval)
collect
in class OclCollection
OclCollection.collect(OclIterator iter, OclRootEvaluatable eval)
,
OclCollection.collectToList(OclIterator iter, OclRootEvaluatable eval)
public OclCollection union(OclCollection col)
union
in class OclCollection
OclCollection.union(OclCollection col)
,
union(OclBag col)
,
union(OclSet col)
public OclBag union(OclSet set)
OclSet.union(OclBag bag)
public OclBag union(OclBag bag)
public OclSet intersection(OclSet set)
OclUnsortedCollection
intersection
in class OclUnsortedCollection
public OclUnsortedCollection intersection(OclBag bag)
OclUnsortedCollection
intersection
in class OclUnsortedCollection
public OclCollection including(OclRoot obj)
including
in class OclCollection
OclCollection.STRICT_VALUE_TYPES
public OclCollection excluding(OclRoot obj)
false
.
excluding
in class OclCollection
OclCollection.STRICT_VALUE_TYPES
protected HashMap getCountMap()
public String toString()
toString
in class OclCollection
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |