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