|
org.eclipse.uml2.uml
Interface DataType
-
All Superinterfaces:
-
Classifier,
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject,
NamedElement,
Namespace, org.eclipse.emf.common.notify.Notifier,
PackageableElement,
ParameterableElement,
RedefinableElement,
TemplateableElement,
Type
-
All Known Subinterfaces:
-
Enumeration,
PrimitiveType
-
public interface DataType
- extends
Classifier
A representation of the model object '
Data Type
'.
A data type is a type whose instances are identified only by their value. A data type may contain attributes to support the modeling of structured data types.
The following features are supported:
-
See Also:
-
UMLPackage.getDataType()
Method Summary
|
Property
|
createOwnedAttribute
(java.lang.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
(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new
Property , with the specified '
Name
', and '
Type
', and appends it to the '
Owned Attribute
' containment reference list |
Property
|
createOwnedAttribute
(java.lang.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 data type. |
Operation
|
createOwnedOperation
(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes)
Creates a new
Operation , with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
', and appends it to the '
Owned Operation
' containment reference list |
Operation
|
createOwnedOperation
(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<
Type> parameterTypes,
Type returnType)
Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this data type. |
Property
|
getOwnedAttribute
(java.lang.String name,
Type type)
Retrieves the first
Property with the specified '
Name
', and '
Type
' from the '
Owned Attribute
' containment reference list |
Property
|
getOwnedAttribute
(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first
Property with the specified '
Name
', and '
Type
' from the '
Owned Attribute
' containment reference list |
org.eclipse.emf.common.util.EList<
Property>
|
getOwnedAttributes
()
Returns the value of the '
Owned Attribute
' containment reference list. |
Operation
|
getOwnedOperation
(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes)
Retrieves the first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
' from the '
Owned Operation
' containment reference list |
Operation
|
getOwnedOperation
(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
' from the '
Owned Operation
' containment reference list |
org.eclipse.emf.common.util.EList<
Operation>
|
getOwnedOperations
()
Returns the value of the '
Owned Operation
' containment reference list. |
Methods inherited from interface org.eclipse.uml2.uml.
Classifier
|
allFeatures,
allParents,
conformsTo,
createCollaborationUse,
createGeneralization,
createOwnedUseCase,
createRepresentation,
createSubstitution,
getAllAttributes,
getAllOperations,
getAllUsedInterfaces,
getAttribute,
getAttribute,
getAttributes,
getCollaborationUse,
getCollaborationUse,
getCollaborationUses,
getFeature,
getFeature,
getFeatures,
getGeneral,
getGeneral,
getGeneralization,
getGeneralization,
getGeneralizations,
getGenerals,
getInheritedMember,
getInheritedMember,
getInheritedMembers,
getOperation,
getOperation,
getOperations,
getOwnedUseCase,
getOwnedUseCase,
getOwnedUseCases,
getPowertypeExtent,
getPowertypeExtent,
getPowertypeExtents,
getRedefinedClassifier,
getRedefinedClassifier,
getRedefinedClassifiers,
getRepresentation,
getSubstitution,
getSubstitution,
getSubstitutions,
getUseCase,
getUseCase,
getUseCases,
getUsedInterfaces,
hasVisibilityOf,
inherit,
inheritableMembers,
isAbstract,
maySpecializeType,
parents,
setIsAbstract,
setRepresentation,
validateGeneralizationHierarchies,
validateMapsToGeneralizationSet,
validateNoCyclesInGeneralization,
validateSpecializeType
|
Methods inherited from interface org.eclipse.uml2.uml.
Namespace
|
createElementImport,
createElementImport,
createOwnedRule,
createOwnedRule,
createPackageImport,
createPackageImport,
excludeCollisions,
getElementImport,
getElementImport,
getElementImports,
getImportedElements,
getImportedMember,
getImportedMember,
getImportedMembers,
getImportedPackages,
getMember,
getMember,
getMembers,
getNamesOfMember,
getOwnedMember,
getOwnedMember,
getOwnedMembers,
getOwnedRule,
getOwnedRule,
getOwnedRules,
getPackageImport,
getPackageImport,
getPackageImports,
importMembers,
membersAreDistinguishable,
validateMembersDistinguishable
|
Methods inherited from interface org.eclipse.uml2.uml.
Element
|
addKeyword,
allOwnedElements,
applyStereotype,
createEAnnotation,
createOwnedComment,
destroy,
getApplicableStereotype,
getApplicableStereotypes,
getAppliedStereotype,
getAppliedStereotypes,
getAppliedSubstereotype,
getAppliedSubstereotypes,
getKeywords,
getModel,
getNearestPackage,
getOwnedComments,
getOwnedElements,
getOwner,
getRelationships,
getRelationships,
getRequiredStereotype,
getRequiredStereotypes,
getSourceDirectedRelationships,
getSourceDirectedRelationships,
getStereotypeApplication,
getStereotypeApplications,
getTargetDirectedRelationships,
getTargetDirectedRelationships,
getValue,
hasKeyword,
hasValue,
isStereotypeApplicable,
isStereotypeApplied,
isStereotypeRequired,
mustBeOwned,
removeKeyword,
setValue,
unapplyStereotype,
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.uml.
RedefinableElement
|
getRedefinedElement,
getRedefinedElement,
getRedefinedElements,
getRedefinitionContext,
getRedefinitionContext,
getRedefinitionContexts,
isConsistentWith,
isLeaf,
isRedefinitionContextValid,
setIsLeaf,
validateRedefinitionConsistent,
validateRedefinitionContextValid
|
Methods inherited from interface org.eclipse.uml2.uml.
Element
|
addKeyword,
allOwnedElements,
applyStereotype,
createEAnnotation,
createOwnedComment,
destroy,
getApplicableStereotype,
getApplicableStereotypes,
getAppliedStereotype,
getAppliedStereotypes,
getAppliedSubstereotype,
getAppliedSubstereotypes,
getKeywords,
getModel,
getNearestPackage,
getOwnedComments,
getOwnedElements,
getOwner,
getRelationships,
getRelationships,
getRequiredStereotype,
getRequiredStereotypes,
getSourceDirectedRelationships,
getSourceDirectedRelationships,
getStereotypeApplication,
getStereotypeApplications,
getTargetDirectedRelationships,
getTargetDirectedRelationships,
getValue,
hasKeyword,
hasValue,
isStereotypeApplicable,
isStereotypeApplied,
isStereotypeRequired,
mustBeOwned,
removeKeyword,
setValue,
unapplyStereotype,
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.uml.
Element
|
addKeyword,
allOwnedElements,
applyStereotype,
createEAnnotation,
createOwnedComment,
destroy,
getApplicableStereotype,
getApplicableStereotypes,
getAppliedStereotype,
getAppliedStereotypes,
getAppliedSubstereotype,
getAppliedSubstereotypes,
getKeywords,
getModel,
getNearestPackage,
getOwnedComments,
getOwnedElements,
getOwner,
getRelationships,
getRelationships,
getRequiredStereotype,
getRequiredStereotypes,
getSourceDirectedRelationships,
getSourceDirectedRelationships,
getStereotypeApplication,
getStereotypeApplications,
getTargetDirectedRelationships,
getTargetDirectedRelationships,
getValue,
hasKeyword,
hasValue,
isStereotypeApplicable,
isStereotypeApplied,
isStereotypeRequired,
mustBeOwned,
removeKeyword,
setValue,
unapplyStereotype,
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.uml.
Element
|
addKeyword,
allOwnedElements,
applyStereotype,
createEAnnotation,
createOwnedComment,
destroy,
getApplicableStereotype,
getApplicableStereotypes,
getAppliedStereotype,
getAppliedStereotypes,
getAppliedSubstereotype,
getAppliedSubstereotypes,
getKeywords,
getModel,
getNearestPackage,
getOwnedComments,
getOwnedElements,
getOwner,
getRelationships,
getRelationships,
getRequiredStereotype,
getRequiredStereotypes,
getSourceDirectedRelationships,
getSourceDirectedRelationships,
getStereotypeApplication,
getStereotypeApplications,
getTargetDirectedRelationships,
getTargetDirectedRelationships,
getValue,
hasKeyword,
hasValue,
isStereotypeApplicable,
isStereotypeApplied,
isStereotypeRequired,
mustBeOwned,
removeKeyword,
setValue,
unapplyStereotype,
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
|
getOwnedAttributes
org.eclipse.emf.common.util.EList<
Property> getOwnedAttributes()
- Returns the value of the '
Owned Attribute
' containment reference list.
The list contents are of type
Property .
It is bidirectional and its opposite is '
Datatype '.
This feature subsets the following features:
The Attributes owned by the DataType.
-
-
-
Returns:
- the value of the 'Owned Attribute' containment reference list.
-
See Also:
-
UMLPackage.getDataType_OwnedAttribute() ,
Property.getDatatype()
createOwnedAttribute
Property createOwnedAttribute(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
- Creates a new
Property , with the specified '
Name
', and '
Type
', and appends it to the '
Owned Attribute
' containment reference list.
-
-
-
Parameters:
-
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.
-
Returns:
- The new
Property . -
See Also:
-
getOwnedAttributes()
createOwnedAttribute
Property createOwnedAttribute(java.lang.String name,
Type type)
- Creates a new
Property , with the specified '
Name
', and '
Type
', and appends it to the '
Owned Attribute
' containment reference list.
-
-
-
Parameters:
-
name - The '
Name
' for the new
Property , or null . -
type - The '
Type
' for the new
Property , or null .
-
Returns:
- The new
Property . -
See Also:
-
getOwnedAttributes()
getOwnedAttribute
Property getOwnedAttribute(java.lang.String name,
Type type)
- Retrieves the first
Property with the specified '
Name
', and '
Type
' from the '
Owned Attribute
' containment reference list.
-
-
-
Parameters:
-
name - The '
Name
' of the
Property to retrieve, or null . -
type - The '
Type
' of the
Property to retrieve, or null .
-
Returns:
- The first
Property with the specified '
Name
', and '
Type
', or null . -
See Also:
-
getOwnedAttributes()
getOwnedAttribute
Property getOwnedAttribute(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
- Retrieves the first
Property with the specified '
Name
', and '
Type
' from the '
Owned Attribute
' containment reference list.
-
-
-
Parameters:
-
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.
-
Returns:
- The first
Property with the specified '
Name
', and '
Type
', or null . -
See Also:
-
getOwnedAttributes()
getOwnedOperations
org.eclipse.emf.common.util.EList<
Operation> getOwnedOperations()
- Returns the value of the '
Owned Operation
' containment reference list.
The list contents are of type
Operation .
It is bidirectional and its opposite is '
Datatype '.
This feature subsets the following features:
The Operations owned by the DataType.
-
-
-
Returns:
- the value of the 'Owned Operation' containment reference list.
-
See Also:
-
UMLPackage.getDataType_OwnedOperation() ,
Operation.getDatatype()
createOwnedOperation
Operation createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes)
- Creates a new
Operation , with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
', and appends it to the '
Owned Operation
' containment reference list.
-
-
-
Parameters:
-
name - The '
Name
' for the new
Operation , or null . -
ownedParameterNames - The '
Owned Parameter Names
' for the new
Operation , or null . -
ownedParameterTypes - The '
Owned Parameter Types
' for the new
Operation , or null .
-
Returns:
- The new
Operation . -
See Also:
-
getOwnedOperations()
getOwnedOperation
Operation getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes)
- Retrieves the first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
' from the '
Owned Operation
' containment reference list.
-
-
-
Parameters:
-
name - The '
Name
' of the
Operation to retrieve, or null . -
ownedParameterNames - The '
Owned Parameter Names
' of the
Operation to retrieve, or null . -
ownedParameterTypes - The '
Owned Parameter Types
' of the
Operation to retrieve, or null .
-
Returns:
- The first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
', or null . -
See Also:
-
getOwnedOperations()
getOwnedOperation
Operation getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<
Type> ownedParameterTypes,
boolean ignoreCase,
boolean createOnDemand)
- Retrieves the first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
' from the '
Owned Operation
' containment reference list.
-
-
-
Parameters:
-
name - The '
Name
' of the
Operation to retrieve, or null . -
ownedParameterNames - The '
Owned Parameter Names
' of the
Operation to retrieve, or null . -
ownedParameterTypes - The '
Owned Parameter Types
' of the
Operation to retrieve, or null . -
ignoreCase - Whether to ignore case in String comparisons. -
createOnDemand - Whether to create a
Operation on demand if not found.
-
Returns:
- The first
Operation with the specified '
Name
', '
Owned Parameter Names
', and '
Owned Parameter Types
', or null . -
See Also:
-
getOwnedOperations()
createOwnedOperation
Operation createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<
Type> parameterTypes,
Type returnType)
-
Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this data type.
-
-
-
Parameters:
-
name - The name for the new operation, or null. -
parameterNames - The parameter names for the new operation, or null. -
parameterTypes - The parameter types for the new operation, or null. -
returnType - The return type for the new operation, or null.
createOwnedAttribute
Property createOwnedAttribute(java.lang.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 data type.
-
-
-
Parameters:
-
name - The name for the new attribute, or null. -
type - The type for the new attribute, or null. -
lower - The lower bound for the new attribute. -
upper - The upper bound for the new attribute.
|
|