public static class LSL.XMLElement
extends java.lang.Object
Constructor and Description |
---|
LSL.XMLElement(com.sun.jna.Pointer handle) |
Modifier and Type | Method and Description |
---|---|
LSL.XMLElement |
append_child_value(java.lang.String name,
java.lang.String value)
Append a child node with a given name, which has a (nameless) plain-text child with the given text value.
|
LSL.XMLElement |
append_child(java.lang.String name)
Append a child element with the specified name.
|
LSL.XMLElement |
append_copy(LSL.XMLElement e)
Append a copy of the specified element as a child.
|
java.lang.String |
child_value()
Get child value (value of the first child that is text).
|
java.lang.String |
child_value(java.lang.String name)
Get child value of a child with a specified name.
|
LSL.XMLElement |
child(java.lang.String name)
Get a child with a specified name.
|
boolean |
empty()
Whether this node is empty.
|
LSL.XMLElement |
first_child()
Get the first child of the element.
|
boolean |
is_text()
Whether this is a text body (instead of an XML element).
|
LSL.XMLElement |
last_child()
Get the last child of the element.
|
java.lang.String |
name()
Name of the element.
|
LSL.XMLElement |
next_sibling()
Get the next sibling in the children list of the parent node.
|
LSL.XMLElement |
next_sibling(java.lang.String name)
Get the next sibling with the specified name.
|
LSL.XMLElement |
parent()
Get the parent node.
|
LSL.XMLElement |
prepend_child_value(java.lang.String name,
java.lang.String value)
Prepend a child node with a given name, which has a (nameless) plain-text child with the given text value.
|
LSL.XMLElement |
prepend_child(java.lang.String name)
Prepend a child element with the specified name.
|
LSL.XMLElement |
prepend_copy(LSL.XMLElement e)
Prepend a child element with the specified name.
|
LSL.XMLElement |
previous_sibling()
Get the previous sibling in the children list of the parent node.
|
LSL.XMLElement |
previous_sibling(java.lang.String name)
Get the previous sibling with the specified name.
|
void |
remove_child(LSL.XMLElement e)
Remove a specified child element.
|
void |
remove_child(java.lang.String name)
Remove a child element with the specified name.
|
boolean |
set_child_value(java.lang.String name,
java.lang.String value)
Set the text value of the (nameless) plain-text child of a named child node.
|
boolean |
set_name(java.lang.String rhs)
Set the element's name.
|
boolean |
set_value(java.lang.String rhs)
Set the element's value.
|
java.lang.String |
value()
Value of the element.
|
public LSL.XMLElement first_child()
public LSL.XMLElement last_child()
public LSL.XMLElement next_sibling()
public LSL.XMLElement previous_sibling()
public LSL.XMLElement parent()
public LSL.XMLElement child(java.lang.String name)
public LSL.XMLElement next_sibling(java.lang.String name)
public LSL.XMLElement previous_sibling(java.lang.String name)
public boolean empty()
public boolean is_text()
public java.lang.String name()
public java.lang.String value()
public java.lang.String child_value()
public java.lang.String child_value(java.lang.String name)
public LSL.XMLElement append_child_value(java.lang.String name, java.lang.String value)
public LSL.XMLElement prepend_child_value(java.lang.String name, java.lang.String value)
public boolean set_child_value(java.lang.String name, java.lang.String value)
public boolean set_name(java.lang.String rhs)
public boolean set_value(java.lang.String rhs)
public LSL.XMLElement append_child(java.lang.String name)
public LSL.XMLElement prepend_child(java.lang.String name)
public LSL.XMLElement append_copy(LSL.XMLElement e)
public LSL.XMLElement prepend_copy(LSL.XMLElement e)
public void remove_child(java.lang.String name)
public void remove_child(LSL.XMLElement e)