| Modifier and Type | Field and Description |
|---|---|
| protected Vector | |
| protected String | |
| protected String | |
| protected Node | |
| protected Vector |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Element | createElement(String namespace, String name)
Overrides org. |
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public int | |
| public String | |
| public String | |
| public String | |
| public Node | |
| public Node | |
| public void | |
| public void | parse(XmlPullParser parser)
Overrides org. |
| public void | setAttribute(String namespace, String name, String value)
Sets the given attribute; a value of null removes the attribute |
| public void | |
| public void | |
| protected void | |
| public void | |
| public void | write(XmlSerializer writer)
Overrides org. |
| attributes | back to summary |
|---|---|
| protected Vector<E> attributes | |
| name | back to summary |
|---|---|
| protected String name | |
| namespace | back to summary |
|---|---|
| protected String namespace | |
| parent | back to summary |
|---|---|
| protected Node parent | |
| prefixes | back to summary |
|---|---|
| protected Vector<E> prefixes | |
| Element | back to summary |
|---|---|
| public Element() | |
| clear | back to summary |
|---|---|
| public void clear() removes all children and attributes | |
| createElement | back to summary |
|---|---|
| public Element createElement(String namespace, String name) Overrides org. Forwards creation request to parent if any, otherwise calls super.createElement. | |
| getAttributeCount | back to summary |
|---|---|
| public int getAttributeCount() Returns the number of attributes of this element. | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName(int index) | |
| getAttributeNamespace | back to summary |
|---|---|
| public String getAttributeNamespace(int index) | |
| getAttributeValue | back to summary |
|---|---|
| public String getAttributeValue(int index) | |
| getAttributeValue | back to summary |
|---|---|
| public String getAttributeValue(String namespace, String name) | |
| getName | back to summary |
|---|---|
| public String getName() returns the (local) name of the element | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() returns the namespace of the element | |
| getNamespaceCount | back to summary |
|---|---|
| public int getNamespaceCount() returns the number of declared namespaces, NOT including parent elements | |
| getNamespacePrefix | back to summary |
|---|---|
| public String getNamespacePrefix(int i) | |
| getNamespaceUri | back to summary |
|---|---|
| public String getNamespaceUri(String prefix) returns the namespace for the given prefix | |
| getNamespaceUri | back to summary |
|---|---|
| public String getNamespaceUri(int i) | |
| getParent | back to summary |
|---|---|
| public Node getParent() Returns the parent node of this element | |
| getRoot | back to summary |
|---|---|
| public Node getRoot() Returns the root node, determined by ascending to the all parents un of the root element. | |
| init | back to summary |
|---|---|
| public void init() called when all properties are set, but before children are parsed. Please do not use setParent for initialization code any longer. | |
| parse | back to summary |
|---|---|
| public void parse(XmlPullParser parser) throws IOException, XmlPullParserException Overrides org. Builds the child elements from the given Parser. By overwriting parse, an element can take complete control over parsing its subtree. | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String namespace, String name, String value) Sets the given attribute; a value of null removes the attribute | |
| setName | back to summary |
|---|---|
| public void setName(String name) sets the name of the element | |
| setNamespace | back to summary |
|---|---|
| public void setNamespace(String namespace) sets the namespace of the element. Note For no namespace, please use Xml.NO_NAMESPACE, null is not a legal value. Currently, null is converted to Xml.NO_NAMESPACE, but future versions may throw an exception. | |
| setParent | back to summary |
|---|---|
| protected void setParent(Node parent) Sets the Parent of this element. Automatically called from the add method. Please use with care, you can simply create inconsitencies in the document tree structure using this method! | |
| setPrefix | back to summary |
|---|---|
| public void setPrefix(String prefix, String namespace) Sets the given prefix; a namespace value of null removess the prefix | |
| write | back to summary |
|---|---|
| public void write(XmlSerializer writer) throws IOException Overrides org. Writes this element and all children to the given XmlWriter. | |