de.tuberlin.cs.cis.ocl.eval.instance
Class BagInstance
java.lang.Object
|
+--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.CollectionInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.BagInstance
- All Implemented Interfaces:
- java.lang.Cloneable, Instance, OclBag, OclCollection
- public class BagInstance
- extends CollectionInstance
- implements OclBag
Represents an instance of the OCL type Bag.
- Author:
- fchabar
|
Constructor Summary |
BagInstance(Type elemType,
java.util.Vector representation)
Constructs an instance of the OCL type Bag via a Java
Bag. |
| Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.CollectionInstance |
any, collectionValue, count, equals, excludes, excludesAll, exists, forAll, getElementType, includes, includesAll, isEmpty, isUnique, iterate, notEmpty, one, size, sortedBy, sum, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.tuberlin.cs.cis.ocl.type.reflect.OclCollection |
any, count, excludes, excludesAll, exists, forAll, includes, includesAll, isEmpty, isUnique, iterate, notEmpty, one, size, sortedBy, sum |
BagInstance
public BagInstance(Type elemType,
java.util.Vector representation)
- Constructs an instance of the OCL type Bag via a Java
Bag.
- Parameters:
elemType - the OCL runtime type of the elements contained in
the Bag.representation - the Java Bag representation of this
OCL Set.
asSequence
public OclSequence asSequence()
- Specified by:
asSequence in interface OclBag
asSet
public OclSet asSet()
- Specified by:
asSet in interface OclBag
collect
public OclBag collect(OclExpression expr)
- Specified by:
collect in interface OclBag
count
public OclInteger count(java.lang.Object object)
- Specified by:
count in interface OclBag
eq
public OclBoolean eq(OclBag bag2)
- Specified by:
eq in interface OclBag
intersection
public OclBag intersection(OclBag bag2)
- Specified by:
intersection in interface OclBag
intersection
public OclSet intersection(OclSet set)
- Specified by:
intersection in interface OclBag
reject
public OclBag reject(OclExpression expr)
- Specified by:
reject in interface OclBag
select
public OclBag select(OclExpression expr)
- Specified by:
select in interface OclBag
union
public OclBag union(OclBag bag2)
- Specified by:
union in interface OclBag
union
public OclBag union(OclSet set)
- Specified by:
union in interface OclBag
excluding
public OclBag excluding(java.lang.Object object)
- Specified by:
excluding in interface OclBag
including
public OclBag including(java.lang.Object object)
- Specified by:
including in interface OclBag
clone
public java.lang.Object clone()
- Overrides:
clone in class CollectionInstance