|
||||||||||||
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 java.lang.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 |
Property |
createOwnedAttribute(java.lang.String name,
Type type,
int lowerBound,
int upperBound)
Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this class. |
Operation |
createOwnedOperation()
Creates a Operation and appends it to the 'Owned Operation' containment reference list |
Operation |
createOwnedOperation(EClass eClass)
Deprecated. Use #createOwnedOperation() instead. |
Operation |
createOwnedOperation(java.lang.String name,
Type returnType,
java.lang.String[] parameterNames,
Type[] parameterTypes)
Creates an operation with the specified name, return type, parameter names, and parameter types as an owned operation of this class. |
Reception |
createOwnedReception()
Creates a Reception and appends it to the 'Owned Reception' containment reference list |
Reception |
createOwnedReception(EClass eClass)
Deprecated. Use #createOwnedReception() instead. |
Extension |
getExtension(java.lang.String name)
Retrieves the Extension with the specified 'Name' from the 'Extension' reference list |
EList |
getExtensions()
Returns the value of the 'Extension' reference list. |
Classifier |
getNestedClassifier(java.lang.String name)
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. |
Operation |
getOwnedOperation(java.lang.String name)
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(java.lang.String name)
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(java.lang.String name)
Retrieves the Class with the specified 'Name' from the 'Super Class' reference list |
EList |
getSuperClasses()
Returns the value of the 'Super Class' reference list. |
boolean |
isActive()
Returns the value of the 'Is Active' attribute |
boolean |
isMetaclass()
Determines whether this class is a metaclass. |
void |
setIsActive(boolean value)
Sets the value of the ' Is Active ' attribute |
Methods inherited from interface org.eclipse.uml2.NamedElement |
---|
allNamespaces, createDependency, createNameExpression, createNameExpression, getClientDependencies, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.Element |
---|
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getValue, hasKeyword, hasValue, 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, getPackage |
Methods inherited from interface org.eclipse.uml2.PackageableElement |
---|
getPackageableElement_visibility, setPackageableElement_visibility |
Methods inherited from interface org.eclipse.uml2.ParameterableElement |
---|
getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.uml2.RedefinableElement |
---|
getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.EncapsulatedClassifier |
---|
createOwnedPort, createOwnedPort, getOwnedPort, getOwnedPorts |
Methods inherited from interface org.eclipse.uml2.StructuredClassifier |
---|
createOwnedAttribute, createOwnedAttribute, createOwnedConnector, createOwnedConnector, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnectors, getPart, getParts, getRole, getRoles |
Field Detail |
public static final java.lang.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(java.lang.String name)
Operation
with the specified 'Name' from the 'Owned Operation' containment reference list.
name
- The '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 Operation createOwnedOperation()
Operation
and appends it to the 'Owned Operation' containment reference list.
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(java.lang.String name)
Class
with the specified 'Name' from the 'Super Class' reference list.
name
- The '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(java.lang.String name)
Extension
with the specified 'Name' from the 'Extension' reference list.
name
- The '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(java.lang.String name)
Classifier
with the specified 'Name' from the 'Nested Classifier' containment reference list.
name
- The '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(java.lang.String name)
Reception
with the specified 'Name' from the 'Owned Reception' containment reference list.
name
- The '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 Reception createOwnedReception()
Reception
and appends it to the 'Owned Reception' containment reference list.
Reception
.getOwnedReceptions()
public boolean isMetaclass()
true
if this class is stereotyped as a metaclass;
false
otherwise.public Property createOwnedAttribute(java.lang.String name, Type type, int lowerBound, int upperBound)
name
- The name for the owned attribute.type
- The type for the owned attribute.lowerBound
- The lower bound for the owned attribute.upperBound
- The upper bound for the owned attribute.
java.lang.IllegalArgumentException
- If either of the bounds is invalid.public Operation createOwnedOperation(java.lang.String name, Type returnType, java.lang.String[] parameterNames, Type[] parameterTypes)
name
- The name for the owned operation.returnType
- The return type for the owned operation, or null
.parameterNames
- The names of the owned operation's parameters, or
null
.parameterTypes
- The types of the owned operation's parameters, or
null
.
java.lang.IllegalArgumentException
- If the number of parameter names does not match the number
of parameter types.
|
Copyright 2003, 2005 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |