Module: baja/tag/RelationTags


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

A Tags implementation for a Relation object.

Parameters:
Name Type Description
owner baja.Relation

The Relation whose tags we're going to represent.

Methods


contains(id)

Return true if the specified tag is available.

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)

Return the tag's value if it exists.

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()

Returns a copy of the contained Tags array.

Returns:

An array of Tag objects.

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

isEmpty()

Returns:

Returns true if there are no Tag objects.

Type
Boolean