|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.xml.XMLElement
public final class XMLElement
An element in an XML document.
XMLDocument.getRootElement()| Method Summary | |
|---|---|
XMLAttribute[] |
getAttributes()
Gets the list of attributes associated with this element, in no particular order. |
java.lang.String |
getAttributeValue(java.lang.String name)
Gets the value of the attribute with the given name (and that does not belong to a namespace). |
XMLElement |
getChild(java.lang.String name)
Gets the first child element nested directly within this element that has the given name (and does not belong to a namespace). |
XMLElement[] |
getChildren()
Gets a list of all the child elements nested directly (that is, one level deep) within this element. |
XMLElement[] |
getChildren(java.lang.String name)
Gets a list of all the child elements nested directly (that is, one level deep) within this element whose names match the given name (and that do not belong to a namespace). |
java.lang.String |
getName()
Gets the local name of this element (that is, without a namespace prefix). |
java.lang.String |
getQualifiedName()
Gets the qualified name of this element, in the form [namespace]:[name]. |
java.lang.String |
getText()
Gets the textual content directly held under this element. |
void |
removeChild(XMLElement node)
Remove a child element from this collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getQualifiedName()
public XMLElement[] getChildren()
public XMLElement[] getChildren(java.lang.String name)
name - The element name.
public XMLElement getChild(java.lang.String name)
name - the name to look for
public void removeChild(XMLElement node)
node - XMLElement the child element to be removedpublic java.lang.String getAttributeValue(java.lang.String name)
name - The attribute name.
public XMLAttribute[] getAttributes()
public java.lang.String getText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||