public final class OCLStandardLibraryImpl extends Object implements OCLStandardLibrary<Classifier>
OCLStandardLibrary for the UML environment.| Modifier and Type | Field and Description |
|---|---|
static OCLStandardLibraryImpl |
INSTANCE
The shared instance of the OCL Standard Library for the UML environment.
|
static Object |
INVALID
The singleton instance of the OclInvalid standard library type.
|
static Package |
stdlibPackage
The package containing the OCL Standard Library classifiers.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<Operation> |
createCollectionTypeOperations(Environment<?,Classifier,Operation,?,?,Parameter,?,?,?,?,?,?> env,
CollectionKind kind) |
static Class |
findShadowClass(Classifier classifier,
Package pkg)
Finds the shadow class to contain features defined for the
specified OCL
type, if it already exists. |
Classifier |
getBag()
Obtains the generic instance of the
BagType metatype, named
Bag(T). |
Classifier |
getBoolean()
Obtains the instance of the
PrimitiveType metatype, named
Boolean. |
Classifier |
getCollection()
Obtains the generic instance of the
CollectionType metatype, named
Collection(T). |
Classifier |
getInteger()
Obtains the instance of the
PrimitiveType metatype, named
Integer. |
Object |
getInvalid()
Obtains the single instance of the
OclInvalid type,
identified by the token invalid. |
Classifier |
getOclAny()
Obtains the single instance of the
AnyType metatype, named
OclAny. |
Classifier |
getOclElement()
Obtains the generic instance of the
ElementType metatype, named
OclElement. |
Classifier |
getOclExpression()
Obtains the instance of the
ElementType metatype that represents
the type of OCL expressions in the model, named OclExpression. |
Classifier |
getOclInvalid()
Obtains the single instance of the
InvalidType metatype, named
OclInvalid. |
Classifier |
getOclMessage()
Obtains the generic instance of the
MessageType metatype, named
OclMessage. |
Classifier |
getOclType()
Obtains the generic instance of the
TypeType metatype, named
OclType. |
Classifier |
getOclVoid()
Obtains the single instance of the
VoidType metatype, named
OclVoid. |
Classifier |
getOrderedSet()
Obtains the generic instance of the
OrderedSetType metatype, named
OrderedSet(T). |
Classifier |
getReal()
Obtains the instance of the
PrimitiveType metatype, named
Real. |
static Classifier |
getRealClassifier(Class shadow) |
Classifier |
getSequence()
Obtains the generic instance of the
SequenceType metatype, named
Sequence(T). |
Classifier |
getSet()
Obtains the generic instance of the
SetType metatype, named
Set(T). |
Classifier |
getState()
Obtains the instance of the
ElementType metatype that represents
the type of states in the model, named State. |
Classifier |
getString()
Obtains the instance of the
PrimitiveType metatype, named
String. |
Classifier |
getT()
Obtains a generic instance of the
AnyType metatype that represents
the type parameter of generic types and operations, named T. |
Classifier |
getT2()
Obtains a generic instance of the
AnyType metatype that represents
another type parameter of generic operations (particularly certain
OCL Collection operations), named T2. |
Classifier |
getUnlimitedNatural()
Obtains the instance of the
PrimitiveType metatype,
named UnlimitedNatural. |
static <any> |
selectIterators(Collection<Operation> operations)
Selects from the specified operations those that are collection iterators.
|
static void |
stereotypeAsIterator(Collection<Operation> operations)
Marks the specified operations as being collection iterators (as distinct
from ordinary operations).
|
public static final OCLStandardLibraryImpl INSTANCE
public static Object INVALID
public static Package stdlibPackage
public Classifier getBoolean()
OCLStandardLibraryPrimitiveType metatype, named
Boolean.getBoolean in interface OCLStandardLibrary<Classifier>PrimitiveType)public Classifier getInteger()
OCLStandardLibraryPrimitiveType metatype, named
Integer.getInteger in interface OCLStandardLibrary<Classifier>PrimitiveType)public Classifier getUnlimitedNatural()
OCLStandardLibraryPrimitiveType metatype,
named UnlimitedNatural.getUnlimitedNatural in interface OCLStandardLibrary<Classifier>PrimitiveType)public Classifier getOclInvalid()
OCLStandardLibraryInvalidType metatype, named
OclInvalid.getOclInvalid in interface OCLStandardLibrary<Classifier>InvalidType)public Classifier getReal()
OCLStandardLibraryPrimitiveType metatype, named
Real.getReal in interface OCLStandardLibrary<Classifier>PrimitiveType)public Classifier getString()
OCLStandardLibraryPrimitiveType metatype, named
String.getString in interface OCLStandardLibrary<Classifier>PrimitiveType)public Classifier getOclAny()
OCLStandardLibraryAnyType metatype, named
OclAny.getOclAny in interface OCLStandardLibrary<Classifier>AnyType)public Classifier getOclElement()
OCLStandardLibraryElementType metatype, named
OclElement.getOclElement in interface OCLStandardLibrary<Classifier>ElementType)public Object getInvalid()
OCLStandardLibraryOclInvalid type,
identified by the token invalid.getInvalid in interface OCLStandardLibrary<Classifier>invalid)public Classifier getState()
OCLStandardLibraryElementType metatype that represents
the type of states in the model, named State.getState in interface OCLStandardLibrary<Classifier>ElementType)public Classifier getOclMessage()
OCLStandardLibraryMessageType metatype, named
OclMessage.getOclMessage in interface OCLStandardLibrary<Classifier>MessageType)public Classifier getOclType()
OCLStandardLibraryTypeType metatype, named
OclType.getOclType in interface OCLStandardLibrary<Classifier>TypeType)public Classifier getOclVoid()
OCLStandardLibraryVoidType metatype, named
OclVoid.getOclVoid in interface OCLStandardLibrary<Classifier>VoidType)public Classifier getT()
OCLStandardLibraryAnyType metatype that represents
the type parameter of generic types and operations, named T.getT in interface OCLStandardLibrary<Classifier>AnyType)public Classifier getT2()
OCLStandardLibraryAnyType metatype that represents
another type parameter of generic operations (particularly certain
OCL Collection operations), named T2.getT2 in interface OCLStandardLibrary<Classifier>AnyType)public Classifier getSet()
OCLStandardLibrarySetType metatype, named
Set(T).getSet in interface OCLStandardLibrary<Classifier>SetType)public Classifier getOrderedSet()
OCLStandardLibraryOrderedSetType metatype, named
OrderedSet(T).getOrderedSet in interface OCLStandardLibrary<Classifier>OrderedSetType)public Classifier getBag()
OCLStandardLibraryBagType metatype, named
Bag(T).getBag in interface OCLStandardLibrary<Classifier>BagType)public Classifier getSequence()
OCLStandardLibrarySequenceType metatype, named
Sequence(T).getSequence in interface OCLStandardLibrary<Classifier>SequenceType)public Classifier getCollection()
OCLStandardLibraryCollectionType metatype, named
Collection(T).getCollection in interface OCLStandardLibrary<Classifier>CollectionType)public Classifier getOclExpression()
OCLStandardLibraryElementType metatype that represents
the type of OCL expressions in the model, named OclExpression.getOclExpression in interface OCLStandardLibrary<Classifier>ElementType)public static Class findShadowClass(Classifier classifier, Package pkg)
type, if it already exists.classifier - an Ecore classifierpkg - the package in which to look for the shadow classnull if not
foundpublic static Classifier getRealClassifier(Class shadow)
public static void stereotypeAsIterator(Collection<Operation> operations)
operations - operations to designate as iteratorspublic static <any> selectIterators(Collection<Operation> operations)
operations - operationspublic static Collection<Operation> createCollectionTypeOperations(Environment<?,Classifier,Operation,?,?,Parameter,?,?,?,?,?,?> env, CollectionKind kind)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.