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, |
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
- *