5.7.1.1.2. Metadata functions

The following tables show the build-in functions in the expression language of the CodeComposer related to metadata. Click on the function name to navigate to the documentation of the function.

Table 5.60 Get metadata functions

Name

Description

getMetaDataFromAttribute (metadataKey, defaultValue)

Gets metadata from the model attribute in the context with a certain metadata key.

getMetaDataFromObject (metaDataKey, defaultValue)

Gets metadata from the model object in the context with a certain metadata key.

Table 5.61 Has metadata functions

Name

Description

attributeHasMetaData (metaDataKey)

Checks if the model attribute in the context has a certain metadata key.

attributeHasMetaData (metaDataKey, metadataValue)

Checks if the model attribute in the context has a certain metadata key with a certain metadata value.

objectHasMetaData (metaDataKey)

Checks if the model object in the context has a certain metadata key.

objectHasMetaData (metadataKey, metadataValue)

Checks if the model object in the context has a certain metadata key with a certain metadata value

referenceHasMetaData (metaDataKey)

Checks if the model reference in the context has a certain metadata key

referenceHasMetaData (metaDataKey, metadataValue)

Checks if the model reference in the context has a certain metadata key with a certain metadata value