Class Tag

Superclasses :
xml::Node
Package :
xml

Source

Class summary
Methods inherited from xml::Node
add_child(obj, pos) add_string(s, pos) do_trim(s) generate_nodes() get_children() get_children_no_whitespace() get_parent() get_string_content() get_trimmed_children() get_trimmed_string_content() print_structure(f, indent, flags) remove_whitespace_children()
Variables inherited from xml::Node
children parent
Methods inherited from lang::Object
clone(seen) equals(other, seen) get_class() get_class_name() get_id() hash_code(depth, seen) is_instance(name) to_string(depth, seen)
Methods defined in this class
balances(other) get_attributes() get_type() initially() is_closed() is_empty() set_attribute(key, value) set_closed() set_empty() set_name(s)
Variables defined in this class
attributes closed empty name

Method detail

balances(other)

Succeed if the given tag is a matching closing tag for this tag.
Source

get_attributes()

Return the attributes map for this tag.
Source

get_type()

Overrides get_type() in xml::Node
Source

initially()

Overrides initially() in xml::Node

is_closed()

Succeed if the tag is a closing tag.
Source

is_empty()

Succeed if the tag is an empty tag, ie of the form <tag/>.
Source

set_attribute(key, value)

Set an attribute for this tag.
Source

set_closed()

Indicate that the tag is a closing tag, ie has a leading "/"
Source

set_empty()

Indicate that the tag is an empty tag.
Source

set_name(s)

Set the name of the tag, which is converted to upper case. Any leading "/" should be omitted.
Source

Variable detail

attributes


closed


empty


name