Class: ReferenceMetadataAttribute

metadata. ReferenceMetadataAttribute


new ReferenceMetadataAttribute()

A ReferenceMetadataAttribute contains the Metadata Text, which can be HTML markup

A ReferenceMetadataAttribute may have additional child ReferenceMetadataAttribute

Methods


getAttributes()

Returns an array of child ReferenceMetadataAttribute

Returns:
Type
Array.<metadata.ReferenceMetadataAttribute>

getId()

Returns the id of the ReferenceMetadataAttribute

Returns:
Type
string

getLevel()

Returns the depth of this item in the hierarchy, starting from 1

Returns:
Type
number

getName()

Returns the name of the ReferenceMetadataAttribute

Returns:
Type
string

getText( [lang])

Returns the text for this ReferenceMetadataAttribute, which may contain HTML markup.

If this is a presentational attribute, then this will return null.

Parameters:
Name Type Argument Description
lang string <optional>

and only relevant if isMultilingual returns true.
If not provided then it will use the default language as defined by the @see FusionJS.
If no text is available in the default language, then the first text occurrence will be returned

Returns:
Type
string

hasChildren()

Returns true if this ReferenceMetadataAttribute has child ReferenceMetadataAttributes

Returns:
Type
boolean

isCoded()

If isMultilingual is true, this will return the supported languages on this ReferenceMetadataAttribute.

Returns null if isMultilingual is false

Returns:
Type
Array.<string>

isCoded()

If isCoded is true, then this returns the Code Id

Returns:
Type
boolean

isCoded()

Returns true if the text for this Reference Metadata Attribute is coded

Returns:
Type
boolean

isMultilingual()

Returns true if the text for this Reference Metadata Attribute is bound to a specific language, and in addition there may be different representations in different languages.

Returns:
Type
boolean

isPresentational()

Returns true if there is no text for this ReferenceMetadataAttribute, in which chase this is a presentational node.

If this is the case, then this ReferenceMetadataAttribute is present for presentational reasons only, for example a high level heading

Returns:
Type
boolean