|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sjg.xml.Element
public class Element
Class that represents an XML element.
Method Summary | |
---|---|
java.util.Enumeration |
elements()
Returns an enumeration over the mixed contents of this element - of type String or Element. |
java.util.Enumeration |
elements(java.lang.String name)
Returns an enumeration over the subelements of this element that have the given name. |
Attribute |
getAttribute(java.lang.String name)
Returns the attribute given a name. |
java.lang.String |
getContents()
Returns a textual representation of the contents of this element. |
java.lang.String |
getName()
Returns the name of this element. |
Element |
getParent()
Returns the parent element of this element. |
boolean |
hasAttribute(java.lang.String name)
Returns whether an attribute of a given name exists. |
java.lang.String |
toString()
Returns a textual representation of this element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Attribute getAttribute(java.lang.String name)
public boolean hasAttribute(java.lang.String name)
public java.util.Enumeration elements()
public java.util.Enumeration elements(java.lang.String name)
public java.lang.String getName()
public Element getParent()
public java.lang.String getContents()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |