Package com.sodius.mdw.metamodel.uml21
Interface Class
-
- All Superinterfaces:
BehavioredClassifier,Classifier,Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,EncapsulatedClassifier,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,RedefinableElement,StructuredClassifier,TemplateableElement,Type
- All Known Subinterfaces:
Activity,AssociationClass,Behavior,Component,Device,ExecutionEnvironment,FunctionBehavior,Interaction,Node,OpaqueBehavior,ProtocolStateMachine,StateMachine,Stereotype
public interface Class extends EncapsulatedClassifier, BehavioredClassifier
A representation of the model object 'Class'. A class describes a set of objects that share the same specifications of features, constraints, and semantics. A class may be designated as active (i.e., each of its instances having its own thread of control) or passive (i.e., each of its instances executing within the context of some other object). A class may also specify which signals the instances of this class handle. A class has the capability to have an internal structure and ports. Class has derived association that indicates how it may be extended through one or more stereotypes. Stereotype is the only kind of metaclass that cannot be extended by stereotypes.The following features are supported:
- See Also:
UMLPackage.getClass_()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassifiercreateNestedClassifier(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newClassifier, with the specified 'Name', and appends it to the ' Nested Classifier' containment reference list.OperationcreateOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)Creates a newOperation, with the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Operation' containment reference list.OperationcreateOwnedOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes, Type returnType)Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this class.ReceptioncreateOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)Creates a newReception, with the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Reception' containment reference list.ExtensiongetExtension(String name)Retrieves the firstExtensionwith the specified 'Name' from the ' Extension' reference list.ExtensiongetExtension(String name, boolean ignoreCase)Retrieves the firstExtensionwith the specified 'Name' from the ' Extension' reference list.MDWEList<Extension>getExtensions()Returns the value of the 'Extension' reference list.ClassifiergetNestedClassifier(String name)Retrieves the firstClassifierwith the specified 'Name' from the ' Nested Classifier' containment reference list.ClassifiergetNestedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstClassifierwith the specified 'Name' from the ' Nested Classifier' containment reference list.MDWEList<Classifier>getNestedClassifiers()Returns the value of the 'Nested Classifier' containment reference list.OperationgetOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)Retrieves the firstOperationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.OperationgetOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)Retrieves the firstOperationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.MDWEList<Operation>getOwnedOperations()Returns the value of the 'Owned Operation' containment reference list.ReceptiongetOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)Retrieves the firstReceptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.ReceptiongetOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)Retrieves the firstReceptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.MDWEList<Reception>getOwnedReceptions()Returns the value of the 'Owned Reception' containment reference list.ClassgetSuperClass(String name)Retrieves the firstClasswith the specified 'Name' from the ' Super Class' reference list.ClassgetSuperClass(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstClasswith the specified 'Name' from the ' Super Class' reference list.MDWEList<Class>getSuperClasses()Returns the value of the 'Super Class' reference list.booleanisActive()Returns the value of the 'Is Active' attribute.booleanisMetaclass()Determines whether this class is a metaclass.voidsetIsActive(boolean value)Sets the value of the 'Is Active' attribute.booleanvalidatePassiveClass(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A passive class may not own receptions.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.BehavioredClassifier
createClassifierBehavior, createInterfaceRealization, createOwnedBehavior, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementedInterfaces, getInterfaceRealization, getInterfaceRealization, getInterfaceRealizations, getOwnedBehavior, getOwnedBehavior, getOwnedBehaviors, getOwnedTrigger, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior, validateClassBehavior
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Classifier
allFeatures, allParents, conformsTo, createCollaborationUse, createGeneralization, createOwnedUseCase, createRepresentation, createSubstitution, getAllAttributes, getAllOperations, getAllUsedInterfaces, getAttribute, getAttribute, getAttributes, getCollaborationUse, getCollaborationUse, getCollaborationUses, getFeature, getFeature, getFeatures, getGeneral, getGeneral, getGeneralization, getGeneralization, getGeneralizations, getGenerals, getInheritedMember, getInheritedMember, getInheritedMembers, getOperation, getOperation, getOperations, getOwnedUseCase, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitution, getSubstitutions, getUseCase, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, isAbstract, isFinalSpecialization, maySpecializeType, parents, setIsAbstract, setIsFinalSpecialization, setRepresentation, validateGeneralizationHierarchies, validateMapsToGeneralizationSet, validateNoCyclesInGeneralization, validateSpecializeType
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.EncapsulatedClassifier
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.StructuredClassifier
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Type
conformsTo, createAssociation, getAssociations, getPackage, setPackage
-
-
-
-
Method Detail
-
getOwnedOperations
MDWEList<Operation> getOwnedOperations()
Returns the value of the 'Owned Operation' containment reference list. The list contents are of typeOperation. It is bidirectional and its opposite is 'Class'. The operations owned by the class.- Returns:
- the value of the 'Owned Operation' containment reference list.
- See Also:
UMLPackage.getClass_OwnedOperation(),Operation.getClass_()
-
createOwnedOperation
Operation createOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)
Creates a newOperation, with the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Operation' containment reference list.- Parameters:
name- The 'Name' for the newOperation, ornull.ownedParameterNames- The 'Owned Parameter Names' for the newOperation, ornull.ownedParameterTypes- The 'Owned Parameter Types' for the newOperation, ornull.- Returns:
- The new
Operation. - See Also:
getOwnedOperations()
-
getOwnedOperation
Operation getOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)
Retrieves the firstOperationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.- Parameters:
name- The 'Name' of theOperationto retrieve, ornull.ownedParameterNames- The 'Owned Parameter Names' of theOperationto retrieve, ornull.ownedParameterTypes- The 'Owned Parameter Types' of theOperationto retrieve, ornull.- Returns:
- The first
Operationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', ornull. - See Also:
getOwnedOperations()
-
getOwnedOperation
Operation getOwnedOperation(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstOperationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.- Parameters:
name- The 'Name' of theOperationto retrieve, ornull.ownedParameterNames- The 'Owned Parameter Names' of theOperationto retrieve, ornull.ownedParameterTypes- The 'Owned Parameter Types' of theOperationto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aOperationon demand if not found.- Returns:
- The first
Operationwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', ornull. - See Also:
getOwnedOperations()
-
getNestedClassifiers
MDWEList<Classifier> getNestedClassifiers()
Returns the value of the 'Nested Classifier' containment reference list. The list contents are of typeClassifier. References all the Classifiers that are defined (nested) within the Class.- Returns:
- the value of the 'Nested Classifier' containment reference list.
- See Also:
UMLPackage.getClass_NestedClassifier()
-
createNestedClassifier
Classifier createNestedClassifier(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newClassifier, with the specified 'Name', and appends it to the ' Nested Classifier' containment reference list.- Parameters:
name- The 'Name' for the newClassifier, ornull.eClass- The Ecore class of theClassifierto create.- Returns:
- The new
Classifier. - See Also:
getNestedClassifiers()
-
getNestedClassifier
Classifier getNestedClassifier(String name)
Retrieves the firstClassifierwith the specified 'Name' from the ' Nested Classifier' containment reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getNestedClassifiers()
-
getNestedClassifier
Classifier getNestedClassifier(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstClassifierwith the specified 'Name' from the ' Nested Classifier' containment reference list.- Parameters:
name- The 'Name' of theClassifierto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theClassifierto retrieve, ornull.createOnDemand- Whether to create aClassifieron demand if not found.- Returns:
- The first
Classifierwith the specified 'Name', ornull. - See Also:
getNestedClassifiers()
-
getSuperClasses
MDWEList<Class> getSuperClasses()
Returns the value of the 'Super Class' reference list. The list contents are of typeClass. This gives the superclasses of a class.- Returns:
- the value of the 'Super Class' reference list.
- See Also:
UMLPackage.getClass_SuperClass()
-
getSuperClass
Class getSuperClass(String name)
Retrieves the firstClasswith the specified 'Name' from the ' Super Class' reference list.- Parameters:
name- The 'Name' of theClassto retrieve, ornull.- Returns:
- The first
Classwith the specified 'Name', ornull. - See Also:
getSuperClasses()
-
getSuperClass
Class getSuperClass(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClasswith the specified 'Name' from the ' Super Class' reference list.- Parameters:
name- The 'Name' of theClassto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theClassto retrieve, ornull.- Returns:
- The first
Classwith the specified 'Name', ornull. - See Also:
getSuperClasses()
-
isActive
boolean isActive()
Returns the value of the 'Is Active' attribute. The default value is"false". Determines whether an object specified by this class is active or not. If true, then the owning class is referred to as an active class. If false, then such a class is referred to as a passive class.- Returns:
- the value of the 'Is Active' attribute.
- See Also:
setIsActive(boolean),UMLPackage.getClass_IsActive()
-
setIsActive
void setIsActive(boolean value)
Sets the value of the 'Is Active' attribute.- Parameters:
value- the new value of the 'Is Active' attribute.- See Also:
isActive()
-
getOwnedReceptions
MDWEList<Reception> getOwnedReceptions()
Returns the value of the 'Owned Reception' containment reference list. The list contents are of typeReception. Receptions that objects of this class are willing to accept.- Returns:
- the value of the 'Owned Reception' containment reference list.
- See Also:
UMLPackage.getClass_OwnedReception()
-
createOwnedReception
Reception createOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)
Creates a newReception, with the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Reception' containment reference list.- Parameters:
name- The 'Name' for the newReception, ornull.ownedParameterNames- The 'Owned Parameter Names' for the newReception, ornull.ownedParameterTypes- The 'Owned Parameter Types' for the newReception, ornull.- Returns:
- The new
Reception. - See Also:
getOwnedReceptions()
-
getOwnedReception
Reception getOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes)
Retrieves the firstReceptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.- Parameters:
name- The 'Name' of theReceptionto retrieve, ornull.ownedParameterNames- The 'Owned Parameter Names' of theReceptionto retrieve, ornull.ownedParameterTypes- The 'Owned Parameter Types' of theReceptionto retrieve, ornull.- Returns:
- The first
Receptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', ornull. - See Also:
getOwnedReceptions()
-
getOwnedReception
Reception getOwnedReception(String name, MDWEList<String> ownedParameterNames, MDWEList<? extends Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstReceptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.- Parameters:
name- The 'Name' of theReceptionto retrieve, ornull.ownedParameterNames- The 'Owned Parameter Names' of theReceptionto retrieve, ornull.ownedParameterTypes- The 'Owned Parameter Types' of theReceptionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aReceptionon demand if not found.- Returns:
- The first
Receptionwith the specified 'Name', ' Owned Parameter Names', and 'Owned Parameter Types', ornull. - See Also:
getOwnedReceptions()
-
getExtensions
MDWEList<Extension> getExtensions()
Returns the value of the 'Extension' reference list. The list contents are of typeExtension. It is bidirectional and its opposite is 'Metaclass'. References the Extensions that specify additional properties of the metaclass. The property is derived from the extensions whose memberEnds are typed by the Class.- Returns:
- the value of the 'Extension' reference list.
- See Also:
UMLPackage.getClass_Extension(),Extension.getMetaclass()
-
getExtension
Extension getExtension(String name)
Retrieves the firstExtensionwith the specified 'Name' from the ' Extension' reference list.- Parameters:
name- The 'Name' of theExtensionto retrieve, ornull.- Returns:
- The first
Extensionwith the specified 'Name', ornull. - See Also:
getExtensions()
-
getExtension
Extension getExtension(String name, boolean ignoreCase)
Retrieves the firstExtensionwith the specified 'Name' from the ' Extension' reference list.- Parameters:
name- The 'Name' of theExtensionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
Extensionwith the specified 'Name', ornull. - See Also:
getExtensions()
-
validatePassiveClass
boolean validatePassiveClass(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)A passive class may not own receptions. not self.isActive implies self.ownedReception.isEmpty()
-
createOwnedOperation
Operation createOwnedOperation(String name, MDWEList<String> parameterNames, MDWEList<? extends Type> parameterTypes, Type returnType)
Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this class.
-
isMetaclass
boolean isMetaclass()
Determines whether this class is a metaclass.
-
-