Returns both inherited and owned attributes.
- Getting started
- Tutorial - Model driven basics
- Tutorial - Full stack Angular application
- Fundamentals
- How-to
- Modeler
- Reference
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
PrimitiveType | ⇾DataType | ⇾MemberedClassifier | ⇾Classifier | ⇾Type | ⇾PackageableElement | ⇾NamedElement | ⇾Element |
⇾RedefinableElement | ⇾NamedElement | ⇾Element |
Attributes
Name | Type | Description |
---|---|---|
appliedStereotypes | Stereotype [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. |
generalizations | Generalization [0..*] | The Generalization relationships for this Classifier. These Generalizations navigate to more general Classifiers in the generalization hierarchy. Inherited from Classifier. |
id | string | Gets the unique ID of the element. Inherited from Element. |
isAbstract | boolean | 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. |
isDeprecated | boolean | If true, using this element should be avoided, typically because it has been superseded. Inherited from NamedElement. |
isFinalSpecialization | boolean | If true, the Classifier cannot be specialized. Inherited from Classifier. |
isInferred | boolean [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. |
isLeaf | boolean | 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. |
name | string | The name of the NamedElement. Inherited from NamedElement. |
ownedAttributes | Property [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. |
ownedComments | Comment [0..*] | The Comments owned by this Element. Inherited from Element. |
ownedOperations | Operation [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. |
owner | Element [0..1] | Gets the element that owns this element. Inherited from Element. |
package | Package | Gets the package that owns the packageable element. This property is derived. Inherited from PackageableElement. |
taggedValues | TaggedValueSpecification [0..*] | Contains 0 or more tagged values for the element. Inherited from Element. |
visibility | VisibilityKind [0..1] | Determines whether and how the NamedElement is visible outside its owning Namespace. Inherited from NamedElement. |
Operations
Name | Returns | Description | ||||||
---|---|---|---|---|---|---|---|---|
getAllAttributes()PrimitiveType.getAllAttributesX | Property [0..*] | Returns both inherited and owned attributes. Inherited from MemberedClassifier. | ||||||
getAllOperations() | 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.getAllParentsXReturns all of the direct and indirect ancestors of a generalized Classifier, working outwards: more specific classifiers will appear before more general classifiers. Return valueType: 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.getAllSpecializationsXGets all classifiers of which this element is a direct or indirect general. Return valueType: Classifier [0..*] | Classifier [0..*] | Gets all classifiers of which this element is a direct or indirect general. Inherited from Classifier. | ||||||
getFirstCommentBody()PrimitiveType.getFirstCommentBodyXGets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments. Return valueType: 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.getFirstGeneralizationXGets the first direct generalization relationship of the element. Return valueType: Generalization [0..1] | Generalization [0..1] | Gets the first direct generalization relationship of the element. Inherited from Classifier. | ||||||
getFirstParent()PrimitiveType.getFirstParentXGets the first classifier that is an immediate general of the current element. Return valueType: 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.getNamespaceNameXConstructs 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
Return valueType: stringA 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() | Package [0..*] | Gets all packages that contain this Package, working inwards from the top Package to the owning package. Inherited from PackageableElement. | ||||||
getParents()PrimitiveType.getParentsXGives all of the immediate ancestors of a generalized Classifier. Return valueType: Classifier [0..*] | Classifier [0..*] | Gives all of the immediate ancestors of a generalized Classifier. Inherited from Classifier. | ||||||
getQualifiedName(separator)PrimitiveType.getQualifiedNameXConstructs 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
Return valueType: stringA 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.getSpecializationsXGets all classifiers of which this classifier is a direct general. Return valueType: Classifier [0..*] | Classifier [0..*] | Gets all classifiers of which this classifier is a direct general. Inherited from Classifier. | ||||||
getSuperTypes()PrimitiveType.getSuperTypesXGets the super types of this type, derived from its Generalizations. Return valueType: this [0..*] | this [0..*] | Gets the super types of this type, derived from its Generalizations. Inherited from Classifier. |