|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.ecore.internal.UMLReflectionImpl
public class UMLReflectionImpl
Implementation of the UML reflection service for the Ecore environment.
| Field Summary | |
|---|---|
static UMLReflectionImpl |
INSTANCE
Shared instance of the stateless reflection service. |
| Fields inherited from interface org.eclipse.ocl.utilities.UMLReflection |
|---|
BODY, DEFINITION, DERIVATION, INITIAL, INVARIANT, OCL_HELPER, POSTCONDITION, PRECONDITION, RELATED_TYPE, SAME_TYPE, STRICT_SUBTYPE, STRICT_SUPERTYPE, SUBTYPE, SUPERTYPE, UNRELATED_TYPE |
| Constructor Summary | |
|---|---|
protected |
UMLReflectionImpl()
Initializes me. |
| Method Summary | |
|---|---|
void |
addConstrainedElement(Constraint constraint,
org.eclipse.emf.ecore.EObject constrainedElement)
Adds a constrainedElement to a constraint. |
org.eclipse.emf.ecore.EClassifier |
asOCLType(org.eclipse.emf.ecore.EClassifier modelType)
Obtains the OCL type corresponding to the specified type from the environment's type system. |
CallOperationAction |
createCallOperationAction(org.eclipse.emf.ecore.EOperation operation)
Creates a CallOperationAction referencing the specified operation. |
Constraint |
createConstraint()
Creates a Constraint. |
ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> |
createExpressionInOCL()
Creates an ExpressionInOCL. |
org.eclipse.emf.ecore.EOperation |
createOperation(java.lang.String name,
org.eclipse.emf.ecore.EClassifier resultType,
java.util.List<java.lang.String> paramNames,
java.util.List<org.eclipse.emf.ecore.EClassifier> paramTypes)
Creates a new Operation. |
org.eclipse.emf.ecore.EStructuralFeature |
createProperty(java.lang.String name,
org.eclipse.emf.ecore.EClassifier resultType)
Creates a new Property. |
SendSignalAction |
createSendSignalAction(org.eclipse.emf.ecore.EClassifier signal)
Creates a SendSignalAction referencing the specified signal. |
java.util.Collection<? extends org.eclipse.emf.ecore.EClassifier> |
getAllSupertypes(org.eclipse.emf.ecore.EClassifier classifier)
Obtains all of the classifiers that generalize the specified classifier. |
org.eclipse.emf.ecore.EClass |
getAssociationClass(org.eclipse.emf.ecore.EStructuralFeature reference)
Obtains the association class that the specified reference represents, as an EClass, if any. |
java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
getAttributes(org.eclipse.emf.ecore.EClassifier classifier)
Obtains all of the attributes defined by and inherited by the specified classifier. |
java.util.List<org.eclipse.emf.ecore.EClassifier> |
getClassifiers(org.eclipse.emf.ecore.EPackage pkg)
Obtains the classifiers contained directly within the specified package. |
org.eclipse.emf.ecore.EClassifier |
getCommonSuperType(org.eclipse.emf.ecore.EClassifier type1,
org.eclipse.emf.ecore.EClassifier type2)
Get the common supertype of two types. |
java.util.List<org.eclipse.emf.ecore.EModelElement> |
getConstrainedElements(Constraint constraint)
Obtains the list of element constraint by a constraint, as a list of EObjects. |
Constraint |
getConstraint(ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> specification)
Obtains the constraint owning the given specification, if any. |
java.lang.String |
getConstraintName(Constraint constraint)
Obtains the name of a constraint. |
java.lang.String |
getDescription(java.lang.Object namedElement)
Default implementation just gets the name of the named element's eClass or, if it is an
ETypedElement, the name of its type. |
org.eclipse.emf.ecore.EClassifier |
getEnumeration(org.eclipse.emf.ecore.EEnumLiteral enumerationLiteral)
Obtains the enumeration declaring the specified literal. |
org.eclipse.emf.ecore.EEnumLiteral |
getEnumerationLiteral(org.eclipse.emf.ecore.EClassifier enumerationType,
java.lang.String literalName)
Obtains the named literal of an enumeration. |
java.util.List<org.eclipse.emf.ecore.EEnumLiteral> |
getEnumerationLiterals(org.eclipse.emf.ecore.EClassifier enumerationType)
Obtains the literals declared by the specified enumeration type. |
java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
getMemberEnds(org.eclipse.emf.ecore.EClassifier associationClass)
Obtains the ends of the specified association class as a list of EReferences. |
java.lang.String |
getName(java.lang.Object namedElement)
Obtains the name of an element, if it is a named element. |
java.util.List<org.eclipse.emf.ecore.EPackage> |
getNestedPackages(org.eclipse.emf.ecore.EPackage pkg)
Obtains the packages nested within the specified nesting package, if any. |
org.eclipse.emf.ecore.EPackage |
getNestingPackage(org.eclipse.emf.ecore.EPackage pkg)
Obtains the parent package (or nearest parent package), if any, of the specified package. |
org.eclipse.emf.ecore.EClassifier |
getOCLCollectionType(org.eclipse.emf.ecore.EClassifier type,
boolean isOrdered,
boolean isUnique)
Obtains the appropriate OCL collection type for an EClassifier,
according to the collection's orderedness and uniqueness. |
org.eclipse.emf.ecore.EClassifier |
getOCLType(java.lang.Object metaElement)
Obtains the type of a meta-element (classifier, operation, property, parameter, etc.). |
org.eclipse.emf.ecore.EOperation |
getOperation(CallOperationAction callOperationAction)
Obtains the called operation referenced by the specified call action. |
java.util.List<org.eclipse.emf.ecore.EOperation> |
getOperations(org.eclipse.emf.ecore.EClassifier classifier)
Obtains all of the operations defined by and inherited by the specified classifier. |
org.eclipse.emf.ecore.EClassifier |
getOwningClassifier(java.lang.Object feature)
Obtains the classifier that declares the specified feature. |
org.eclipse.emf.ecore.EPackage |
getPackage(org.eclipse.emf.ecore.EClassifier classifier)
Obtains the package containing (or nearest package of) the specified classifier. |
java.util.List<org.eclipse.emf.ecore.EParameter> |
getParameters(org.eclipse.emf.ecore.EOperation operation)
Obtains the formal parameters (excluding return parameters) of an operation. |
java.lang.String |
getQualifiedName(java.lang.Object namedElement)
Obtains the qualified name of an element ("::"-separated), if it is a named element. |
java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
getQualifiers(org.eclipse.emf.ecore.EStructuralFeature property)
Gets the qualifiers of an association end. |
int |
getRelationship(org.eclipse.emf.ecore.EClassifier type1,
org.eclipse.emf.ecore.EClassifier type2)
Computes the relationship between two types. |
org.eclipse.emf.ecore.EClass |
getSignal(SendSignalAction sendSignalAction)
Obtains the sent signal referenced by the specified send action. |
java.util.List<org.eclipse.emf.ecore.EClassifier> |
getSignals(org.eclipse.emf.ecore.EClassifier owner)
Retrieves a list of all signal receptions defined by the specified owner classifier. |
ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> |
getSpecification(Constraint constraint)
Obtains the specification of a constraint, if it is an ExpressionInOCL. |
java.lang.String |
getStereotype(Constraint constraint)
Obtains the stereotype (one of the constants defined by this interface) that identifies the kind of the specified constraint. |
java.lang.Object |
getStereotypeApplication(java.lang.Object baseElement,
org.eclipse.emf.ecore.EClassifier stereotype)
Obtains the application (stereotype instance) of the specified stereotype applied to the given base element, if the stereotype is indeed applied. |
static boolean |
isAncestor(org.eclipse.emf.ecore.EObject ancestor,
org.eclipse.emf.ecore.EObject descendent)
Queries whether a prospective ancestor really is a container (recursively) of the specified descendent. |
boolean |
isAssociationClass(org.eclipse.emf.ecore.EClassifier eclass)
Determines whether the specified eclass is an association
class. |
boolean |
isClass(java.lang.Object metaElement)
Queries whether the specified model element is a class. |
boolean |
isClassifier(java.lang.Object metaElement)
Queries whether the specified model element is a classifier. |
boolean |
isComparable(org.eclipse.emf.ecore.EClassifier type)
Queries whether the specified type is a comparable (fully ordered) data type. |
boolean |
isConstraint(java.lang.Object metaElement)
Queries whether the specified model element is a constraint. |
boolean |
isDataType(java.lang.Object metaElement)
Queries whether the specified model element is a data type. |
boolean |
isEnumeration(org.eclipse.emf.ecore.EClassifier type)
Queries whether the specified classifier is an enumeration. |
boolean |
isMany(java.lang.Object metaElement)
Queries whether the specified meta-element (already known to be a property, parameter, or operation) has multiplicity many. |
boolean |
isOperation(java.lang.Object metaElement)
Queries whether the specified model element is an operation. |
boolean |
isPackage(java.lang.Object metaElement)
Queries whether the specified model element is a package. |
boolean |
isProperty(java.lang.Object metaElement)
Queries whether the specified model element is a property. |
boolean |
isQuery(org.eclipse.emf.ecore.EOperation operation)
Determines whether the specified operation is a query
operation. |
boolean |
isStatic(java.lang.Object feature)
Queries whether a property or operation is static (applies to a classifier rather than to its instances). |
boolean |
isStereotype(org.eclipse.emf.ecore.EClassifier type)
Queries whether the specified model element is a stereotype. |
void |
setConstraintName(Constraint constraint,
java.lang.String name)
Sets the name of a constraint. |
boolean |
setIsStatic(java.lang.Object feature,
boolean isStatic)
Sets a property or operation static (applies to a classifier rather than to its instances). |
void |
setName(TypedElement<org.eclipse.emf.ecore.EClassifier> element,
java.lang.String name)
Sets the name of the specified typed element. |
void |
setSpecification(Constraint constraint,
ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> specification)
Sets the specification of a constraint. |
void |
setStereotype(Constraint constraint,
java.lang.String stereotype)
Sets the stereotype (one of the constants defined by this interface) that identifies the kind of the specified constraint. |
void |
setType(TypedElement<org.eclipse.emf.ecore.EClassifier> element,
org.eclipse.emf.ecore.EClassifier type)
Sets the type of the specified typed element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final UMLReflectionImpl INSTANCE
| Constructor Detail |
|---|
protected UMLReflectionImpl()
| Method Detail |
|---|
public java.lang.String getDescription(java.lang.Object namedElement)
eClass or, if it is an
ETypedElement, the name of its type.
getDescription in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>namedElement - a named element
public java.lang.String getName(java.lang.Object namedElement)
UMLReflection
getName in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>namedElement - a named element
null if it is not
a named elementpublic java.lang.String getQualifiedName(java.lang.Object namedElement)
UMLReflection
getQualifiedName in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>namedElement - a named element
null if
it is not a named elementpublic org.eclipse.emf.ecore.EClassifier getOCLType(java.lang.Object metaElement)
UMLReflection
getOCLType in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - an element of the environment's metamodel
UMLReflection.isMany(Object)public java.util.Collection<? extends org.eclipse.emf.ecore.EClassifier> getAllSupertypes(org.eclipse.emf.ecore.EClassifier classifier)
UMLReflection
getAllSupertypes in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>classifier - a classifier
public boolean isMany(java.lang.Object metaElement)
UMLReflection
isMany in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a property, parameter, or operation
public org.eclipse.emf.ecore.EClassifier asOCLType(org.eclipse.emf.ecore.EClassifier modelType)
UMLReflection
asOCLType in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>modelType - a type in the environment
public org.eclipse.emf.ecore.EPackage getNestingPackage(org.eclipse.emf.ecore.EPackage pkg)
UMLReflection
getNestingPackage in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>pkg - a package
null if the given
package has no nesting packageUMLReflection.getNestedPackages(PK)public java.util.List<org.eclipse.emf.ecore.EPackage> getNestedPackages(org.eclipse.emf.ecore.EPackage pkg)
UMLReflection
getNestedPackages in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>pkg - a package
UMLReflection.getNestingPackage(PK)public org.eclipse.emf.ecore.EPackage getPackage(org.eclipse.emf.ecore.EClassifier classifier)
UMLReflection
getPackage in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>classifier - a classifier in the model
null if there
is nonepublic java.util.List<org.eclipse.emf.ecore.EClassifier> getClassifiers(org.eclipse.emf.ecore.EPackage pkg)
UMLReflection
getClassifiers in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>pkg - a package in the model
public org.eclipse.emf.ecore.EClassifier getOwningClassifier(java.lang.Object feature)
UMLReflection
getOwningClassifier in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>feature - an operation or property
null)public java.util.List<org.eclipse.emf.ecore.EParameter> getParameters(org.eclipse.emf.ecore.EOperation operation)
UMLReflection
getParameters in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>operation - an operation in the model
public org.eclipse.emf.ecore.EOperation createOperation(java.lang.String name,
org.eclipse.emf.ecore.EClassifier resultType,
java.util.List<java.lang.String> paramNames,
java.util.List<org.eclipse.emf.ecore.EClassifier> paramTypes)
UMLReflectionNote that the new operation must be a query operation, as OCL can only define queries.
createOperation in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>name - the name of the new operation (must not be null)resultType - the result type of the operation (not null)paramNames - the names of the formal parameters of the operaiton
(may be an empty list if no parameters)paramTypes - the parameter types, corresponding one-for-one with
the parameter names
UMLReflection.isQuery(Object)public java.util.List<org.eclipse.emf.ecore.EOperation> getOperations(org.eclipse.emf.ecore.EClassifier classifier)
UMLReflection
getOperations in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>classifier - a classifier in the model
public org.eclipse.emf.ecore.EStructuralFeature createProperty(java.lang.String name,
org.eclipse.emf.ecore.EClassifier resultType)
UMLReflection
createProperty in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>name - the name of the new property (must not be null)resultType - the type of the property (not null)
public java.util.List<org.eclipse.emf.ecore.EStructuralFeature> getAttributes(org.eclipse.emf.ecore.EClassifier classifier)
UMLReflection
getAttributes in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>classifier - a classifier in the model
public java.util.List<org.eclipse.emf.ecore.EClassifier> getSignals(org.eclipse.emf.ecore.EClassifier owner)
UMLReflectionowner classifier. This must include also signals
defined by supertypes of the owner. This method is used for content-assist.
getSignals in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>owner - the owner type of the signal receptions
EClasses), or an empty list if nonepublic boolean isQuery(org.eclipse.emf.ecore.EOperation operation)
operation is a query
operation. By default, all operations are assumed to be queries.
isQuery in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>operation - an operation
true, by defaultpublic boolean isStatic(java.lang.Object feature)
UMLReflection
isStatic in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>feature - an operation or a property
public boolean isAssociationClass(org.eclipse.emf.ecore.EClassifier eclass)
eclass is an association
class. By default, it is assumed that nothing is an association class
because Ecore does not directly support this concept.
isAssociationClass in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>eclass - an Ecore class
false, by defaultpublic org.eclipse.emf.ecore.EClass getAssociationClass(org.eclipse.emf.ecore.EStructuralFeature reference)
EClass, if any. By default, it is assumed that nothing is
an association class because Ecore does not directly support this concept.
getAssociationClass in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>reference - a reference
null, by defaultpublic java.util.List<org.eclipse.emf.ecore.EStructuralFeature> getMemberEnds(org.eclipse.emf.ecore.EClassifier associationClass)
EReferences. By default, it is assumed that nothing is an
association class because Ecore does not directly support this concept.
getMemberEnds in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>associationClass - an EClass representing an association class
UMLReflection.isAssociationClass(C)public boolean isOperation(java.lang.Object metaElement)
UMLReflection
isOperation in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isPackage(java.lang.Object metaElement)
UMLReflection
isPackage in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isProperty(java.lang.Object metaElement)
UMLReflection
isProperty in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isClassifier(java.lang.Object metaElement)
UMLReflection
isClassifier in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isClass(java.lang.Object metaElement)
UMLReflection
isClass in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isConstraint(java.lang.Object metaElement)
UMLReflection
isConstraint in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isDataType(java.lang.Object metaElement)
UMLReflection
isDataType in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>metaElement - a model element
public boolean isEnumeration(org.eclipse.emf.ecore.EClassifier type)
UMLReflection
isEnumeration in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>type - a type in the model
public org.eclipse.emf.ecore.EClassifier getEnumeration(org.eclipse.emf.ecore.EEnumLiteral enumerationLiteral)
UMLReflection
getEnumeration in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>enumerationLiteral - an enumeration literal
null)public java.util.List<org.eclipse.emf.ecore.EEnumLiteral> getEnumerationLiterals(org.eclipse.emf.ecore.EClassifier enumerationType)
UMLReflectionenumeration.
getEnumerationLiterals in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>enumerationType - an enumeration
public org.eclipse.emf.ecore.EEnumLiteral getEnumerationLiteral(org.eclipse.emf.ecore.EClassifier enumerationType,
java.lang.String literalName)
UMLReflectionenumeration.
getEnumerationLiteral in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>enumerationType - an enumerationliteralName - the name of a literal
null if the
specified name does not match an existing literalpublic boolean isStereotype(org.eclipse.emf.ecore.EClassifier type)
UMLReflection
isStereotype in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>type - a type in the model
public java.lang.Object getStereotypeApplication(java.lang.Object baseElement,
org.eclipse.emf.ecore.EClassifier stereotype)
UMLReflection
getStereotypeApplication in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>baseElement - a model elementstereotype - a stereotype applied to the element
null if the stereotype is not appliedpublic boolean isComparable(org.eclipse.emf.ecore.EClassifier type)
UMLReflection
isComparable in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>type - a type in the model
public CallOperationAction createCallOperationAction(org.eclipse.emf.ecore.EOperation operation)
UMLReflection
createCallOperationAction in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>operation - the operation that is called
public org.eclipse.emf.ecore.EOperation getOperation(CallOperationAction callOperationAction)
UMLReflection
getOperation in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>callOperationAction - an operation-call action
null)public SendSignalAction createSendSignalAction(org.eclipse.emf.ecore.EClassifier signal)
UMLReflection
createSendSignalAction in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>signal - the signal that is send
public org.eclipse.emf.ecore.EClass getSignal(SendSignalAction sendSignalAction)
UMLReflection
getSignal in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>sendSignalAction - a signal-send action
null)public Constraint createConstraint()
UMLReflection
createConstraint in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>public java.lang.String getStereotype(Constraint constraint)
UMLReflection
getStereotype in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraint
null)
public void setStereotype(Constraint constraint,
java.lang.String stereotype)
UMLReflection
setStereotype in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraintstereotype - its stereotype (must not be null)public java.lang.String getConstraintName(Constraint constraint)
UMLReflection
getConstraintName in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraint
public void setConstraintName(Constraint constraint,
java.lang.String name)
UMLReflection
setConstraintName in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraintname - the constraint namepublic ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> createExpressionInOCL()
UMLReflection
createExpressionInOCL in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>public ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> getSpecification(Constraint constraint)
UMLReflection
getSpecification in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraint
null
if it has none or it is not an ExpressionInOCL
public void setSpecification(Constraint constraint,
ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> specification)
UMLReflection
setSpecification in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraintspecification - its specificationpublic Constraint getConstraint(ExpressionInOCL<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> specification)
UMLReflection
getConstraint in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>specification - a constraint specification
null if nonepublic java.util.List<org.eclipse.emf.ecore.EModelElement> getConstrainedElements(Constraint constraint)
UMLReflectionEObjects. This list is modifiable, but only after an unsafe cast to
establish a lower type bound. Therefore the UMLReflection.addConstrainedElement(CT, org.eclipse.emf.ecore.EObject) method
should be used instead.
getConstrainedElements in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - a constraint
public void addConstrainedElement(Constraint constraint,
org.eclipse.emf.ecore.EObject constrainedElement)
UMLReflection
addConstrainedElement in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>constraint - the constraint to receiveconstrainedElement - the constrained elementpublic java.util.List<org.eclipse.emf.ecore.EStructuralFeature> getQualifiers(org.eclipse.emf.ecore.EStructuralFeature property)
getQualifiers in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>property - a property of the model class
public org.eclipse.emf.ecore.EClassifier getCommonSuperType(org.eclipse.emf.ecore.EClassifier type1,
org.eclipse.emf.ecore.EClassifier type2)
getCommonSuperType in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>type1 - type2 -
public int getRelationship(org.eclipse.emf.ecore.EClassifier type1,
org.eclipse.emf.ecore.EClassifier type2)
getRelationship in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>type1 - a typetype2 - another type
UMLReflection.UNRELATED_TYPE, UMLReflection.STRICT_SUBTYPE,
UMLReflection.STRICT_SUPERTYPE, or UMLReflection.SAME_TYPE according to the
relationship between the types
public org.eclipse.emf.ecore.EClassifier getOCLCollectionType(org.eclipse.emf.ecore.EClassifier type,
boolean isOrdered,
boolean isUnique)
EClassifier,
according to the collection's orderedness and uniqueness. The mapping is
as follows:
Note that the collection's element type is mapped to an
OCL primitive type where possible.
type - the type to get the corresponding OCL collection type forisOrdered - whether the OCL type should be orderedisUnique - whether the OCL type should be unique
getOCLType(EClassifier)
public static boolean isAncestor(org.eclipse.emf.ecore.EObject ancestor,
org.eclipse.emf.ecore.EObject descendent)
EcoreUtil operation, except that it does not
require the arguments to be InternalEObjects.
ancestor - a prospective ancestor elementdescendent - a prospective descendent element
true if the ancestor contains (recursively) the
descendent
public void setName(TypedElement<org.eclipse.emf.ecore.EClassifier> element,
java.lang.String name)
UMLReflection
setName in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>element - a typed elementname - the type element's nameTypedElement.getName()
public void setType(TypedElement<org.eclipse.emf.ecore.EClassifier> element,
org.eclipse.emf.ecore.EClassifier type)
UMLReflection
setType in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>element - a typed elementtype - the type element's typeTypedElement.getType()
public boolean setIsStatic(java.lang.Object feature,
boolean isStatic)
UMLReflection
setIsStatic in interface UMLReflection<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint>feature - an operation or a propertyisStatic - whether it is to be static
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||