|
||||||||||||
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 java.lang.String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
java.util.Set |
allFeatures()
A query based on the following OCL expression:
member->select(oclIsKindOf(Feature))
|
java.util.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()
Creates a Generalization and appends it to the 'Generalization' containment reference list |
Generalization |
createGeneralization(Classifier generalClassifier)
Creates a generalization between this classifier and the specified general classifier. |
Generalization |
createGeneralization(EClass eClass)
Deprecated. Use #createGeneralization() instead. |
CollaborationOccurrence |
createOccurrence()
Creates a CollaborationOccurrence and appends it to the 'Occurrence' containment reference list |
CollaborationOccurrence |
createOccurrence(EClass eClass)
Deprecated. Use #createOccurrence() instead. |
UseCase |
createOwnedUseCase()
Creates a UseCase and appends it to the 'Owned Use Case' containment reference list |
UseCase |
createOwnedUseCase(EClass eClass)
Deprecated. Use #createOwnedUseCase() instead. |
Substitution |
createSubstitution()
Creates a Substitution and appends it to the 'Substitution' containment reference list |
Substitution |
createSubstitution(EClass eClass)
Deprecated. Use #createSubstitution() instead. |
java.util.Set |
general()
A query based on the following OCL expression:
self.parents()
|
Property |
getAttribute(java.lang.String name)
Retrieves the Property with the specified 'Name' from the 'Attribute' reference list |
EList |
getAttributes()
Returns the value of the 'Attribute' reference list. |
Feature |
getFeature(java.lang.String name)
Retrieves the Feature with the specified 'Name' from the 'Feature' reference list |
EList |
getFeatures()
Returns the value of the 'Feature' reference list. |
Classifier |
getGeneral(java.lang.String name)
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(java.lang.String name)
Retrieves the NamedElement with the specified 'Name' from the 'Inherited Member' reference list |
EList |
getInheritedMembers()
Returns the value of the 'Inherited Member' reference list. |
CollaborationOccurrence |
getOccurrence(java.lang.String name)
Retrieves the CollaborationOccurrence with the specified 'Name' from the 'Occurrence' containment reference list |
EList |
getOccurrences()
Returns the value of the 'Occurrence' containment reference list. |
UseCase |
getOwnedUseCase(java.lang.String name)
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(java.lang.String name)
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(java.lang.String name)
Retrieves the Classifier with the specified 'Name' from the 'Redefined Classifier' reference list |
EList |
getRedefinedClassifiers()
Returns the value of the 'Redefined Classifier' reference list. |
CollaborationOccurrence |
getRepresentation()
Returns the value of the 'Representation' reference |
Substitution |
getSubstitution(java.lang.String name)
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(java.lang.String name)
Retrieves the UseCase with the specified 'Name' from the 'Use Case' reference list |
EList |
getUseCases()
Returns the value of the 'Use Case' reference list. |
java.util.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
|
java.util.Set |
inherit(java.util.Set inhs)
A query based on the following OCL expression:
inhs
|
java.util.Set |
inheritableMembers(Classifier c)
A query based on the following OCL expression:
member->select(m | c.hasVisibilityOf(m))
|
java.util.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)
|
java.util.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,
java.util.Map context)
An invariant constraint based on the following OCL expression:
general = self.parents()
|
boolean |
validateInheritedMember(DiagnosticChain diagnostics,
java.util.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,
java.util.Map context)
An invariant constraint based on the following OCL expression:
not self.allParents()->includes(self)
|
boolean |
validateSpecializeType(DiagnosticChain diagnostics,
java.util.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, 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 |
Field Detail |
public static final java.lang.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(java.lang.String name)
Feature
with the specified 'Name' from the 'Feature' reference list.
name
- The '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(java.lang.String name)
NamedElement
with the specified 'Name' from the 'Inherited Member' reference list.
name
- The '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(java.lang.String name)
Classifier
with the specified 'Name' from the 'General' reference list.
name
- The '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 Generalization createGeneralization()
Generalization
and appends it to the 'Generalization' containment reference list.
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(java.lang.String name)
Property
with the specified 'Name' from the 'Attribute' reference list.
name
- The '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(java.lang.String name)
Classifier
with the specified 'Name' from the 'Redefined Classifier' reference list.
name
- The '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(java.lang.String name)
Substitution
with the specified 'Name' from the 'Substitution' containment reference list.
name
- The '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 Substitution createSubstitution()
Substitution
and appends it to the 'Substitution' containment reference list.
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(java.lang.String name)
GeneralizationSet
with the specified 'Name' from the 'Powertype Extent' reference list.
name
- The '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(java.lang.String name)
UseCase
with the specified 'Name' from the 'Owned Use Case' containment reference list.
name
- The '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 UseCase createOwnedUseCase()
UseCase
and appends it to the 'Owned Use Case' containment reference list.
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(java.lang.String name)
UseCase
with the specified 'Name' from the 'Use Case' reference list.
name
- The '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(java.lang.String name)
CollaborationOccurrence
with the specified 'Name' from the 'Occurrence' containment reference list.
name
- The '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 CollaborationOccurrence createOccurrence()
CollaborationOccurrence
and appends it to the 'Occurrence' containment reference list.
CollaborationOccurrence
.getOccurrences()
public java.util.Set allFeatures()
member->select(oclIsKindOf(Feature))
public boolean validateNoCyclesInGeneralization(DiagnosticChain diagnostics, java.util.Map context)
not self.allParents()->includes(self)
public boolean validateSpecializeType(DiagnosticChain diagnostics, java.util.Map context)
self.parents()->forAll(c | self.maySpecializeType(c))
public boolean validateInheritedMember(DiagnosticChain diagnostics, java.util.Map context)
self.inheritedMember->includesAll(self.inherit(self.parents()->collect(p | p.inheritableMembers(self)))
public java.util.Set inheritedMember()
self.inherit(self.parents()->collect(p | p.inheritableMembers(self))
public java.util.Set parents()
generalization.general
public java.util.Set allParents()
self.parents()->union(self.parents()->collect(p | p.allParents())
public java.util.Set inheritableMembers(Classifier c)
member->select(m | c.hasVisibilityOf(m))
public boolean hasVisibilityOf(NamedElement n)
true
public java.util.Set inherit(java.util.Set inhs)
inhs
public boolean maySpecializeType(Classifier c)
self.oclIsKindOf(c.oclType)
public java.util.Set general()
self.parents()
public boolean validateGeneralEqualsParents(DiagnosticChain diagnostics, java.util.Map context)
general = self.parents()
public boolean conformsTo(Classifier other)
(self=other) or (self.allParents()->includes(other))
public Generalization createGeneralization(Classifier generalClassifier)
generalClassifier
- The classifier to which to create a generalization.
java.lang.IllegalArgumentException
- If this classifier is identical to the general classifier
or is already a direct or indirect parent or child of the
general classifier.public java.util.Set getUsedInterfaces()
|
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 |