PrimitiveType interface

A PrimitiveType defines a predefined DataType, without any substructure. A PrimitiveType may have an algebra and operations defined outside of UML, for example, mathematically.

Inheritance Hierarchy

PrimitiveTypeDataTypeMemberedClassifierClassifierTypePackageableElementNamedElementElement
RedefinableElementNamedElementElement

Attributes

NameTypeDescription
appliedStereotypesStereotype [0..*]Indicates which stereotypes from the selected profile (or profiles) are applied to the element. The selected profiles are the profiles that are applied to the containing package. Inherited from Element.
generalizationsGeneralization [0..*]The Generalization relationships for this Classifier. These Generalizations navigate to more general Classifiers in the generalization hierarchy. Inherited from Classifier.
idstring Gets the unique ID of the element. Inherited from Element.
isAbstractboolean If true, the Classifier can only be instantiated by instantiating one of its specializations. An abstract Classifier is intended to be used by other Classifiers e.g., as the target of Associations or Generalizations. Inherited from Classifier.
isDeprecatedboolean If true, using this element should be avoided, typically because it has been superseded. Inherited from NamedElement.
isFinalSpecializationboolean If true, the Classifier cannot be specialized. Inherited from Classifier.
isInferredboolean [1..1]If true, the type was inferred by a tool, for example during data import. An inferred type is never owned by any Package. Inherited from Type.
isLeafboolean Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Inherited from RedefinableElement.
namestring The name of the NamedElement. Inherited from NamedElement.
ownedAttributesProperty [0..*]The attributes owned by the Element. Note that in UML, OwnedAttributes is a property of derived classes of Classifier (Class, DataType and Interface). Inherited from MemberedClassifier.
ownedCommentsComment [0..*]The Comments owned by this Element. Inherited from Element.
ownedOperationsOperation [0..*]The Operations owned by the Element. Note that in UML, OwnedOperations is a property of derived classes of Classifier (Class, DataType and Interface). Inherited from MemberedClassifier.
ownerElement [0..1]Gets the element that owns this element. Inherited from Element.
packagePackage Gets the package that owns the packageable element. This property is derived. Inherited from PackageableElement.
taggedValuesTaggedValueSpecification [0..*]Contains 0 or more tagged values for the element. Inherited from Element.
visibilityVisibilityKind [0..1]Determines whether and how the NamedElement is visible outside its owning Namespace. Inherited from NamedElement.

Operations

NameReturnsDescription
getAllAttributes()

PrimitiveType.getAllAttributes

X

Returns both inherited and owned attributes.

Return value
Type: Property [0..*]
Property [0..*]Returns both inherited and owned attributes. Inherited from MemberedClassifier.
getAllOperations()

PrimitiveType.getAllOperations

X

Returns both inherited and owned operations. Any inherited operation that has the same signature (having the same name and parameter type order) in an inheriting type is not included.

Return value
Type: Operation [0..*]
Operation [0..*]Returns both inherited and owned operations. Any inherited operation that has the same signature (having the same name and parameter type order) in an inheriting type is not included. Inherited from MemberedClassifier.
getAllParents()

PrimitiveType.getAllParents

X

Returns all of the direct and indirect ancestors of a generalized Classifier, working outwards: more specific classifiers will appear before more general classifiers.

Return value
Type: Classifier [0..*]
Classifier [0..*]Returns all of the direct and indirect ancestors of a generalized Classifier, working outwards: more specific classifiers will appear before more general classifiers. Inherited from Classifier.
getAllSpecializations()

PrimitiveType.getAllSpecializations

X

Gets all classifiers of which this element is a direct or indirect general.

Return value
Type: Classifier [0..*]
Classifier [0..*]Gets all classifiers of which this element is a direct or indirect general. Inherited from Classifier.
getFirstCommentBody()

PrimitiveType.getFirstCommentBody

X

Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments.

Return value
Type: string [1..1]
The body string of the first comment. If the element has no comments, an empty string is returned.
string [1..1]Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments. Inherited from Element.
getFirstGeneralization()

PrimitiveType.getFirstGeneralization

X

Gets the first direct generalization relationship of the element.

Return value
Type: Generalization [0..1]
Generalization [0..1]Gets the first direct generalization relationship of the element. Inherited from Classifier.
getFirstParent()

PrimitiveType.getFirstParent

X

Gets the first classifier that is an immediate general of the current element.

Return value
Type: Classifier [0..1]
Classifier [0..1]Gets the first classifier that is an immediate general of the current element. Inherited from Classifier.
getNamespaceName(separator)

PrimitiveType.getNamespaceName

X

Constructs a name from the names of the nesting packages. The name is constructed working inwards from the package that is defined as namespace root up to but not including the PackageableElement itself.

Parameters
NameTypeDescription
separatorstring [0..1]The string to use to separate names. If not specified, a dot "." will be used.
Return value
Type: string 
A single string with all the names separated.
string Constructs a name from the names of the nesting packages. The name is constructed working inwards from the package that is defined as namespace root up to but not including the PackageableElement itself. Inherited from PackageableElement.
getNestingPackages()

PrimitiveType.getNestingPackages

X

Gets all packages that contain this Package, working inwards from the top Package to the owning package.

Return value
Type: Package [0..*]
A collection of Packages.
Package [0..*]Gets all packages that contain this Package, working inwards from the top Package to the owning package. Inherited from PackageableElement.
getParents()

PrimitiveType.getParents

X

Gives all of the immediate ancestors of a generalized Classifier.

Return value
Type: Classifier [0..*]
Classifier [0..*]Gives all of the immediate ancestors of a generalized Classifier. Inherited from Classifier.
getQualifiedName(separator)

PrimitiveType.getQualifiedName

X

Constructs a name from the PackageableElement and the names of the nesting packages. The name is constructed working inwards from the package that is defined as namespace root up to and including the PackageableElement itself.

Parameters
NameTypeDescription
separatorstring [0..1]The string to use to separate names. If not specified, a dot "." will be used.
Return value
Type: string 
A single string with all the names separated.
string Constructs a name from the PackageableElement and the names of the nesting packages. The name is constructed working inwards from the package that is defined as namespace root up to and including the PackageableElement itself. Inherited from PackageableElement.
getSpecializations()

PrimitiveType.getSpecializations

X

Gets all classifiers of which this classifier is a direct general.

Return value
Type: Classifier [0..*]
Classifier [0..*]Gets all classifiers of which this classifier is a direct general. Inherited from Classifier.
getSuperTypes()

PrimitiveType.getSuperTypes

X

Gets the super types of this type, derived from its Generalizations.

Return value
Type: this [0..*]
this [0..*]Gets the super types of this type, derived from its Generalizations. Inherited from Classifier.