Attribute functions
- Last UpdatedOct 01, 2026
- 1 minute read
This section provides information relating to the attribute functions.
|
Function / Aliases |
Returns |
Description |
Example |
|---|---|---|---|
|
GETATTRIBUTE |
ArtefactAttribute (String) |
Looks up an attribute in the current class library |
'pump'.getAttribute('ENG-AT0001') |
|
GETATTRIBUTEANNOTATION / GETATTRIBUTEEXTENSION |
String |
Gets an extension value from an attribute. Common URIs: nmcltr:XXX, :aspect, :sortOrder, :presence, :uomRequired, :validationType, :validationRule, :groupId, :dataType |
'ENG-AT0001'.getAttributeAnnotation('*:someExtension') |
|
GETATTRIBUTEBYANNOTATION / GETATTRIBUTEBYEXTENSION |
ArtefactAttribute (String) |
Looks up an attribute via an extension |
GETATTRIBUTEBYEXTENSION(@Column, Concat('nmcltr:', @Interface)) |
|
GETATTRIBUTEBYASPECT |
String |
Returns the first attribute with the specified aspect |
'ENG-AT0001'.getAttributeExtension(':aspect') |
|
GETATTRIBUTEDESCRIPTION |
String |
Gets the description of an attribute |
'criticality_rating'.GetAttributeDescription |
|
GETATTRIBUTENAME |
String |
Gets the human readable name of an attribute |
'area'.GetAttributeName |
|
GETATTRIBUTES |
String[] |
Gets the list of attributes from the current class library |
'pump'.getAttributes |
|
GETATTRIBUTESWITH ENUMEXTENSION / GETATTRIBUTESWITH ENUMANNOTATION |
String |
Gets attributes with enum extension/annotation |
|
|
GETMATCHINGATTRIBUTE ANNOTATIONURIS / EXTENSIONURIS |
String |
Returns matching attribute annotation/extension URIs |