Constructor
# new Tag(tag)
Initializes a new instance of Tag class.
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | string name of tag |
Methods
# equals(tag) → {boolean}
It compares object with the tag and return true if is equal otherwise it will return false
Parameters:
Name | Type | Description |
---|---|---|
tag |
Tag | object must be of type Tag |
Returns:
True/False
- Type
- boolean
# getTagName() → {string}
Gets the string based tag name.
Returns:
- Type
- string
# setTagName(tag)
Sets the string based tag name.
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | string name of tag to be used |
# ToString() → {string}
String representation of the Tag class.
Returns:
- Type
- string