|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Classifier'. A classifier is a namespace whose members can include features. Classifier is an abstract metaclass. A classifier is a type and can own generalizations, thereby making it possible to define generalization relationships to other classifiers. A classifier can specify a generalization hierarchy by referencing its general classifiers. A classifier is a redefinable element, meaning that it is possible to redefine nested classifiers.
The following features are supported:
Feature
Is Abstract
Inherited Member
General
Generalization
Attribute
Redefined Classifier
Substitution
Powertype Extent
Owned Use Case
Use Case
Representation
Occurrence
UML2Package.getClassifier()
Field Summary | |
static String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
SEPARATOR |
Method Summary | |
Set |
allFeatures()
A query based on the following OCL expression:
member->select(oclIsKindOf(Feature))
|
Set |
allParents()
A query based on the following OCL expression:
self.parents()->union(self.parents()->collect(p | p.allParents())
|
boolean |
conformsTo(Classifier other)
A query based on the following OCL expression:
(self=other) or (self.allParents()->includes(other))
|
Generalization |
createGeneralization(Classifier generalClassifier)
Creates a generalization between this classifier and the specified general classifier. |
Generalization |
createGeneralization(EClass eClass)
Creates a Generalization and appends it to the 'Generalization' containment reference list |
CollaborationOccurrence |
createOccurrence(EClass eClass)
Creates a CollaborationOccurrence and appends it to the 'Occurrence' containment reference list |
UseCase |
createOwnedUseCase(EClass eClass)
Creates a UseCase and appends it to the 'Owned Use Case' containment reference list |
Substitution |
createSubstitution(EClass eClass)
Creates a Substitution and appends it to the 'Substitution' containment reference list |
Set |
general()
A query based on the following OCL expression:
self.parents()
|
Property |
getAttribute(String unqualifiedName)
Retrieves the Property with the specified name from the 'Attribute' reference list |
EList |
getAttributes()
Returns the value of the 'Attribute' reference list. |
EList |
getClientDependencies()
|
Feature |
getFeature(String unqualifiedName)
Retrieves the Feature with the specified name from the 'Feature' reference list |
EList |
getFeatures()
Returns the value of the 'Feature' reference list. |
Classifier |
getGeneral(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'General' reference list |
EList |
getGeneralizations()
Returns the value of the 'Generalization' containment reference list. |
EList |
getGenerals()
Returns the value of the 'General' reference list. |
NamedElement |
getInheritedMember(String unqualifiedName)
Retrieves the NamedElement with the specified name from the 'Inherited Member' reference list |
EList |
getInheritedMembers()
Returns the value of the 'Inherited Member' reference list. |
EList |
getMembers()
|
CollaborationOccurrence |
getOccurrence(String unqualifiedName)
Retrieves the CollaborationOccurrence with the specified name from the 'Occurrence' containment reference list |
EList |
getOccurrences()
Returns the value of the 'Occurrence' containment reference list. |
EList |
getOwnedElements()
|
EList |
getOwnedMembers()
|
UseCase |
getOwnedUseCase(String unqualifiedName)
Retrieves the UseCase with the specified name from the 'Owned Use Case' containment reference list |
EList |
getOwnedUseCases()
Returns the value of the 'Owned Use Case' containment reference list. |
GeneralizationSet |
getPowertypeExtent(String unqualifiedName)
Retrieves the GeneralizationSet with the specified name from the 'Powertype Extent' reference list |
EList |
getPowertypeExtents()
Returns the value of the 'Powertype Extent' reference list. |
Classifier |
getRedefinedClassifier(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'Redefined Classifier' reference list |
EList |
getRedefinedClassifiers()
Returns the value of the 'Redefined Classifier' reference list. |
EList |
getRedefinedElements()
|
CollaborationOccurrence |
getRepresentation()
Returns the value of the 'Representation' reference |
Substitution |
getSubstitution(String unqualifiedName)
Retrieves the Substitution with the specified name from the 'Substitution' containment reference list |
EList |
getSubstitutions()
Returns the value of the 'Substitution' containment reference list. |
UseCase |
getUseCase(String unqualifiedName)
Retrieves the UseCase with the specified name from the 'Use Case' reference list |
EList |
getUseCases()
Returns the value of the 'Use Case' reference list. |
Set |
getUsedInterfaces()
Retrieves the interfaces on which this classifier has a usage dependency. |
boolean |
hasVisibilityOf(NamedElement n)
A query based on the following OCL expression:
true
|
Set |
inherit(Set inhs)
A query based on the following OCL expression:
inhs
|
Set |
inheritableMembers(Classifier c)
A query based on the following OCL expression:
member->select(m | c.hasVisibilityOf(m))
|
Set |
inheritedMember()
A query based on the following OCL expression:
self.inherit(self.parents()->collect(p | p.inheritableMembers(self))
|
boolean |
isAbstract()
Returns the value of the 'Is Abstract' attribute. |
boolean |
maySpecializeType(Classifier c)
A query based on the following OCL expression:
self.oclIsKindOf(c.oclType)
|
Set |
parents()
A query based on the following OCL expression:
generalization.general
|
void |
setIsAbstract(boolean value)
Sets the value of the ' Is Abstract ' attribute |
void |
setRepresentation(CollaborationOccurrence value)
Sets the value of the ' Representation ' reference |
boolean |
validateGeneralEqualsParents(DiagnosticChain diagnostics,
Map context)
An invariant constraint based on the following OCL expression:
general = self.parents()
|
boolean |
validateInheritedMember(DiagnosticChain diagnostics,
Map context)
An invariant constraint based on the following OCL expression:
self.inheritedMember->includesAll(self.inherit(self.parents()->collect(p | p.inheritableMembers(self)))
|
boolean |
validateNoCyclesInGeneralization(DiagnosticChain diagnostics,
Map context)
An invariant constraint based on the following OCL expression:
not self.allParents()->includes(self)
|
boolean |
validateSpecializeType(DiagnosticChain diagnostics,
Map context)
An invariant constraint based on the following OCL expression:
self.parents()->forAll(c | self.maySpecializeType(c))
|
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 |
Field Detail |
public static final String copyright
Method Detail |
public boolean isAbstract()
"false"
.
If the meaning of the 'Is Abstract' attribute isn't clear, there really should be more of a description here...
If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships. Default value is false.
setIsAbstract(boolean)
,
UML2Package.getClassifier_IsAbstract()
public void setIsAbstract(boolean value)
Is Abstract
' attribute.
value
- the new value of the 'Is Abstract' attribute.isAbstract()
public EList getFeatures()
Feature
.
It is bidirectional and its opposite is 'Featuring Classifier
'.
If the meaning of the 'Feature' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_Feature()
,
Feature.getFeaturingClassifiers()
public Feature getFeature(String unqualifiedName)
Feature
with the specified name from the 'Feature' reference list.
unqualifiedName
- The unqualified name of the Feature
to retrieve.
Feature
with the specified name, or null
.getFeatures()
public EList getInheritedMembers()
NamedElement
.
If the meaning of the 'Inherited Member' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_InheritedMember()
public NamedElement getInheritedMember(String unqualifiedName)
NamedElement
with the specified name from the 'Inherited Member' reference list.
unqualifiedName
- The unqualified name of the NamedElement
to retrieve.
NamedElement
with the specified name, or null
.getInheritedMembers()
public EList getGenerals()
Classifier
.
If the meaning of the 'General' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_General()
public Classifier getGeneral(String unqualifiedName)
Classifier
with the specified name from the 'General' reference list.
unqualifiedName
- The unqualified name of the Classifier
to retrieve.
Classifier
with the specified name, or null
.getGenerals()
public EList getGeneralizations()
Generalization
.
It is bidirectional and its opposite is 'Specific
'.
If the meaning of the 'Generalization' containment reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_Generalization()
,
Generalization.getSpecific()
public Generalization createGeneralization(EClass eClass)
Generalization
and appends it to the 'Generalization' containment reference list.
eClass
- The Ecore class of the Generalization
to create.
Generalization
.getGeneralizations()
public EList getAttributes()
Property
.
If the meaning of the 'Attribute' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_Attribute()
public Property getAttribute(String unqualifiedName)
Property
with the specified name from the 'Attribute' reference list.
unqualifiedName
- The unqualified name of the Property
to retrieve.
Property
with the specified name, or null
.getAttributes()
public EList getRedefinedClassifiers()
Classifier
.
If the meaning of the 'Redefined Classifier' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_RedefinedClassifier()
public Classifier getRedefinedClassifier(String unqualifiedName)
Classifier
with the specified name from the 'Redefined Classifier' reference list.
unqualifiedName
- The unqualified name of the Classifier
to retrieve.
Classifier
with the specified name, or null
.getRedefinedClassifiers()
public EList getSubstitutions()
Substitution
.
It is bidirectional and its opposite is 'Substituting Classifier
'.
If the meaning of the 'Substitution' containment reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_Substitution()
,
Substitution.getSubstitutingClassifier()
public Substitution getSubstitution(String unqualifiedName)
Substitution
with the specified name from the 'Substitution' containment reference list.
unqualifiedName
- The unqualified name of the Substitution
to retrieve.
Substitution
with the specified name, or null
.getSubstitutions()
public Substitution createSubstitution(EClass eClass)
Substitution
and appends it to the 'Substitution' containment reference list.
eClass
- The Ecore class of the Substitution
to create.
Substitution
.getSubstitutions()
public EList getPowertypeExtents()
GeneralizationSet
.
It is bidirectional and its opposite is 'Powertype
'.
If the meaning of the 'Powertype Extent' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_PowertypeExtent()
,
GeneralizationSet.getPowertype()
public GeneralizationSet getPowertypeExtent(String unqualifiedName)
GeneralizationSet
with the specified name from the 'Powertype Extent' reference list.
unqualifiedName
- The unqualified name of the GeneralizationSet
to retrieve.
GeneralizationSet
with the specified name, or null
.getPowertypeExtents()
public EList getOwnedUseCases()
UseCase
.
If the meaning of the 'Owned Use Case' containment reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_OwnedUseCase()
public UseCase getOwnedUseCase(String unqualifiedName)
UseCase
with the specified name from the 'Owned Use Case' containment reference list.
unqualifiedName
- The unqualified name of the UseCase
to retrieve.
UseCase
with the specified name, or null
.getOwnedUseCases()
public UseCase createOwnedUseCase(EClass eClass)
UseCase
and appends it to the 'Owned Use Case' containment reference list.
eClass
- The Ecore class of the UseCase
to create.
UseCase
.getOwnedUseCases()
public EList getUseCases()
UseCase
.
It is bidirectional and its opposite is 'Subject
'.
If the meaning of the 'Use Case' reference list isn't clear, there really should be more of a description here...
UML2Package.getClassifier_UseCase()
,
UseCase.getSubjects()
public UseCase getUseCase(String unqualifiedName)
UseCase
with the specified name from the 'Use Case' reference list.
unqualifiedName
- The unqualified name of the UseCase
to retrieve.
UseCase
with the specified name, or null
.getUseCases()
public CollaborationOccurrence getRepresentation()
If the meaning of the 'Representation' reference isn't clear, there really should be more of a description here...
References a collaboration occurrence which indicates the collaboration that represents this classifier. (Subsets Classifier.occurrence.)
setRepresentation(CollaborationOccurrence)
,
UML2Package.getClassifier_Representation()
public void setRepresentation(CollaborationOccurrence value)
Representation
' reference.
value
- the new value of the 'Representation' reference.getRepresentation()
public EList getOccurrences()
CollaborationOccurrence
.
If the meaning of the 'Occurrence' containment reference list isn't clear, there really should be more of a description here...
References the collaboration occurrences owned by the classifier. (Subsets Element. ownedElement.)
UML2Package.getClassifier_Occurrence()
public CollaborationOccurrence getOccurrence(String unqualifiedName)
CollaborationOccurrence
with the specified name from the 'Occurrence' containment reference list.
unqualifiedName
- The unqualified name of the CollaborationOccurrence
to retrieve.
CollaborationOccurrence
with the specified name, or null
.getOccurrences()
public CollaborationOccurrence createOccurrence(EClass eClass)
CollaborationOccurrence
and appends it to the 'Occurrence' containment reference list.
eClass
- The Ecore class of the CollaborationOccurrence
to create.
CollaborationOccurrence
.getOccurrences()
public Set allFeatures()
member->select(oclIsKindOf(Feature))
public boolean validateNoCyclesInGeneralization(DiagnosticChain diagnostics, Map context)
not self.allParents()->includes(self)
public boolean validateSpecializeType(DiagnosticChain diagnostics, Map context)
self.parents()->forAll(c | self.maySpecializeType(c))
public boolean validateInheritedMember(DiagnosticChain diagnostics, Map context)
self.inheritedMember->includesAll(self.inherit(self.parents()->collect(p | p.inheritableMembers(self)))
public Set inheritedMember()
self.inherit(self.parents()->collect(p | p.inheritableMembers(self))
public Set parents()
generalization.general
public Set allParents()
self.parents()->union(self.parents()->collect(p | p.allParents())
public Set inheritableMembers(Classifier c)
member->select(m | c.hasVisibilityOf(m))
public boolean hasVisibilityOf(NamedElement n)
true
public Set inherit(Set inhs)
inhs
public boolean maySpecializeType(Classifier c)
self.oclIsKindOf(c.oclType)
public Set general()
self.parents()
public boolean validateGeneralEqualsParents(DiagnosticChain diagnostics, Map context)
general = self.parents()
public boolean conformsTo(Classifier other)
(self=other) or (self.allParents()->includes(other))
public EList getMembers()
getMembers
in interface Namespace
UML2Package.getNamespace_Member()
public EList getOwnedElements()
getOwnedElements
in interface Namespace
public EList getRedefinedElements()
getRedefinedElements
in interface RedefinableElement
public EList getClientDependencies()
getClientDependencies
in interface NamedElement
UML2Package.getNamedElement_ClientDependency()
,
Dependency.getClients()
public EList getOwnedMembers()
getOwnedMembers
in interface Namespace
public Generalization createGeneralization(Classifier generalClassifier)
generalClassifier
- The classifier to which to create a generalization.
IllegalArgumentException
- If this classifier is already a direct or indirect parent
or child of the general classifier.public Set getUsedInterfaces()
|
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 |