module:baja/tag/Tag

module:baja/tag/Tag

new (require("baja/tag/Tag"))(qname, valueopt)

Description:
  • A Tag is an immutable Id and Data Value pair.

Source:
Parameters:
Name Type Attributes Description
qname String

The Id qname for the tag.

value * <optional>

The value for the Tag. If not specified,
the Tag is regarded as a Marker Tag.

Methods

equals(o) → {Boolean}

Source:
Parameters:
Name Type Description
o

The value used for comparison.

Returns:

Returns true if the Tag is equal to this one.

Type
Boolean

getId() → {module:baja/tag/Id}

Source:
Returns:

The tag's Id.

Type
module:baja/tag/Id

getValue() → {*}

Source:
Returns:

The tag's value.

Type
*