|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Stereotype'. A stereotype defines how an existing metaclass may be extended, and enables the use of platform or domain specific terminology or notation in place of, or in addition to, the ones used for the extended metaclass.
The following features are supported:
UMLPackage.getStereotype()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
Extension |
createExtension(Class metaclass,
boolean isRequired)
Creates a(n) (required) extension of the specified metaclass with this stereotype |
Image |
createIcon()
Creates a new Image and appends it to the 'Icon' containment reference list |
Image |
createIcon(String location)
Creates an icon with the specified location for this stereotype |
Image |
createIcon(String format,
String content)
Creates an icon with the specified format and content for this stereotype |
EList |
getAllExtendedMetaclasses()
Retrieves all the metaclasses extended by this stereotype, including the metaclasses extended by its superstereotypes |
EClass |
getDefinition()
Retrieves the current definition (Ecore representation) of this stereotype |
EList |
getExtendedMetaclasses()
Retrieves the metaclasses extended by this stereotype |
EList |
getIcons()
Returns the value of the 'Icon' containment reference list. |
String |
getKeyword()
Retrieves the localized keyword for this stereotype |
String |
getKeyword(boolean localize)
Retrieves the keyword for this stereotype, localized if indicated |
Profile |
getProfile()
Retrieves the profile that owns this stereotype |
boolean |
validateGeneralize(DiagnosticChain diagnostics,
Map context)
A Stereotype may only generalize or specialize another Stereotype. |
boolean |
validateNameNotClash(DiagnosticChain diagnostics,
Map context)
Stereotype names should not clash with keyword names for the extended model element. |
Methods inherited from interface org.eclipse.uml2.uml.Class |
createNestedClassifier, createOwnedOperation, createOwnedOperation, createOwnedReception, getExtension, getExtension, getExtensions, getNestedClassifier, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive, validatePassiveClass |
Methods inherited from interface org.eclipse.uml2.uml.EncapsulatedClassifier |
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts |
Methods inherited from interface org.eclipse.uml2.uml.StructuredClassifier |
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
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.uml.RedefinableElement |
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.uml.Type |
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Method Detail |
public EList getIcons()
Image
.
Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements.
UMLPackage.getStereotype_Icon()
public Image createIcon()
Image
and appends it to the 'Icon' containment reference list.
Image
.Stereotype.getIcons()
public boolean validateNameNotClash(DiagnosticChain diagnostics, Map context)
public boolean validateGeneralize(DiagnosticChain diagnostics, Map context)
public Extension createExtension(Class metaclass, boolean isRequired)
public Profile getProfile()
public String getKeyword()
public String getKeyword(boolean localize)
public EList getExtendedMetaclasses()
public EList getAllExtendedMetaclasses()
public EClass getDefinition()
public Image createIcon(String location)
public Image createIcon(String format, String content)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |