Module: baja/tag/Tag


new (require("baja/tag/Tag"))(qname [, value])

A Tag is an immutable Id and Data Value pair.

Parameters:
Name Type Argument 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)

Parameters:
Name Type Description
o

The value used for comparison.

Returns:

Returns true if the Tag is equal to this one.

Type
Boolean

getId()

Returns:

The tag's Id.

Type
module:baja/tag/Id

getValue()

Returns:

The tag's value.