module:baja/tag/RelationTags

module:baja/tag/RelationTags

new (require("baja/tag/RelationTags"))(owner)

Description:
  • A Tags implementation for a Relation object.

Source:
Parameters:
Name Type Description
owner baja.Relation

The Relation whose tags we're going to represent.

Methods

contains(id)

Description:
  • Return true if the specified tag is available.

Source:
Parameters:
Name Type Description
id String | module:baja/tag/Id

The Id
used for the search. This can be an Id or a qname for an Id.

Returns:

Returns true if the specified tag is available.

get(id)

Description:
  • Return the tag's value if it exists.

Source:
Parameters:
Name Type Description
id String | module:baja/tag/Id

The Id
used for the search. This can be an Id or a qname for an Id.

Returns:

The tag's value or null if it doesn't exist.

getAll() → {Array.<module:baja/tag/Tag>}

Description:
  • Returns a copy of the contained Tags array.

Source:
Returns:

An array of Tag objects.

Type
Array.<module:baja/tag/Tag>

isEmpty() → {Boolean}

Source:
Returns:

Returns true if there are no Tag objects.

Type
Boolean