public class UMLOCLStandardLibrary extends Object implements OCLStandardLibrary<Classifier>
An extensible implementation of the OCLStandardLibrary
which provides the
OCL Standard Library predefined M1 types and the associated operations related to them.
The UML-based OCL standard library represents a Package
which owns all the predefined
OCL types defined by the specification. The library itself is built by the the internal internal
OCLStandardLibraryImpl
singleton.
OCLStandardLibraryImpl
Constructor and Description |
---|
UMLOCLStandardLibrary() |
Modifier and Type | Method and Description |
---|---|
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. |
Package |
getOCLStdLibPackage() |
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. |
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. |
public Classifier getBag()
OCLStandardLibrary
BagType
metatype, named
Bag(T).getBag
in interface OCLStandardLibrary<Classifier>
BagType
)public Classifier getBoolean()
OCLStandardLibrary
PrimitiveType
metatype, named
Boolean.getBoolean
in interface OCLStandardLibrary<Classifier>
PrimitiveType
)public Classifier getCollection()
OCLStandardLibrary
CollectionType
metatype, named
Collection(T).getCollection
in interface OCLStandardLibrary<Classifier>
CollectionType
)public Classifier getInteger()
OCLStandardLibrary
PrimitiveType
metatype, named
Integer.getInteger
in interface OCLStandardLibrary<Classifier>
PrimitiveType
)public Classifier getOclInvalid()
OCLStandardLibrary
InvalidType
metatype, named
OclInvalid.getOclInvalid
in interface OCLStandardLibrary<Classifier>
InvalidType
)public Classifier getOclAny()
OCLStandardLibrary
AnyType
metatype, named
OclAny.getOclAny
in interface OCLStandardLibrary<Classifier>
AnyType
)public Classifier getOclElement()
OCLStandardLibrary
ElementType
metatype, named
OclElement.getOclElement
in interface OCLStandardLibrary<Classifier>
ElementType
)public Classifier getOclExpression()
OCLStandardLibrary
ElementType
metatype that represents
the type of OCL expressions in the model, named OclExpression.getOclExpression
in interface OCLStandardLibrary<Classifier>
ElementType
)public Object getInvalid()
OCLStandardLibrary
OclInvalid
type,
identified by the token invalid.getInvalid
in interface OCLStandardLibrary<Classifier>
invalid
)public Classifier getOclMessage()
OCLStandardLibrary
MessageType
metatype, named
OclMessage.getOclMessage
in interface OCLStandardLibrary<Classifier>
MessageType
)public Classifier getOclType()
OCLStandardLibrary
TypeType
metatype, named
OclType.getOclType
in interface OCLStandardLibrary<Classifier>
TypeType
)public Classifier getOclVoid()
OCLStandardLibrary
VoidType
metatype, named
OclVoid.getOclVoid
in interface OCLStandardLibrary<Classifier>
VoidType
)public Classifier getOrderedSet()
OCLStandardLibrary
OrderedSetType
metatype, named
OrderedSet(T).getOrderedSet
in interface OCLStandardLibrary<Classifier>
OrderedSetType
)public Classifier getReal()
OCLStandardLibrary
PrimitiveType
metatype, named
Real.getReal
in interface OCLStandardLibrary<Classifier>
PrimitiveType
)public Classifier getSequence()
OCLStandardLibrary
SequenceType
metatype, named
Sequence(T).getSequence
in interface OCLStandardLibrary<Classifier>
SequenceType
)public Classifier getSet()
OCLStandardLibrary
SetType
metatype, named
Set(T).getSet
in interface OCLStandardLibrary<Classifier>
SetType
)public Classifier getState()
OCLStandardLibrary
ElementType
metatype that represents
the type of states in the model, named State.getState
in interface OCLStandardLibrary<Classifier>
ElementType
)public Classifier getString()
OCLStandardLibrary
PrimitiveType
metatype, named
String.getString
in interface OCLStandardLibrary<Classifier>
PrimitiveType
)public Classifier getT()
OCLStandardLibrary
AnyType
metatype that represents
the type parameter of generic types and operations, named T.getT
in interface OCLStandardLibrary<Classifier>
AnyType
)public Classifier getT2()
OCLStandardLibrary
AnyType
metatype that represents
another type parameter of generic operations (particularly certain
OCL Collection
operations), named T2.getT2
in interface OCLStandardLibrary<Classifier>
AnyType
)public Classifier getUnlimitedNatural()
OCLStandardLibrary
PrimitiveType
metatype,
named UnlimitedNatural.getUnlimitedNatural
in interface OCLStandardLibrary<Classifier>
PrimitiveType
)Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.