|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of the model object 'Class'. Class is a kind of classifier whose features are attributes and operations. Attributes of a class are represented by instances of Property that are owned by the class. Some of these attributes may represent the navigable ends of binary associations.
The following features are supported:
UML2Package.getClass_()| Field Summary | |
static String |
copyright
|
| Fields inherited from interface org.eclipse.uml2.NamedElement |
SEPARATOR |
| Method Summary | |
Classifier |
createNestedClassifier(EClass eClass)
Creates a Classifier and appends it to the 'Nested Classifier' containment reference list |
Operation |
createOwnedOperation(EClass eClass)
Creates a Operation and appends it to the 'Owned Operation' containment reference list |
Reception |
createOwnedReception(EClass eClass)
Creates a Reception and appends it to the 'Owned Reception' containment reference list |
EList |
getAttributes()
|
Extension |
getExtension(String unqualifiedName)
Retrieves the Extension with the specified name from the 'Extension' reference list |
EList |
getExtensions()
Returns the value of the 'Extension' reference list. |
EList |
getFeatures()
|
EList |
getGenerals()
|
Classifier |
getNestedClassifier(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'Nested Classifier' containment reference list |
EList |
getNestedClassifiers()
Returns the value of the 'Nested Classifier' containment reference list. |
EList |
getOwnedAttributes()
|
EList |
getOwnedMembers()
|
Operation |
getOwnedOperation(String unqualifiedName)
Retrieves the Operation with the specified name from the 'Owned Operation' containment reference list |
EList |
getOwnedOperations()
Returns the value of the 'Owned Operation' containment reference list. |
Reception |
getOwnedReception(String unqualifiedName)
Retrieves the Reception with the specified name from the 'Owned Reception' containment reference list |
EList |
getOwnedReceptions()
Returns the value of the 'Owned Reception' containment reference list. |
Class |
getSuperClass(String unqualifiedName)
Retrieves the Class with the specified name from the 'Super Class' reference list |
EList |
getSuperClasses()
Returns the value of the 'Super Class' reference list. |
Set |
inherit(Set inhs)
A query based on the following OCL expression:
inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))
|
boolean |
isAbstract()
|
boolean |
isActive()
Returns the value of the 'Is Active' attribute |
boolean |
isMetaclass()
Determines whether this class is a metaclass. |
void |
setIsAbstract(boolean value)
|
void |
setIsActive(boolean value)
Sets the value of the ' Is Active' attribute |
| Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createNameExpression, getClientDependency, getName, getNameExpression, getNamespace, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
| Methods inherited from interface org.eclipse.uml2.TemplateableElement |
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
| Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
| Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.uml2.Type |
conformsTo, createAssociation, getNamespace, getPackage |
| Methods inherited from interface org.eclipse.uml2.PackageableElement |
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility |
| Methods inherited from interface org.eclipse.uml2.ParameterableElement |
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter |
| Methods inherited from interface org.eclipse.uml2.RedefinableElement |
getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
| Methods inherited from interface org.eclipse.uml2.EncapsulatedClassifier |
createOwnedPort, getOwnedPort, getOwnedPorts |
| Methods inherited from interface org.eclipse.uml2.StructuredClassifier |
createOwnedAttribute, createOwnedConnector, getMembers, getOwnedAttribute, getOwnedConnector, getOwnedConnectors, getPart, getParts, getRole, getRoles |
| Field Detail |
public static final String copyright
| Method Detail |
public boolean isActive()
If the meaning of the 'Is Active' attribute isn't clear, there really should be more of a description here...
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.
setIsActive(boolean),
UML2Package.getClass_IsActive()public void setIsActive(boolean value)
Is Active' attribute.
value - the new value of the 'Is Active' attribute.isActive()public EList getOwnedOperations()
Operation.
It is bidirectional and its opposite is 'Class '.
If the meaning of the 'Owned Operation' containment reference list isn't clear, there really should be more of a description here...
The operations owned by the class. The association is ordered. Subsets Classifier::feature and Namespace::ownedMember.
UML2Package.getClass_OwnedOperation(),
Operation.getClass_()public Operation getOwnedOperation(String unqualifiedName)
Operation with the specified name from the 'Owned Operation' containment reference list.
unqualifiedName - The unqualified name of the Operation to retrieve.
Operation with the specified name, or null.getOwnedOperations()public Operation createOwnedOperation(EClass eClass)
Operation and appends it to the 'Owned Operation' containment reference list.
eClass - The Ecore class of the Operation to create.
Operation.getOwnedOperations()public EList getSuperClasses()
Class.
If the meaning of the 'Super Class' reference list isn't clear, there really should be more of a description here...
This gives the superclasses of a class. It redefines Classifier::general. This is derived.
UML2Package.getClass_SuperClass()public Class getSuperClass(String unqualifiedName)
Class with the specified name from the 'Super Class' reference list.
unqualifiedName - The unqualified name of the Class to retrieve.
Class with the specified name, or null.getSuperClasses()public EList getExtensions()
Extension.
It is bidirectional and its opposite is 'Metaclass'.
If the meaning of the 'Extension' reference list isn't clear, there really should be more of a description here...
UML2Package.getClass_Extension(),
Extension.getMetaclass()public Extension getExtension(String unqualifiedName)
Extension with the specified name from the 'Extension' reference list.
unqualifiedName - The unqualified name of the Extension to retrieve.
Extension with the specified name, or null.getExtensions()public EList getNestedClassifiers()
Classifier.
If the meaning of the 'Nested Classifier' containment reference list isn't clear, there really should be more of a description here...
References all the Classifiers that are defined (nested) within the Class. Subsets Element:: ownedMember.
UML2Package.getClass_NestedClassifier()public Classifier getNestedClassifier(String unqualifiedName)
Classifier with the specified name from the 'Nested Classifier' containment reference list.
unqualifiedName - The unqualified name of the Classifier to retrieve.
Classifier with the specified name, or null.getNestedClassifiers()public Classifier createNestedClassifier(EClass eClass)
Classifier and appends it to the 'Nested Classifier' containment reference list.
eClass - The Ecore class of the Classifier to create.
Classifier.getNestedClassifiers()public EList getOwnedReceptions()
Reception.
If the meaning of the 'Owned Reception' containment reference list isn't clear, there really should be more of a description here...
Receptions that objects of this class are willing to accept. (Specializes Namespace.owned- Member and Classifier.feature.)
UML2Package.getClass_OwnedReception()public Reception getOwnedReception(String unqualifiedName)
Reception with the specified name from the 'Owned Reception' containment reference list.
unqualifiedName - The unqualified name of the Reception to retrieve.
Reception with the specified name, or null.getOwnedReceptions()public Reception createOwnedReception(EClass eClass)
Reception and appends it to the 'Owned Reception' containment reference list.
eClass - The Ecore class of the Reception to create.
Reception.getOwnedReceptions()public Set inherit(Set inhs)
inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))
inherit in interface Classifierpublic boolean isAbstract()
isAbstract in interface ClassifierClassifier.setIsAbstract(boolean),
UML2Package.getClassifier_IsAbstract()public void setIsAbstract(boolean value)
setIsAbstract in interface Classifiervalue - the new value of the 'Is Abstract' attribute.Classifier.isAbstract()public EList getOwnedAttributes()
getOwnedAttributes in interface StructuredClassifierUML2Package.getStructuredClassifier_OwnedAttribute()public EList getGenerals()
getGenerals in interface ClassifierUML2Package.getClassifier_General()public EList getAttributes()
getAttributes in interface ClassifierUML2Package.getClassifier_Attribute()public EList getOwnedMembers()
getOwnedMembers in interface BehavioredClassifierpublic EList getFeatures()
getFeatures in interface ClassifierUML2Package.getClassifier_Feature(),
Feature.getFeaturingClassifiers()public boolean isMetaclass()
true if this class is stereotyped as a metaclass;
false otherwise.
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||