|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Data Type'. DataType defines a kind of classifier in which operations are all pure functions (i.e., they can return data values but they cannot change data values, because they have no identity). For example, an �add� operation on a number with another number as an argument yields a third number as a result; the target and argument are unchanged. A DataType may also contain attributes to support the modeling of structured data types.
The following features are supported:
UML2Package.getDataType()
Field Summary | |
static String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
SEPARATOR |
Method Summary | |
Property |
createOwnedAttribute(EClass eClass)
Creates a Property and appends it to the 'Owned Attribute' containment reference list |
Operation |
createOwnedOperation(EClass eClass)
Creates a Operation and appends it to the 'Owned Operation' containment reference list |
EList |
getAttributes()
|
EList |
getFeatures()
|
Property |
getOwnedAttribute(String unqualifiedName)
Retrieves the Property with the specified name from the 'Owned Attribute' containment reference list |
EList |
getOwnedAttributes()
Returns the value of the 'Owned Attribute' containment reference list. |
EList |
getOwnedMembers()
|
Operation |
getOwnedOperation(String unqualifiedName)
Retrieves the Operation with the specified name from the 'Owned Operation' containment reference list |
EList |
getOwnedOperations()
Returns the value of the 'Owned Operation' containment reference list. |
Set |
inherit(Set inhs)
A query based on the following OCL expression:
inhs->excluding(inh |
ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))
|
Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createNameExpression, getClientDependency, getName, getNameExpression, getNamespace, 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, 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, getNamespace, getPackage |
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 |
Methods inherited from interface org.eclipse.uml2.RedefinableElement |
getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Field Detail |
public static final String copyright
Method Detail |
public EList getOwnedAttributes()
Property
.
It is bidirectional and its opposite is 'Datatype
'.
If the meaning of the 'Owned Attribute' containment reference list isn't clear, there really should be more of a description here...
The Attributes owned by the DataType. Subsets Classifier::attribute and Element:: ownedMember.
UML2Package.getDataType_OwnedAttribute()
,
Property.getDatatype()
public Property getOwnedAttribute(String unqualifiedName)
Property
with the specified name from the 'Owned Attribute' containment reference list.
unqualifiedName
- The unqualified name of the Property
to retrieve.
Property
with the specified name, or null
.getOwnedAttributes()
public Property createOwnedAttribute(EClass eClass)
Property
and appends it to the 'Owned Attribute' containment reference list.
eClass
- The Ecore class of the Property
to create.
Property
.getOwnedAttributes()
public EList getOwnedOperations()
Operation
.
It is bidirectional and its opposite is 'Datatype
'.
If the meaning of the 'Owned Operation' containment reference list isn't clear, there really should be more of a description here...
The Operations owned by the DataType. Subsets Classifier::feature and Element:: ownedMember.
UML2Package.getDataType_OwnedOperation()
,
Operation.getDatatype()
public Operation getOwnedOperation(String unqualifiedName)
Operation
with the specified name from the 'Owned Operation' containment reference list.
unqualifiedName
- The unqualified name of the Operation
to retrieve.
Operation
with the specified name, or null
.getOwnedOperations()
public Operation createOwnedOperation(EClass eClass)
Operation
and appends it to the 'Owned Operation' containment reference list.
eClass
- The Ecore class of the Operation
to create.
Operation
.getOwnedOperations()
public Set inherit(Set inhs)
inhs->excluding(inh |
ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))
inherit
in interface Classifier
public EList getOwnedMembers()
getOwnedMembers
in interface Classifier
public EList getAttributes()
getAttributes
in interface Classifier
UML2Package.getClassifier_Attribute()
public EList getFeatures()
getFeatures
in interface Classifier
UML2Package.getClassifier_Feature()
,
Feature.getFeaturingClassifiers()
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |