|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of the model object 'Structured Classifier'. A structured classifier is an abstract metaclass that represents any classifier whose behavior can be fully or partly described by the collaboration of owned or referenced instances.
The following features are supported:
UMLPackage.getStructuredClassifier()| Field Summary |
| Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
| Method Summary | |
Property |
createOwnedAttribute(String name,
Type type)
Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list |
Property |
createOwnedAttribute(String name,
Type type,
EClass eClass)
Creates a new Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list |
Property |
createOwnedAttribute(String name,
Type type,
int lower,
int upper)
Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this structured classifier |
Connector |
createOwnedConnector(String name)
Creates a new Connector, with the specified 'Name', and appends it to the 'Owned Connector' containment reference list |
Property |
getOwnedAttribute(String name,
Type type)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list |
Property |
getOwnedAttribute(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list |
EList |
getOwnedAttributes()
Returns the value of the 'Owned Attribute' containment reference list. |
Connector |
getOwnedConnector(String name)
Retrieves the first Connector with the specified 'Name' from the 'Owned Connector' containment reference list |
Connector |
getOwnedConnector(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Connector with the specified 'Name' from the 'Owned Connector' containment reference list |
EList |
getOwnedConnectors()
Returns the value of the 'Owned Connector' containment reference list. |
Property |
getPart(String name,
Type type)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Part' reference list |
Property |
getPart(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Retrieves the first Property with the specified 'Name', and 'Type' from the 'Part' reference list |
EList |
getParts()
Returns the value of the 'Part' reference list. |
ConnectableElement |
getRole(String name,
Type type)
Retrieves the first ConnectableElement with the specified 'Name', and 'Type' from the 'Role' reference list |
ConnectableElement |
getRole(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Retrieves the first ConnectableElement with the specified 'Name', and 'Type' from the 'Role' reference list |
EList |
getRoles()
Returns the value of the 'Role' reference list. |
boolean |
validateMultiplicities(DiagnosticChain diagnostics,
Map context)
The multiplicities on connected elements must be consistent. |
| 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 getOwnedAttributes()
Property.
References the properties owned by the classifier.
UMLPackage.getStructuredClassifier_OwnedAttribute()
public Property createOwnedAttribute(String name,
Type type,
EClass eClass)
Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.
name - The 'Name' for the new Property, or null.type - The 'Type' for the new Property, or null.eClass - The Ecore class of the Property to create.
Property.StructuredClassifier.getOwnedAttributes()
public Property createOwnedAttribute(String name,
Type type)
Property, with the specified 'Name', and 'Type', and appends it to the 'Owned Attribute' containment reference list.
name - The 'Name' for the new Property, or null.type - The 'Type' for the new Property, or null.
Property.StructuredClassifier.getOwnedAttributes()
public Property getOwnedAttribute(String name,
Type type)
Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.
name - The 'Name' of the Property to retrieve, or null.type - The 'Type' of the Property to retrieve, or null.
Property with the specified 'Name', and 'Type', or null.StructuredClassifier.getOwnedAttributes()
public Property getOwnedAttribute(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Property with the specified 'Name', and 'Type' from the 'Owned Attribute' containment reference list.
name - The 'Name' of the Property to retrieve, or null.type - The 'Type' of the Property to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.eClass - The Ecore class of the Property to retrieve, or null.createOnDemand - Whether to create a Property on demand if not found.
Property with the specified 'Name', and 'Type', or null.StructuredClassifier.getOwnedAttributes()public EList getParts()
Property.
References the properties specifying instances that the classifier owns by composition. This association is derived, selecting those owned properties where isComposite is true.
UMLPackage.getStructuredClassifier_Part()
public Property getPart(String name,
Type type)
Property with the specified 'Name', and 'Type' from the 'Part' reference list.
name - The 'Name' of the Property to retrieve, or null.type - The 'Type' of the Property to retrieve, or null.
Property with the specified 'Name', and 'Type', or null.StructuredClassifier.getParts()
public Property getPart(String name,
Type type,
boolean ignoreCase,
EClass eClass)
Property with the specified 'Name', and 'Type' from the 'Part' reference list.
name - The 'Name' of the Property to retrieve, or null.type - The 'Type' of the Property to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.eClass - The Ecore class of the Property to retrieve, or null.
Property with the specified 'Name', and 'Type', or null.StructuredClassifier.getParts()public EList getRoles()
ConnectableElement.
References the roles that instances may play in this classifier.
UMLPackage.getStructuredClassifier_Role()
public ConnectableElement getRole(String name,
Type type)
ConnectableElement with the specified 'Name', and 'Type' from the 'Role' reference list.
name - The 'Name' of the ConnectableElement to retrieve, or null.type - The 'Type' of the ConnectableElement to retrieve, or null.
ConnectableElement with the specified 'Name', and 'Type', or null.StructuredClassifier.getRoles()
public ConnectableElement getRole(String name,
Type type,
boolean ignoreCase,
EClass eClass)
ConnectableElement with the specified 'Name', and 'Type' from the 'Role' reference list.
name - The 'Name' of the ConnectableElement to retrieve, or null.type - The 'Type' of the ConnectableElement to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.eClass - The Ecore class of the ConnectableElement to retrieve, or null.
ConnectableElement with the specified 'Name', and 'Type', or null.StructuredClassifier.getRoles()public EList getOwnedConnectors()
Connector.
References the connectors owned by the classifier.
UMLPackage.getStructuredClassifier_OwnedConnector()public Connector createOwnedConnector(String name)
Connector, with the specified 'Name', and appends it to the 'Owned Connector' containment reference list.
name - The 'Name' for the new Connector, or null.
Connector.StructuredClassifier.getOwnedConnectors()public Connector getOwnedConnector(String name)
Connector with the specified 'Name' from the 'Owned Connector' containment reference list.
name - The 'Name' of the Connector to retrieve, or null.
Connector with the specified 'Name', or null.StructuredClassifier.getOwnedConnectors()
public Connector getOwnedConnector(String name,
boolean ignoreCase,
boolean createOnDemand)
Connector with the specified 'Name' from the 'Owned Connector' containment reference list.
name - The 'Name' of the Connector to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.createOnDemand - Whether to create a Connector on demand if not found.
Connector with the specified 'Name', or null.StructuredClassifier.getOwnedConnectors()
public boolean validateMultiplicities(DiagnosticChain diagnostics,
Map context)
public Property createOwnedAttribute(String name,
Type type,
int lower,
int upper)
|
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 | ||||||||||