org.eclipse.uml2
Interface Stereotype

All Superinterfaces:
BehavioredClassifier, Class, Classifier, Element, EModelElement, EncapsulatedClassifier, EObject, NamedElement, Namespace, Notifier, PackageableElement, ParameterableElement, RedefinableElement, StructuredClassifier, TemplateableElement, Type

public interface Stereotype
extends Class

A representation of the model object 'Stereotype'.

See Also:
UML2Package.getStereotype()

Field Summary
static java.lang.String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 Extension createExtension(Class metaclass, boolean required)
          Creates a(n) (required) extension of the specified metaclass with this stereotype.
 Extension createExtension(EClass eClass, boolean required)
          Deprecated. Use createExtension(org.eclipse.uml2.Class, boolean) instead.
 java.util.Set getAllExtendedEClasses()
          Deprecated. Use getAllExtendedMetaclasses() instead.
 java.util.Set getAllExtendedMetaclasses()
          Retrieves the metaclasses extended by this stereotype, including the metaclasses extended by its super(stereo)types.
 java.util.Set getExtendedMetaclasses()
          Retrieves the metaclasses extended by this stereotype.
 java.lang.String getKeyword()
          Retrieves the localized keyword for this stereotype.
 java.lang.String getKeyword(boolean localize)
          Retrieves the keyword for this stereotype, localized if indicated.
 Profile getProfile()
          Retrieves the profile that owns this stereotype.
 
Methods inherited from interface org.eclipse.uml2.Class
createNestedClassifier, createOwnedAttribute, createOwnedOperation, createOwnedOperation, createOwnedOperation, createOwnedReception, createOwnedReception, getExtension, getExtensions, getNestedClassifier, getNestedClassifiers, getOwnedOperation, getOwnedOperations, getOwnedReception, getOwnedReceptions, getSuperClass, getSuperClasses, isActive, isMetaclass, setIsActive
 
Methods inherited from interface org.eclipse.uml2.BehavioredClassifier
createImplementation, createImplementation, createImplementation, createOwnedBehavior, createOwnedStateMachine, createOwnedStateMachine, createOwnedTrigger, getAllImplementedInterfaces, getClassifierBehavior, getImplementation, getImplementations, getImplementedInterfaces, getOwnedBehavior, getOwnedBehaviors, getOwnedStateMachine, getOwnedStateMachines, getOwnedTrigger, getOwnedTriggers, setClassifierBehavior
 
Methods inherited from interface org.eclipse.uml2.Classifier
allFeatures, allParents, conformsTo, createGeneralization, createGeneralization, createGeneralization, createOccurrence, createOccurrence, createOwnedUseCase, createOwnedUseCase, createSubstitution, createSubstitution, general, getAttribute, getAttributes, getFeature, getFeatures, getGeneral, getGeneralizations, getGenerals, getInheritedMember, getInheritedMembers, getOccurrence, getOccurrences, getOwnedUseCase, getOwnedUseCases, getPowertypeExtent, getPowertypeExtents, getRedefinedClassifier, getRedefinedClassifiers, getRepresentation, getSubstitution, getSubstitutions, getUseCase, getUseCases, getUsedInterfaces, hasVisibilityOf, inherit, inheritableMembers, inheritedMember, isAbstract, maySpecializeType, parents, setIsAbstract, setRepresentation, validateGeneralEqualsParents, validateInheritedMember, validateNoCyclesInGeneralization, validateSpecializeType
 
Methods inherited from interface org.eclipse.uml2.Namespace
createElementImport, createElementImport, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImports, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMembers, getNamesOfMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRules, getPackageImports, importedMember, importElement, importMembers, importPackage, membersAreDistinguishable, validateImportedMemberDerived, validateMembersAreDistinguishable
 
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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

createExtension

public Extension createExtension(EClass eClass,
                                 boolean required)
Deprecated. Use createExtension(org.eclipse.uml2.Class, boolean) instead.

Creates a(n) (required) extension of the specified Ecore class with this stereotype.

Parameters:
eClass - The Ecore class to be extended.
required - Whether the extension should be required.
Returns:
The new extension.
Throws:
java.lang.IllegalArgumentException - If this stereotype already extends (a subclass of) the Ecore class.

getAllExtendedEClasses

public java.util.Set getAllExtendedEClasses()
Deprecated. Use getAllExtendedMetaclasses() instead.

Retrieves the set of Ecore classes extended by this stereotype, including the Ecore classes extended by its super(stereo)types.

Returns:
The Ecore classes extended by this stereotype and its super(stereo)types.

getProfile

public Profile getProfile()
Retrieves the profile that owns this stereotype.

Returns:
The profile that owns this stereotype.

getKeyword

public java.lang.String getKeyword()
Retrieves the localized keyword for this stereotype.

Returns:
The localized keyword for this stereotype.

getKeyword

public java.lang.String getKeyword(boolean localize)
Retrieves the keyword for this stereotype, localized if indicated.

Parameters:
localize - Whether the keyword should be localized.
Returns:
The (localized) keyword for this stereotype.

createExtension

public Extension createExtension(Class metaclass,
                                 boolean required)
Creates a(n) (required) extension of the specified metaclass with this stereotype.

Parameters:
metaclass - The metaclass to be extended.
required - Whether the extension should be required.
Returns:
The new extension.
Throws:
java.lang.IllegalArgumentException - If this stereotype or any of its super(stereo)types already extends the metaclass.

getExtendedMetaclasses

public java.util.Set getExtendedMetaclasses()
Retrieves the metaclasses extended by this stereotype.

Returns:
The metaclasses extended by this stereotype.

getAllExtendedMetaclasses

public java.util.Set getAllExtendedMetaclasses()
Retrieves the metaclasses extended by this stereotype, including the metaclasses extended by its super(stereo)types.

Returns:
The metaclasses extended by this stereotype and its super(stereo)types.

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