|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.uml.internal.OCLStandardLibraryImpl
public final class OCLStandardLibraryImpl
Implementation of the OCLStandardLibrary
for the UML environment.
Field Summary | |
---|---|
static OCLStandardLibraryImpl |
INSTANCE
The shared instance of the OCL Standard Library for the UML environment. |
static java.lang.Object |
INVALID
The singleton instance of the OclInvalid standard library type. |
static org.eclipse.uml2.uml.Package |
stdlibPackage
The package containing the OCL Standard Library classifiers. |
Method Summary | |
---|---|
static java.util.Collection<org.eclipse.uml2.uml.Operation> |
createCollectionTypeOperations(Environment<?,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,?,?,org.eclipse.uml2.uml.Parameter,?,?,?,?,?,?> env,
CollectionKind kind)
|
static org.eclipse.uml2.uml.Class |
findShadowClass(org.eclipse.uml2.uml.Classifier classifier,
org.eclipse.uml2.uml.Package pkg)
Finds the shadow class to contain features defined for the specified OCL type , if it already exists. |
org.eclipse.uml2.uml.Classifier |
getBag()
Obtains the generic instance of the BagType metatype, named
Bag(T). |
org.eclipse.uml2.uml.Classifier |
getBoolean()
Obtains the instance of the PrimitiveType metatype, named
Boolean. |
org.eclipse.uml2.uml.Classifier |
getCollection()
Obtains the generic instance of the CollectionType metatype, named
Collection(T). |
org.eclipse.uml2.uml.Classifier |
getInteger()
Obtains the instance of the PrimitiveType metatype, named
Integer. |
java.lang.Object |
getInvalid()
Obtains the single instance of the OclInvalid type,
identified by the token invalid. |
org.eclipse.uml2.uml.Classifier |
getOclAny()
Obtains the single instance of the AnyType metatype, named
OclAny. |
org.eclipse.uml2.uml.Classifier |
getOclElement()
Obtains the generic instance of the ElementType metatype, named
OclElement. |
org.eclipse.uml2.uml.Classifier |
getOclExpression()
Obtains the instance of the ElementType metatype that represents
the type of OCL expressions in the model, named OclExpression. |
org.eclipse.uml2.uml.Classifier |
getOclInvalid()
Obtains the single instance of the InvalidType metatype, named
OclInvalid. |
org.eclipse.uml2.uml.Classifier |
getOclMessage()
Obtains the generic instance of the MessageType metatype, named
OclMessage. |
org.eclipse.uml2.uml.Classifier |
getOclType()
Obtains the generic instance of the TypeType metatype, named
OclType. |
org.eclipse.uml2.uml.Classifier |
getOclVoid()
Obtains the single instance of the VoidType metatype, named
OclVoid. |
org.eclipse.uml2.uml.Classifier |
getOrderedSet()
Obtains the generic instance of the OrderedSetType metatype, named
OrderedSet(T). |
org.eclipse.uml2.uml.Classifier |
getReal()
Obtains the instance of the PrimitiveType metatype, named
Real. |
static org.eclipse.uml2.uml.Classifier |
getRealClassifier(org.eclipse.uml2.uml.Class shadow)
|
org.eclipse.uml2.uml.Classifier |
getSequence()
Obtains the generic instance of the SequenceType metatype, named
Sequence(T). |
org.eclipse.uml2.uml.Classifier |
getSet()
Obtains the generic instance of the SetType metatype, named
Set(T). |
org.eclipse.uml2.uml.Classifier |
getState()
Obtains the instance of the ElementType metatype that represents
the type of states in the model, named State. |
org.eclipse.uml2.uml.Classifier |
getString()
Obtains the instance of the PrimitiveType metatype, named
String. |
org.eclipse.uml2.uml.Classifier |
getT()
Obtains a generic instance of the AnyType metatype that represents
the type parameter of generic types and operations, named T. |
org.eclipse.uml2.uml.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. |
org.eclipse.uml2.uml.Classifier |
getUnlimitedNatural()
Obtains the instance of the PrimitiveType metatype,
named UnlimitedNatural. |
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Operation> |
selectIterators(java.util.Collection<org.eclipse.uml2.uml.Operation> operations)
Selects from the specified operations those that are collection iterators. |
static void |
stereotypeAsIterator(java.util.Collection<org.eclipse.uml2.uml.Operation> operations)
Marks the specified operations as being collection iterators (as distinct from ordinary operations). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final OCLStandardLibraryImpl INSTANCE
public static java.lang.Object INVALID
public static org.eclipse.uml2.uml.Package stdlibPackage
Method Detail |
---|
public org.eclipse.uml2.uml.Classifier getBoolean()
OCLStandardLibrary
PrimitiveType
metatype, named
Boolean.
getBoolean
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
PrimitiveType
)public org.eclipse.uml2.uml.Classifier getInteger()
OCLStandardLibrary
PrimitiveType
metatype, named
Integer.
getInteger
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
PrimitiveType
)public org.eclipse.uml2.uml.Classifier getUnlimitedNatural()
OCLStandardLibrary
PrimitiveType
metatype,
named UnlimitedNatural.
getUnlimitedNatural
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
PrimitiveType
)public org.eclipse.uml2.uml.Classifier getOclInvalid()
OCLStandardLibrary
InvalidType
metatype, named
OclInvalid.
getOclInvalid
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
InvalidType
)public org.eclipse.uml2.uml.Classifier getReal()
OCLStandardLibrary
PrimitiveType
metatype, named
Real.
getReal
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
PrimitiveType
)public org.eclipse.uml2.uml.Classifier getString()
OCLStandardLibrary
PrimitiveType
metatype, named
String.
getString
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
PrimitiveType
)public org.eclipse.uml2.uml.Classifier getOclAny()
OCLStandardLibrary
AnyType
metatype, named
OclAny.
getOclAny
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
AnyType
)public org.eclipse.uml2.uml.Classifier getOclElement()
OCLStandardLibrary
ElementType
metatype, named
OclElement.
getOclElement
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
ElementType
)public java.lang.Object getInvalid()
OCLStandardLibrary
OclInvalid
type,
identified by the token invalid.
getInvalid
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
invalid
)public org.eclipse.uml2.uml.Classifier getState()
OCLStandardLibrary
ElementType
metatype that represents
the type of states in the model, named State.
getState
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
ElementType
)public org.eclipse.uml2.uml.Classifier getOclMessage()
OCLStandardLibrary
MessageType
metatype, named
OclMessage.
getOclMessage
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
MessageType
)public org.eclipse.uml2.uml.Classifier getOclType()
OCLStandardLibrary
TypeType
metatype, named
OclType.
getOclType
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
TypeType
)public org.eclipse.uml2.uml.Classifier getOclVoid()
OCLStandardLibrary
VoidType
metatype, named
OclVoid.
getOclVoid
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
VoidType
)public org.eclipse.uml2.uml.Classifier getT()
OCLStandardLibrary
AnyType
metatype that represents
the type parameter of generic types and operations, named T.
getT
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
AnyType
)public org.eclipse.uml2.uml.Classifier getT2()
OCLStandardLibrary
AnyType
metatype that represents
another type parameter of generic operations (particularly certain
OCL Collection
operations), named T2.
getT2
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
AnyType
)public org.eclipse.uml2.uml.Classifier getSet()
OCLStandardLibrary
SetType
metatype, named
Set(T).
getSet
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
SetType
)public org.eclipse.uml2.uml.Classifier getOrderedSet()
OCLStandardLibrary
OrderedSetType
metatype, named
OrderedSet(T).
getOrderedSet
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
OrderedSetType
)public org.eclipse.uml2.uml.Classifier getBag()
OCLStandardLibrary
BagType
metatype, named
Bag(T).
getBag
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
BagType
)public org.eclipse.uml2.uml.Classifier getSequence()
OCLStandardLibrary
SequenceType
metatype, named
Sequence(T).
getSequence
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
SequenceType
)public org.eclipse.uml2.uml.Classifier getCollection()
OCLStandardLibrary
CollectionType
metatype, named
Collection(T).
getCollection
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
CollectionType
)public org.eclipse.uml2.uml.Classifier getOclExpression()
OCLStandardLibrary
ElementType
metatype that represents
the type of OCL expressions in the model, named OclExpression.
getOclExpression
in interface OCLStandardLibrary<org.eclipse.uml2.uml.Classifier>
ElementType
)public static org.eclipse.uml2.uml.Class findShadowClass(org.eclipse.uml2.uml.Classifier classifier, org.eclipse.uml2.uml.Package pkg)
type
, if it already exists.
classifier
- an Ecore classifierpkg
- the package in which to look for the shadow class
null
if not
foundpublic static org.eclipse.uml2.uml.Classifier getRealClassifier(org.eclipse.uml2.uml.Class shadow)
public static void stereotypeAsIterator(java.util.Collection<org.eclipse.uml2.uml.Operation> operations)
operations
- operations to designate as iteratorspublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Operation> selectIterators(java.util.Collection<org.eclipse.uml2.uml.Operation> operations)
operations
- operations
public static java.util.Collection<org.eclipse.uml2.uml.Operation> createCollectionTypeOperations(Environment<?,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,?,?,org.eclipse.uml2.uml.Parameter,?,?,?,?,?,?> env, CollectionKind kind)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |