Class Tag
Inherits from
-
(base class)Object
Constructors
| Name | Description |
|---|---|
this
|
|
this
|
|
this
|
Fields
| Name | Type | Description |
|---|---|---|
location
|
Location |
|
values
|
std. |
Properties
| Name | Type | Description |
|---|---|---|
all
[get]
|
Tag. |
Access all attributes and tags regardless of namespace.
|
attributes
[get]
|
sdlang. |
Access all attributes that don't have a namespace
|
fullName
[get]
|
string |
This tag's name, including namespace if one exists.
|
maybe
[get]
|
Tag. |
Access 'attributes', 'tags', 'namespaces' and 'all' like normal,
|
name
[get]
|
string |
Not including namespace. Use 'fullName' if you want the namespace included.
|
name
[set]
|
string |
Not the most efficient, but it works. |
namespace
[set]
|
string |
Not particularly efficient, but it works. |
namespace
[get]
|
string |
|
namespaces
[get]
|
Tag. |
Access all namespaces in this tag, and the attributes/tags within them.
|
parent
[get]
|
Tag |
Get parent tag. To set a parent, attach this Tag to its intended
|
tags
[get]
|
sdlang. |
Access all direct-child tags that don't have a namespace
|
Methods
| Name | Description |
|---|---|
add
|
Adds a Value, Attribute, Tag (or array of such) as a member/child of this Tag.
|
opEquals
|
|
remove
|
Removes 'this' from its parent, if any. Returns 'this' for chaining.
|
toDebugString
|
Not the most efficient, but it works. |
toSDLDocument
|
Treats 'this' as the root tag. Note that root tags cannot have
|
toSDLString
|
Output this entire tag in SDL format. Does *not* treat 'this' as |
Inner structs
| Name | Description |
|---|---|
MaybeAccess
|
|
MemberRange
|
|
NamedMemberRange
|
|
NamespaceAccess
|
|
NamespaceRange
|
Aliases
| Name | Description |
|---|---|
AttributeRange
|
|
TagRange
|