FeatureInstanceModel

Represents an asset-feature.

extends: FeatureModel
implements: hash, sequence, scalar
bundle: online channel standard (oc)
since 4.2.0
Represents an asset-feature.

The feature instance model represents a realized feature model. The hash functionality of the FeatureInstance is a superset of the hash functionalities of the FeatureModel, which means that the master data of the feature instance can be directly queried. Addressing it as a scalar returns a string which contains the display name of the feature instance.

[used as scalar] ↦ String
since 4.2.0
Returns the (localized) display name of the feature value type.

Defined hash keys

feature ↦ String
since 4.2.0
Returns the feature key of the feature instance.

features ↦ FeatureInstancesModel
since 4.2.1
Returns the sequence of feature instances which are arranged below the current feature Instance

language ↦ String
since 4.2.0
Returns the value of the attribute language.

timestamp ↦ Date
since 4.2.0
Returns the Value of the attribute timestamp.

unit ↦ String
since 4.2.0
Returns the value of the attribute unit

value ↦ TemplateModel
since 4.2.0
Returns the features value, whereby the type of the return value depends on the value type of the feature.

  • NoValue ↦ string

  • String ↦ string

  • Enumeration ↦ string

  • Hierarchical ↦ string

  • Boolean ↦ boolean

  • Asset ↦ Asset

  • Integer ↦ number

  • IntegerPair ↦ sequence (Elementtype: number)

  • Double ↦ number

  • DoublePair ↦ sequence (Elementtype: number)

  • Timestamp ↦ date

  • TimestampPair ↦ sequence (Elementtype: date)

  • XML ↦ node (since 4.2.2)

  • Date ↦ date (since 4.5.3)

  • DatePair ↦ sequence (Elementtype: date, since 4.5.3)

  • Time ↦ date (since 4.5.3)

  • TimePair ↦ sequence (Elementtype: date, since 4.5.3)

  • Year ↦ date (since 4.5.3)

  • YearPair ↦ sequence (Elementtype: date, since 4.5.3)

  • YearMonth ↦ date (since 4.5.3)

  • YearMonthPair ↦ sequence (Elementtype: date, since 4.5.3)

  • Month ↦ date (since 4.5.3)

  • MonthPair ↦ sequence (Elementtype: date, since 4.5.3)

  • MonthDay ↦ date (since 4.5.3)

  • MonthDayPair ↦ sequence (Elementtype: date, since 4.5.3)

  • Day ↦ date (since 4.5.3)

  • DayPair ↦ sequence (Elementtype: date, since 4.5.3)

  • Duration ↦ date (since 4.5.3)

  • AssetKey ↦ String (since 2017.5.0)

  • AssetKeyRef ↦ Asset (since 2017.5.0)

xmlData ↦ NodeModel
since 4.2.0
Returns the value of the XML data field of the feature instance. Should this field not be set, undefined will be returned.

Delegates other keys to: FeatureModel