|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.uml.internal.UMLReflectionImpl
public class UMLReflectionImpl
Implementation of the UML reflection service for the UML environment.
Field Summary |
---|
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 | |
---|---|
UMLReflectionImpl(UMLEnvironment env)
|
Method Summary | |
---|---|
void |
addConstrainedElement(org.eclipse.uml2.uml.Constraint constraint,
org.eclipse.emf.ecore.EObject constrainedElement)
Adds a constrainedElement to a constraint. |
org.eclipse.uml2.uml.Classifier |
asOCLType(org.eclipse.uml2.uml.Classifier modelType)
Obtains the OCL type corresponding to the specified type from the environment's type system. |
org.eclipse.uml2.uml.CallOperationAction |
createCallOperationAction(org.eclipse.uml2.uml.Operation operation)
Creates a CallOperationAction referencing the specified operation. |
org.eclipse.uml2.uml.Constraint |
createConstraint()
Creates a Constraint. |
ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> |
createExpressionInOCL()
Creates an ExpressionInOCL. |
org.eclipse.uml2.uml.Operation |
createOperation(java.lang.String name,
org.eclipse.uml2.uml.Classifier resultType,
java.util.List<java.lang.String> paramNames,
java.util.List<org.eclipse.uml2.uml.Classifier> paramTypes)
Creates a new Operation. |
org.eclipse.uml2.uml.Property |
createProperty(java.lang.String name,
org.eclipse.uml2.uml.Classifier resultType)
Creates a new Property. |
org.eclipse.uml2.uml.SendSignalAction |
createSendSignalAction(org.eclipse.uml2.uml.Classifier signal)
Creates a SendSignalAction referencing the specified signal. |
java.util.Collection<? extends org.eclipse.uml2.uml.Classifier> |
getAllSupertypes(org.eclipse.uml2.uml.Classifier classifier)
Obtains all of the classifiers that generalize the specified classifier. |
org.eclipse.uml2.uml.Classifier |
getAssociationClass(org.eclipse.uml2.uml.Property property)
Obtains the association class of which the specified property is an end, if any. |
java.util.List<org.eclipse.uml2.uml.Property> |
getAttributes(org.eclipse.uml2.uml.Classifier classifier)
Obtains all of the attributes defined by and inherited by the specified classifier. |
java.util.List<org.eclipse.uml2.uml.Classifier> |
getClassifiers(org.eclipse.uml2.uml.Package pkg)
Obtains the classifiers contained directly within the specified package. |
org.eclipse.uml2.uml.Classifier |
getCommonSuperType(org.eclipse.uml2.uml.Classifier type1,
org.eclipse.uml2.uml.Classifier type2)
Obtains the least common general classifier of two classifiers, if they have any in common. |
java.util.List<org.eclipse.uml2.uml.Element> |
getConstrainedElements(org.eclipse.uml2.uml.Constraint constraint)
Obtains the list of element constraint by a constraint, as a list of EObject s. |
org.eclipse.uml2.uml.Constraint |
getConstraint(ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> specification)
Obtains the constraint owning the given specification, if any. |
java.lang.String |
getConstraintName(org.eclipse.uml2.uml.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 metaclass or, if it is a
TypedElement , the name of its type. |
org.eclipse.uml2.uml.Classifier |
getEnumeration(org.eclipse.uml2.uml.EnumerationLiteral enumerationLiteral)
Obtains the enumeration declaring the specified literal. |
org.eclipse.uml2.uml.EnumerationLiteral |
getEnumerationLiteral(org.eclipse.uml2.uml.Classifier enumerationType,
java.lang.String literalName)
Obtains the named literal of an enumeration. |
java.util.List<org.eclipse.uml2.uml.EnumerationLiteral> |
getEnumerationLiterals(org.eclipse.uml2.uml.Classifier enumerationType)
Obtains the literals declared by the specified enumeration type. |
java.util.List<org.eclipse.uml2.uml.Property> |
getMemberEnds(org.eclipse.uml2.uml.Classifier associationClass)
Obtains the ends of the specified association class as a list of properties. |
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.uml2.uml.Package> |
getNestedPackages(org.eclipse.uml2.uml.Package pkg)
Obtains the packages nested within the specified nesting package, if any. |
org.eclipse.uml2.uml.Package |
getNestingPackage(org.eclipse.uml2.uml.Package pkg)
Obtains the parent package (or nearest parent package), if any, of the specified package. |
org.eclipse.uml2.uml.Classifier |
getOCLType(java.lang.Object metaElement)
Obtains the type of a meta-element (classifier, operation, property, parameter, etc.). |
org.eclipse.uml2.uml.Operation |
getOperation(org.eclipse.uml2.uml.CallOperationAction callOperationAction)
Obtains the called operation referenced by the specified call action. |
java.util.List<org.eclipse.uml2.uml.Operation> |
getOperations(org.eclipse.uml2.uml.Classifier classifier)
Obtains all of the operations defined by and inherited by the specified classifier. |
org.eclipse.uml2.uml.Classifier |
getOwningClassifier(java.lang.Object feature)
Obtains the classifier that declares the specified feature. |
org.eclipse.uml2.uml.Package |
getPackage(org.eclipse.uml2.uml.Classifier classifier)
Obtains the package containing (or nearest package of) the specified classifier. |
java.util.List<org.eclipse.uml2.uml.Parameter> |
getParameters(org.eclipse.uml2.uml.Operation 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.uml2.uml.Property> |
getQualifiers(org.eclipse.uml2.uml.Property property)
Gets the qualifiers of a property representing a UML association end. |
int |
getRelationship(org.eclipse.uml2.uml.Classifier type1,
org.eclipse.uml2.uml.Classifier type2)
Obtains the relationship (according to generalization) between two classifiers in the user model. |
org.eclipse.uml2.uml.Classifier |
getSignal(org.eclipse.uml2.uml.SendSignalAction sendSignalAction)
Obtains the sent signal referenced by the specified send action. |
java.util.List<org.eclipse.uml2.uml.Classifier> |
getSignals(org.eclipse.uml2.uml.Classifier owner)
Retrieves a list of all signal receptions defined by the specified owner classifier. |
ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> |
getSpecification(org.eclipse.uml2.uml.Constraint constraint)
Obtains the specification of a constraint, if it is an ExpressionInOCL. |
java.lang.String |
getStereotype(org.eclipse.uml2.uml.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.uml2.uml.Classifier stereotype)
Obtains the application (stereotype instance) of the specified stereotype applied to the given base element, if the stereotype is indeed applied. |
boolean |
isAssociationClass(org.eclipse.uml2.uml.Classifier classifier)
Determines whether the specified type 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.uml2.uml.Classifier 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.uml2.uml.Classifier 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. |
protected boolean |
isOrdered(java.lang.Object metaElement)
Queries whether the specified MultiplicityElement or
Operation is ordered. |
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.uml2.uml.Operation 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.uml2.uml.Classifier type)
Queries whether the specified model element is a stereotype. |
protected boolean |
isUnique(java.lang.Object metaElement)
Queries whether the specified MultiplicityElement or
Operation is unique. |
void |
setConstraintName(org.eclipse.uml2.uml.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.uml2.uml.Classifier> element,
java.lang.String name)
Sets the name of the specified typed element. |
void |
setSpecification(org.eclipse.uml2.uml.Constraint constraint,
ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> specification)
Sets the specification of a constraint. |
void |
setStereotype(org.eclipse.uml2.uml.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.uml2.uml.Classifier> element,
org.eclipse.uml2.uml.Classifier 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 |
Constructor Detail |
---|
public UMLReflectionImpl(UMLEnvironment env)
Method Detail |
---|
public java.lang.String getDescription(java.lang.Object namedElement)
metaclass
or, if it is a
TypedElement
, the name of its type.
getDescription
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
namedElement
- a named element
public java.lang.String getName(java.lang.Object namedElement)
UMLReflection
getName
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.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.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
namedElement
- a named element
null
if
it is not a named elementpublic org.eclipse.uml2.uml.Classifier getOCLType(java.lang.Object metaElement)
UMLReflection
getOCLType
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- an element of the environment's metamodel
UMLReflection.isMany(Object)
public boolean isMany(java.lang.Object metaElement)
UMLReflection
isMany
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a property, parameter, or operation
protected boolean isUnique(java.lang.Object metaElement)
MultiplicityElement
or
Operation
is unique.
metaElement
- a multiplicity-element or operation
protected boolean isOrdered(java.lang.Object metaElement)
MultiplicityElement
or
Operation
is ordered.
metaElement
- a multiplicity-element or operation
public org.eclipse.uml2.uml.Classifier asOCLType(org.eclipse.uml2.uml.Classifier modelType)
UMLReflection
asOCLType
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
modelType
- a type in the environment
public org.eclipse.uml2.uml.Package getNestingPackage(org.eclipse.uml2.uml.Package pkg)
UMLReflection
getNestingPackage
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
pkg
- a package
null
if the given
package has no nesting packageUMLReflection.getNestedPackages(PK)
public java.util.List<org.eclipse.uml2.uml.Package> getNestedPackages(org.eclipse.uml2.uml.Package pkg)
UMLReflection
getNestedPackages
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
pkg
- a package
UMLReflection.getNestingPackage(PK)
public org.eclipse.uml2.uml.Package getPackage(org.eclipse.uml2.uml.Classifier classifier)
UMLReflection
getPackage
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
classifier
- a classifier in the model
null
if there
is nonepublic java.util.List<org.eclipse.uml2.uml.Classifier> getClassifiers(org.eclipse.uml2.uml.Package pkg)
UMLReflection
getClassifiers
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
pkg
- a package in the model
public org.eclipse.uml2.uml.Classifier getOwningClassifier(java.lang.Object feature)
UMLReflection
getOwningClassifier
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
feature
- an operation or property
null
)public java.util.List<org.eclipse.uml2.uml.Parameter> getParameters(org.eclipse.uml2.uml.Operation operation)
UMLReflection
getParameters
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
operation
- an operation in the model
public org.eclipse.uml2.uml.Operation createOperation(java.lang.String name, org.eclipse.uml2.uml.Classifier resultType, java.util.List<java.lang.String> paramNames, java.util.List<org.eclipse.uml2.uml.Classifier> paramTypes)
UMLReflection
Note that the new operation must be a query operation, as OCL can only define queries.
createOperation
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.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.uml2.uml.Operation> getOperations(org.eclipse.uml2.uml.Classifier classifier)
UMLReflection
getOperations
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
classifier
- a classifier in the model
public org.eclipse.uml2.uml.Property createProperty(java.lang.String name, org.eclipse.uml2.uml.Classifier resultType)
UMLReflection
createProperty
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.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.uml2.uml.Property> getAttributes(org.eclipse.uml2.uml.Classifier classifier)
UMLReflection
getAttributes
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
classifier
- a classifier in the model
public java.util.Collection<? extends org.eclipse.uml2.uml.Classifier> getAllSupertypes(org.eclipse.uml2.uml.Classifier classifier)
UMLReflection
getAllSupertypes
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
classifier
- a classifier
public boolean isQuery(org.eclipse.uml2.uml.Operation operation)
UMLReflection
operation
is a query
operation. Query operations are guaranteed not to alter the system; by
the nature of the OCL, all queries defined by OCL are queries.
isQuery
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
operation
- an operation
public boolean isStatic(java.lang.Object feature)
UMLReflection
isStatic
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
feature
- an operation or a property
public boolean setIsStatic(java.lang.Object feature, boolean isStatic)
UMLReflection
setIsStatic
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
feature
- an operation or a propertyisStatic
- whether it is to be static
public boolean isAssociationClass(org.eclipse.uml2.uml.Classifier classifier)
UMLReflection
type
is an association
class.
isAssociationClass
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
classifier
- a classifier in the model
public org.eclipse.uml2.uml.Classifier getAssociationClass(org.eclipse.uml2.uml.Property property)
UMLReflection
getAssociationClass
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
property
- a property
null
if the property
is not an end of an association classpublic java.util.List<org.eclipse.uml2.uml.Property> getMemberEnds(org.eclipse.uml2.uml.Classifier associationClass)
UMLReflection
UMLReflection.isAssociationClass(C)
method.
getMemberEnds
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
associationClass
- a classifier representing an association class
UMLReflection.isAssociationClass(C)
public boolean isOperation(java.lang.Object metaElement)
UMLReflection
isOperation
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isPackage(java.lang.Object metaElement)
UMLReflection
isPackage
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isProperty(java.lang.Object metaElement)
UMLReflection
isProperty
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isClassifier(java.lang.Object metaElement)
UMLReflection
isClassifier
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isClass(java.lang.Object metaElement)
UMLReflection
isClass
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isConstraint(java.lang.Object metaElement)
UMLReflection
isConstraint
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isDataType(java.lang.Object metaElement)
UMLReflection
isDataType
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
metaElement
- a model element
public boolean isStereotype(org.eclipse.uml2.uml.Classifier type)
UMLReflection
isStereotype
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
type
- a type in the model
public java.lang.Object getStereotypeApplication(java.lang.Object baseElement, org.eclipse.uml2.uml.Classifier stereotype)
UMLReflection
getStereotypeApplication
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
baseElement
- a model elementstereotype
- a stereotype applied to the element
null
if the stereotype is not appliedpublic boolean isEnumeration(org.eclipse.uml2.uml.Classifier type)
UMLReflection
isEnumeration
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
type
- a type in the model
public org.eclipse.uml2.uml.Classifier getEnumeration(org.eclipse.uml2.uml.EnumerationLiteral enumerationLiteral)
UMLReflection
getEnumeration
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
enumerationLiteral
- an enumeration literal
null
)public java.util.List<org.eclipse.uml2.uml.EnumerationLiteral> getEnumerationLiterals(org.eclipse.uml2.uml.Classifier enumerationType)
UMLReflection
enumeration
.
getEnumerationLiterals
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
enumerationType
- an enumeration
public org.eclipse.uml2.uml.EnumerationLiteral getEnumerationLiteral(org.eclipse.uml2.uml.Classifier enumerationType, java.lang.String literalName)
UMLReflection
enumeration
.
getEnumerationLiteral
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
enumerationType
- an enumerationliteralName
- the name of a literal
null
if the
specified name does not match an existing literalpublic boolean isComparable(org.eclipse.uml2.uml.Classifier type)
UMLReflection
isComparable
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
type
- a type in the model
public org.eclipse.uml2.uml.Operation getOperation(org.eclipse.uml2.uml.CallOperationAction callOperationAction)
UMLReflection
getOperation
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
callOperationAction
- an operation-call action
null
)public org.eclipse.uml2.uml.Classifier getSignal(org.eclipse.uml2.uml.SendSignalAction sendSignalAction)
UMLReflection
getSignal
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
sendSignalAction
- a signal-send action
null
)public java.lang.String getStereotype(org.eclipse.uml2.uml.Constraint constraint)
UMLReflection
getStereotype
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraint
null
)public void setStereotype(org.eclipse.uml2.uml.Constraint constraint, java.lang.String stereotype)
UMLReflection
setStereotype
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraintstereotype
- its stereotype (must not be null
)public java.lang.String getConstraintName(org.eclipse.uml2.uml.Constraint constraint)
UMLReflection
getConstraintName
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraint
public void setConstraintName(org.eclipse.uml2.uml.Constraint constraint, java.lang.String name)
UMLReflection
setConstraintName
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraintname
- the constraint namepublic ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> getSpecification(org.eclipse.uml2.uml.Constraint constraint)
UMLReflection
getSpecification
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraint
null
if it has none or it is not an ExpressionInOCLpublic void setSpecification(org.eclipse.uml2.uml.Constraint constraint, ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> specification)
UMLReflection
setSpecification
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraintspecification
- its specificationpublic org.eclipse.uml2.uml.Constraint getConstraint(ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> specification)
UMLReflection
getConstraint
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
specification
- a constraint specification
null
if nonepublic java.util.List<org.eclipse.uml2.uml.Element> getConstrainedElements(org.eclipse.uml2.uml.Constraint constraint)
UMLReflection
EObject
s. 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.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- a constraint
public void addConstrainedElement(org.eclipse.uml2.uml.Constraint constraint, org.eclipse.emf.ecore.EObject constrainedElement)
UMLReflection
addConstrainedElement
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
constraint
- the constraint to receiveconstrainedElement
- the constrained elementpublic java.util.List<org.eclipse.uml2.uml.Property> getQualifiers(org.eclipse.uml2.uml.Property property)
UMLReflection
getQualifiers
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
property
- a property of the model class
public org.eclipse.uml2.uml.Classifier getCommonSuperType(org.eclipse.uml2.uml.Classifier type1, org.eclipse.uml2.uml.Classifier type2)
UMLReflection
getCommonSuperType
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
type1
- a classifier in the modeltype2
- another classifier in the model
null
if none.
This result (if any) must be a type in the user model; an
implementation must not return OclAny in the case that
there is no common supertypepublic int getRelationship(org.eclipse.uml2.uml.Classifier type1, org.eclipse.uml2.uml.Classifier type2)
UMLReflection
getRelationship
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
type1
- a classifier in the modeltype2
- another classifier in the model
public java.util.List<org.eclipse.uml2.uml.Classifier> getSignals(org.eclipse.uml2.uml.Classifier owner)
UMLReflection
owner
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.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
owner
- the owner type of the signal receptions
EClass
es), or an empty list if nonepublic org.eclipse.uml2.uml.CallOperationAction createCallOperationAction(org.eclipse.uml2.uml.Operation operation)
UMLReflection
createCallOperationAction
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
operation
- the operation that is called
public org.eclipse.uml2.uml.SendSignalAction createSendSignalAction(org.eclipse.uml2.uml.Classifier signal)
UMLReflection
createSendSignalAction
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
signal
- the signal that is send
public org.eclipse.uml2.uml.Constraint createConstraint()
UMLReflection
createConstraint
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
public ExpressionInOCL<org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Parameter> createExpressionInOCL()
UMLReflection
createExpressionInOCL
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
public void setName(TypedElement<org.eclipse.uml2.uml.Classifier> element, java.lang.String name)
UMLReflection
setName
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
element
- a typed elementname
- the type element's nameTypedElement.getName()
public void setType(TypedElement<org.eclipse.uml2.uml.Classifier> element, org.eclipse.uml2.uml.Classifier type)
UMLReflection
setType
in interface UMLReflection<org.eclipse.uml2.uml.Package,org.eclipse.uml2.uml.Classifier,org.eclipse.uml2.uml.Operation,org.eclipse.uml2.uml.Property,org.eclipse.uml2.uml.EnumerationLiteral,org.eclipse.uml2.uml.Parameter,org.eclipse.uml2.uml.State,org.eclipse.uml2.uml.CallOperationAction,org.eclipse.uml2.uml.SendSignalAction,org.eclipse.uml2.uml.Constraint>
element
- a typed elementtype
- the type element's typeTypedElement.getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |