|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ocl.uml.util.UMLTypeUtil
UMLReflection
interface, instead, to introspect
UML models.
public class UMLTypeUtil
Utility methods for working with the annotations that extend the Ecore model to implement certain UML semantics required by OCL.
Field Summary | |
---|---|
static String |
ANNOTATION_URI_ASSOCIATION_CLASS
Deprecated. Annotation that stores the reference to the EClass representing
an association class that includes an EReference as a member end. |
static String |
ANNOTATION_URI_CLASSIFIER
Deprecated. Annotation that indicates what kind of a UML classifier is an EClass . |
static String |
ANNOTATION_URI_MEMBER_ENDS
Deprecated. Annotation that stores references to which of the EReference s
of an EClass representing an association class are its
member ends. |
static String |
ANNOTATION_URI_OPERATION
Deprecated. Annotation that stores details of the nature of a UML operation (modeled as an EOperation ). |
static String |
ANNOTATION_URI_QUALIFIERS
Deprecated. Annotation that stores qualifiers (if any) of a UML association end (modeled as an EReference ). |
static String |
ANNOTATION_URI_SIGNALS
Deprecated. Annotation that stores references to EClass es representing
signals that an EClass can receive. |
Method Summary | |
---|---|
static void |
addMemberEnd(EClass associationClass,
EReference memberEnd)
Deprecated. Adds a member end to an EMF classifier representing a UML association class. |
static void |
addQualifier(EStructuralFeature property,
EStructuralFeature qualifier)
Deprecated. Adds a UML qualifier to the specified property. |
static void |
addSignal(EClass eclass,
EClass signal)
Deprecated. Adds a UML signal that the specified classifier can receive. |
static EClass |
getAssociationClass(EReference reference)
Deprecated. Obtains the EClass representing the "class" aspect of the
UML association class that the specified EReference represents. |
static EList |
getMemberEnds(EClass associationClass)
Deprecated. Obtains the member ends of an EMF classifier representing a UML association class. |
static EStructuralFeature |
getProperty(EStructuralFeature qualifier)
Deprecated. Queries the property that has the specified qualifier, if any. |
static EList |
getQualifiers(EStructuralFeature property)
Deprecated. Obtains the UML qualifiers, if any, associated with the specified property. |
static EList |
getSignals(EClass eclass)
Deprecated. Obtains the UML signals that the specified classifier can receive, if any. |
static boolean |
isAssociationClass(EClassifier classifier)
Deprecated. Queries whether the specified classifier represents a UML association class. |
static boolean |
isClass(EClassifier classifier)
Deprecated. Queries whether the specified classifier represents a UML class. |
static boolean |
isDataType(EClassifier classifier)
Deprecated. Queries whether the specified classifier represents a UML data type. |
static boolean |
isEnumeration(EClassifier classifier)
Deprecated. Queries whether the specified classifier represents a UML enumeration. |
static boolean |
isQuery(EOperation operation)
Deprecated. Queries whether the specified operation is a query (side-effect free). |
static boolean |
isSignal(EClassifier classifier)
Deprecated. Queries whether the specified classifier represents a UML signal. |
static void |
setAssociationClass(EClassifier classifier,
boolean isAssociationClass)
Deprecated. Sets whether the specified classifier represents a UML association class. |
static void |
setAssociationClass(EReference reference,
EClass associationClass)
Deprecated. Sets the association class that an EReference represents (in its role of a UML association). |
static void |
setClass(EClassifier classifier,
boolean isClass)
Deprecated. Sets whether the specified classifier represents a UML class. |
static void |
setDataType(EClassifier classifier,
boolean isDataType)
Deprecated. Sets whether the specified classifier represents a UML data type. |
static void |
setEnumeration(EClassifier classifier,
boolean isEnumeration)
Deprecated. Sets whether the specified classifier represents a UML enumeration. |
static void |
setQuery(EOperation operation,
boolean isQuery)
Deprecated. Sets whether the specified operation is a query (side-effect free). |
static void |
setSignal(EClassifier classifier,
boolean isSignal)
Deprecated. Sets whether the specified classifier represents a UML signal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ANNOTATION_URI_CLASSIFIER
EClass
. The details map has a "kind"
key mapping
to one of the following values:
"AssociationClass"
- indicates association class"Signal"
- indicates signal"Class"
- indicates class (implicit for EClass
es)"DataType"
- indicates data type (implicit for EDataType
s"Enumeration"
- indicates enumeration (implicit for EEnum
s
public static final String ANNOTATION_URI_MEMBER_ENDS
EReference
s
of an EClass
representing an association class are its
member ends.
public static final String ANNOTATION_URI_ASSOCIATION_CLASS
EClass
representing
an association class that includes an EReference
as a member end.
public static final String ANNOTATION_URI_OPERATION
EOperation
). The details map supports the
following keys:
"isQuery"
- value "true" or "false" according to whether
the operation is a query (side-effect-free) operation
public static final String ANNOTATION_URI_QUALIFIERS
EReference
). The qualifiers are
EStructuralFeature
s in the annotation's contents list.
public static final String ANNOTATION_URI_SIGNALS
EClass
es representing
signals that an EClass
can receive.
Method Detail |
---|
public static boolean isSignal(EClassifier classifier)
classifier
- an OCL type
public static boolean isAssociationClass(EClassifier classifier)
classifier
- an OCL type
public static boolean isClass(EClassifier classifier)
classifier
- an OCL type
public static boolean isDataType(EClassifier classifier)
classifier
- an OCL type
public static boolean isEnumeration(EClassifier classifier)
classifier
- an OCL type
public static boolean isQuery(EOperation operation)
operation
- an OCL operation
public static EList getMemberEnds(EClass associationClass)
associationClass
- representation of a UML association class
EReference
sisAssociationClass(EClassifier)
,
getAssociationClass(EReference)
public static EClass getAssociationClass(EReference reference)
EClass
representing the "class" aspect of the
UML association class that the specified EReference
represents.
reference
- an association class reference
getMemberEnds(EClass)
,
isAssociationClass(EClassifier)
public static EList getQualifiers(EStructuralFeature property)
property
- the representation of a UML property
EStructuralFeature
s, if anypublic static EStructuralFeature getProperty(EStructuralFeature qualifier)
qualifier
- a UML qualifier
null
if nonepublic static EList getSignals(EClass eclass)
eclass
- an OCL type
EClass
es, if anypublic static void setSignal(EClassifier classifier, boolean isSignal)
classifier
- an OCL typeisSignal
- whether it represents a UML signalpublic static void setAssociationClass(EClassifier classifier, boolean isAssociationClass)
classifier
- an OCL typeisAssociationClass
- whether it represents a UML association classpublic static void setClass(EClassifier classifier, boolean isClass)
classifier
- an OCL typeisClass
- whether it represents a UML classpublic static void setDataType(EClassifier classifier, boolean isDataType)
classifier
- an OCL typeisDataType
- whether it represents a UML data typepublic static void setEnumeration(EClassifier classifier, boolean isEnumeration)
classifier
- an OCL typeisEnumeration
- whether it represents a UML enumerationpublic static void setQuery(EOperation operation, boolean isQuery)
operation
- an OCL operationisQuery
- whether it represents a query operationpublic static void addMemberEnd(EClass associationClass, EReference memberEnd)
associationClass
- representation of a UML association classmemberEnd
- the member end to addisAssociationClass(EClassifier)
,
getAssociationClass(EReference)
public static void setAssociationClass(EReference reference, EClass associationClass)
reference
actually represents the association class.
reference
- a reference representing a UML association classassociationClass
- the Ecore representation of the association class's class-nesspublic static void addQualifier(EStructuralFeature property, EStructuralFeature qualifier)
property
- the representation of a UML propertyqualifier
- a qualifier to addpublic static void addSignal(EClass eclass, EClass signal)
eclass
- an OCL typesignal
- a signal that it can receive
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |