Node.AttributeProxy

This struct represents an attribute proxy. This is the type that is returned when calling Node.attribute and lets you perform operations on attributes.

Members

Functions

add
Node add(T[] name, T[] value)

Adds a new attribute to the element the element of which this proxy object was received.

add
Node add(Attribute attribute)

Adds a new attribute to the element the element of which this * proxy object was received.

add
Node add(T[] name, bool value)

Adds a new attribute to the element the element of which this proxy object was received.

add
Node add(T[] name, int value)

Adds a new attribute to the element the element of which this proxy object was received.

getBool
bool getBool(T[] name, bool aDefault)

Returns the value of the first attribute in the element of which this proxy object was received, which matches the given name.

getInt
int getInt(T[] name, int aDefault)

Returns the value of the first attribute in the element of which this proxy object was received, which matches the given name.

getLong
long getLong(T[] name, long aDefault)

Returns the value of the first attribute in the element of which this proxy object was received, which matches the given name.

name
T[] name()

Gets the name of the attribute

name
T[] name(T[] name)

Sets the name of the attribute

opApply
int opApply(int delegate(ref AttributeProxy) dg)

Iterates over the children of the root node

opCall
AttributeProxy opCall(T[] name)

Finds the attribute with the given name in the element of which this attribute proxy was returned.

opCatAssign
Node opCatAssign(T[] name)
opIndex
T[] opIndex(T[] name)

Returns the value of the attribute with the given name

opIndexAssign
void opIndexAssign(T2 value, T[] name)

Finds the attribute with the given name in the element of which this proxy object was received name and sets it's value to the given value. If the element could not be found it's created and the give value is set.

toString
T[] toString()

Returns a string representation of this object which is the value of the attribute.

value
T[] value()

Gets the value of the attribute

value
T[] value(T[] value)

Sets the value of the attribute

Meta