new (require("baja/tag/SmartTags"))(directTags, impliedTags)
- Description:
SmartTags holds a collection of both direct and implemented
module:baja/tag/Tag objects.
- 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 |
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 |
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