org.eclipse.uml2
Interface Profile

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Namespace, Notifier, Package, PackageableElement, ParameterableElement, TemplateableElement

public interface Profile
extends Package

A representation of the model object 'Profile'.

The following features are supported:

See Also:
UML2Package.getProfile()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 void define()
          Defines this profile by (re)creating Ecore representations of its current contents and incrementing its version.
 EList getElementImports()
           
 EList getMetaclassReferences()
          Returns the value of the 'Metaclass Reference' reference list.
 EList getMetamodelReferences()
          Returns the value of the 'Metamodel Reference' reference list.
 Stereotype getOwnedStereotype(String unqualifiedName)
          Retrieves the Stereotype with the specified name from the 'Owned Stereotype' reference list
 EList getOwnedStereotypes()
          Returns the value of the 'Owned Stereotype' reference list.
 EList getPackageImports()
           
 Set getReferencedMetaclasses()
          Retrieves the set of metaclasses referenced by this profile.
 Set getReferencedMetamodels()
          Retrieves the set of metamodels referenced by this profile.
 String getVersion()
          Retrieves the version of this profile.
 boolean isDefined()
          Determines whether this profile is defined.
 void referenceMetaclass(Class class_)
          References the specified metaclass in this profile with private visibility.
 void referenceMetamodel(Model model)
          References the specified metamodel in this profile with private visibility.
 
Methods inherited from interface org.eclipse.uml2.Package
apply, createOwnedMember, createPackageExtension, createPackageMerge, getAllAppliedProfiles, getAppliedProfiles, getAppliedVersion, getNamespace, getNestedPackage, getNestedPackages, getNestingPackage, getOwnedElements, getOwnedMember, getOwnedMembers, getOwnedType, getOwnedTypes, getPackageExtensions, getPackageMerges, isApplied, makesVisible, mustBeOwned, unapply, validateElementsPublicOrPrivate, visibleMembers
 
Methods inherited from interface org.eclipse.uml2.Namespace
createElementImport, createOwnedRule, createPackageImport, excludeCollisions, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMembers, getNamesOfMember, getOwnedRule, getOwnedRules, importedMember, importElement, importMembers, importPackage, membersAreDistinguishable, validateImportedMemberDerived, validateMembersAreDistinguishable
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, 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, 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.PackageableElement
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility
 
Methods inherited from interface org.eclipse.uml2.ParameterableElement
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getOwnedStereotypes

public EList getOwnedStereotypes()
Returns the value of the 'Owned Stereotype' reference list. The list contents are of type Stereotype.

If the meaning of the 'Owned Stereotype' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Owned Stereotype' reference list.
See Also:
UML2Package.getProfile_OwnedStereotype()

getOwnedStereotype

public Stereotype getOwnedStereotype(String unqualifiedName)
Retrieves the Stereotype with the specified name from the 'Owned Stereotype' reference list.

Parameters:
unqualifiedName - The unqualified name of the Stereotype to retrieve.
Returns:
The Stereotype with the specified name, or null.
See Also:
getOwnedStereotypes()

getMetaclassReferences

public EList getMetaclassReferences()
Returns the value of the 'Metaclass Reference' reference list. The list contents are of type ElementImport.

If the meaning of the 'Metaclass Reference' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Metaclass Reference' reference list.
See Also:
UML2Package.getProfile_MetaclassReference()

getMetamodelReferences

public EList getMetamodelReferences()
Returns the value of the 'Metamodel Reference' reference list. The list contents are of type PackageImport.

If the meaning of the 'Metamodel Reference' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Metamodel Reference' reference list.
See Also:
UML2Package.getProfile_MetamodelReference()

getElementImports

public EList getElementImports()

Specified by:
getElementImports in interface Namespace
Returns:
the value of the 'Element Import' containment reference list.
See Also:
UML2Package.getNamespace_ElementImport(), ElementImport.getImportingNamespace()

getPackageImports

public EList getPackageImports()

Specified by:
getPackageImports in interface Package

isDefined

public boolean isDefined()
Determines whether this profile is defined.

Returns:
true if this profile is defined; false otherwise.

getVersion

public String getVersion()
Retrieves the version of this profile.

Returns:
The version of this profile, or null if undefined.

define

public void define()
Defines this profile by (re)creating Ecore representations of its current contents and incrementing its version.

Throws:
IllegalArgumentException - If this profile has no name.

getReferencedMetaclasses

public Set getReferencedMetaclasses()
Retrieves the set of metaclasses referenced by this profile.

Returns:
The metaclasses referenced by this profile.

referenceMetaclass

public void referenceMetaclass(Class class_)
References the specified metaclass in this profile with private visibility.

Parameters:
class_ - The metaclass to reference.
Throws:
IllegalArgumentException - If this profile already references the metaclass.

getReferencedMetamodels

public Set getReferencedMetamodels()
Retrieves the set of metamodels referenced by this profile.

Returns:
The metamodels referenced by this profile.

referenceMetamodel

public void referenceMetamodel(Model model)
References the specified metamodel in this profile with private visibility.

Parameters:
model - The metamodel to reference.
Throws:
IllegalArgumentException - If this profile already references the metamodel.

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