org.eclipse.uml2
Interface Class

All Superinterfaces:
BehavioredClassifier, Classifier, Element, EModelElement, EncapsulatedClassifier, EObject, NamedElement, Namespace, Notifier, PackageableElement, ParameterableElement, RedefinableElement, StructuredClassifier, TemplateableElement, Type
All Known Subinterfaces:
Activity, AssociationClass, Behavior, Component, Device, ExecutionEnvironment, Interaction, Node, ProtocolStateMachine, StateMachine, Stereotype

public interface Class
extends BehavioredClassifier, EncapsulatedClassifier

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:

See Also:
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.BehavioredClassifier
createImplementation, createOwnedBehavior, createOwnedStateMachine, createOwnedTrigger, getClassifierBehavior, getClientDependencies, getImplementation, getImplementations, getImplementedInterfaces, getOwnedBehavior, getOwnedBehaviors, getOwnedElements, getOwnedStateMachine, getOwnedStateMachines, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior
 
Methods inherited from interface org.eclipse.uml2.Classifier
allFeatures, allParents, conformsTo, createGeneralization, createGeneralization, createOccurrence, createOwnedUseCase, createSubstitution, general, getAttribute, getFeature, getGeneral, getGeneralizations, getInheritedMember, getInheritedMembers, getMembers, getOccurrence, getOccurrences, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifiers, getRedefinedElements, getRepresentation, getSubstitution, getSubstitutions, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inheritableMembers, inheritedMember, maySpecializeType, parents, setRepresentation, validateGeneralEqualsParents, validateInheritedMember, validateNoCyclesInGeneralization, validateSpecializeType
 
Methods inherited from interface org.eclipse.uml2.Namespace
createElementImport, createOwnedRule, createPackageImport, excludeCollisions, getElementImports, getImportedMember, getImportedMembers, getImportedPackages, getMember, getNamesOfMember, getOwnedRule, getOwnedRules, getPackageImports, importedMember, importElement, importMembers, importPackage, membersAreDistinguishable, validateImportedMemberDerived, validateMembersAreDistinguishable
 
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

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

isActive

public boolean isActive()
Returns the value of the 'Is Active' attribute.

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.

Returns:
the value of the 'Is Active' attribute.
See Also:
setIsActive(boolean), UML2Package.getClass_IsActive()

setIsActive

public 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()

getOwnedOperations

public EList getOwnedOperations()
Returns the value of the 'Owned Operation' containment reference list. The list contents are of type 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.

Returns:
the value of the 'Owned Operation' containment reference list.
See Also:
UML2Package.getClass_OwnedOperation(), Operation.getClass_()

getOwnedOperation

public Operation getOwnedOperation(String unqualifiedName)
Retrieves the Operation with the specified name from the 'Owned Operation' containment reference list.

Parameters:
unqualifiedName - The unqualified name of the Operation to retrieve.
Returns:
The Operation with the specified name, or null.
See Also:
getOwnedOperations()

createOwnedOperation

public Operation createOwnedOperation(EClass eClass)
Creates a Operation and appends it to the 'Owned Operation' containment reference list.

Parameters:
eClass - The Ecore class of the Operation to create.
Returns:
The new Operation.
See Also:
getOwnedOperations()

getSuperClasses

public EList getSuperClasses()
Returns the value of the 'Super Class' reference list. The list contents are of type 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.

Returns:
the value of the 'Super Class' reference list.
See Also:
UML2Package.getClass_SuperClass()

getSuperClass

public Class getSuperClass(String unqualifiedName)
Retrieves the Class with the specified name from the 'Super Class' reference list.

Parameters:
unqualifiedName - The unqualified name of the Class to retrieve.
Returns:
The Class with the specified name, or null.
See Also:
getSuperClasses()

getExtensions

public EList getExtensions()
Returns the value of the 'Extension' reference list. The list contents are of type 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...

