Attribute

Constructors

this
this()
Undocumented in source.
this
this(string name, string value)
Undocumented in source.

Members

Functions

document
Document document()
Undocumented in source. Be warned that the author may not have intended to support it.
getValue
string getValue()

Returns the value of the attribute. This method returns the same value as the {@link Node#getText()}method.

localName
string localName()
Undocumented in source. Be warned that the author may not have intended to support it.
localName
void localName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
nextAttribute
Attribute nextAttribute(string name, bool caseSensitive)

Gets next attribute, optionally matching attribute name.

nextAttribute
void nextAttribute(Attribute attribute)
Undocumented in source. Be warned that the author may not have intended to support it.
previousAttribute
Attribute previousAttribute(string name, bool caseSensitive)

Gets previous attribute, optionally matching attribute name. \param name Name of attribute to find, or 0 to return previous attribute regardless of its name; this string doesn't have to be zero-terminated if name_size is non-zero \param name_size Size of name, in characters, or 0 to have size calculated automatically from string \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters \return Pointer to found attribute, or 0 if not found.

previousAttribute
void previousAttribute(Attribute attribute)
Undocumented in source. Be warned that the author may not have intended to support it.
setValue
void setValue(string value)

Sets the value of this attribute or this method will throw an <code>UnsupportedOperationException</code> if it is read-only.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
xmlns
string xmlns()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_local_name
string m_local_name;
Undocumented in source.
m_next_attribute
Attribute m_next_attribute;
Undocumented in source.
m_prev_attribute
Attribute m_prev_attribute;
Undocumented in source.
m_value
string m_value;
Undocumented in source.
m_xmlns
string m_xmlns;
Undocumented in source.

Inherited Members

From Node

m_type
NodeType m_type;
Undocumented in source.
m_name
string m_name;
Undocumented in source.
m_parent
Element m_parent;
Undocumented in source.
getType
NodeType getType()

Returns the code according to the type of node. This makes processing nodes polymorphically much easier as the switch statement can be used instead of multiple if (instanceof) statements.

getName
string getName()

<p> <code>getName</code> returns the name of this node. This is the XML local name of the element, attribute, entity or processing instruction. For CDATA and Text nodes this method will return null. </p>

setName
void setName(string name)

<p> Sets the text data of this node or this method will throw an <code>UnsupportedOperationException</code> if it is read-only. </p>

getParent
Element getParent()

<p> <code>getParent</code> returns the parent <code>Element</code> if this node supports the parent relationship or null if it is the root element or does not support the parent relationship. </p>

setParent
void setParent(Element parent)

<p> <code>setParent</code> sets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported. </p>

Meta