module:baja/tag/SmartTags

module:baja/tag/SmartTags

new (require("baja/tag/SmartTags"))(directTags, impliedTags)

Description:
Source:
Parameters:
Name Type Description
directTags baja.TagSet

A direct Tags implementation.

impliedTags baja.TagSet

An implied Tags implementation.

Methods

contains(id) → {Boolean}

Description:
  • Returns true a Tag with the specified Id (or qname)
    is found.

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 found.

Type
Boolean

get(id)

Description:
  • Get the value for the specified tag.

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 value for the tag or null if nothing can be found.

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

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

    Any duplicate tags are filtered out.

Source:
Returns:

An array of Tag objects.

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

getDirectTags()

Description:
  • Return the direct tags.

Source:
Returns:

The direct Tags.

getImpliedTags()

Description:
  • Return the implied tags.

Source:
Returns:

the implied tags.

isEmpty() → {Boolean}

Source:
Returns:

Returns true if there are no Tag objects.

Type
Boolean