Returns:
the value of the 'Extension' reference list.
See Also:
UML2Package.getClass_Extension(), Extension.getMetaclass()

getExtension

public Extension getExtension(String unqualifiedName)
Retrieves the Extension with the specified name from the 'Extension' reference list.

Parameters:
unqualifiedName - The unqualified name of the Extension to retrieve.
Returns:
The Extension with the specified name, or null.
See Also:
getExtensions()

getNestedClassifiers

public EList getNestedClassifiers()
Returns the value of the 'Nested Classifier' containment reference list. The list contents are of type 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.

Returns:
the value of the 'Nested Classifier' containment reference list.
See Also:
UML2Package.getClass_NestedClassifier()

getNestedClassifier

public Classifier getNestedClassifier(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'Nested Classifier' containment reference list.

Parameters:
unqualifiedName - The unqualified name of the Classifier to retrieve.
Returns:
The Classifier with the specified name, or null.
See Also:
getNestedClassifiers()

createNestedClassifier

public Classifier createNestedClassifier(EClass eClass)
Creates a Classifier and appends it to the 'Nested Classifier' containment reference list.

Parameters:
eClass - The Ecore class of the Classifier to create.
Returns:
The new Classifier.
See Also:
getNestedClassifiers()

getOwnedReceptions

public EList getOwnedReceptions()
Returns the value of the 'Owned Reception' containment reference list. The list contents are of type 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.)

Returns:
the value of the 'Owned Reception' containment reference list.
See Also:
UML2Package.getClass_OwnedReception()

getOwnedReception

public Reception getOwnedReception(String unqualifiedName)
Retrieves the Reception with the specified name from the 'Owned Reception' containment reference list.

Parameters:
unqualifiedName - The unqualified name of the Reception to retrieve.
Returns:
The Reception with the specified name, or null.
See Also:
getOwnedReceptions()

createOwnedReception

public Reception createOwnedReception(EClass eClass)
Creates a Reception and appends it to the 'Owned Reception' containment reference list.

Parameters:
eClass - The Ecore class of the Reception to create.
Returns:
The new Reception.
See Also:
getOwnedReceptions()

inherit

public Set inherit(Set inhs)
A query based on the following OCL expression: inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))

Specified by:
inherit in interface Classifier

isAbstract

public boolean isAbstract()

Specified by:
isAbstract in interface Classifier
Returns:
the value of the 'Is Abstract' attribute.
See Also:
Classifier.setIsAbstract(boolean), UML2Package.getClassifier_IsAbstract()

setIsAbstract

public void setIsAbstract(boolean value)

Specified by:
setIsAbstract in interface Classifier
Parameters:
value - the new value of the 'Is Abstract' attribute.
See Also:
Classifier.isAbstract()

getOwnedAttributes

public EList getOwnedAttributes()

Specified by:
getOwnedAttributes in interface StructuredClassifier
Returns:
the value of the 'Owned Attribute' containment reference list.
See Also:
UML2Package.getStructuredClassifier_OwnedAttribute()

getGenerals

public EList getGenerals()

Specified by:
getGenerals in interface Classifier
Returns:
the value of the 'General' reference list.
See Also:
UML2Package.getClassifier_General()

getAttributes

public EList getAttributes()

Specified by:
getAttributes in interface Classifier
Returns:
the value of the 'Attribute' reference list.
See Also:
UML2Package.getClassifier_Attribute()

getOwnedMembers

public EList getOwnedMembers()

Specified by:
getOwnedMembers in interface BehavioredClassifier

getFeatures

public EList getFeatures()

Specified by:
getFeatures in interface Classifier
Returns:
the value of the 'Feature' reference list.
See Also:
UML2Package.getClassifier_Feature(), Feature.getFeaturingClassifiers()

isMetaclass

public boolean isMetaclass()
Determines whether this class is a metaclass.

Returns:
true if this class is stereotyped as a metaclass; false otherwise.

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.