|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.garret.xmlme.XMLElement
Class representing XML element
Method Summary | |
XMLAttribute |
getAttribute(java.lang.String name)
Get attribute with specified name |
java.util.Vector |
getAttributes()
Get attributes of this element |
int |
getCounter()
Get number of siblings with the same name. |
int |
getIntValue()
Get integer value of the element |
java.lang.String |
getName()
Get element name |
XMLElement |
getNextSibling()
Return next sibling. |
XMLElement |
getSibling(java.lang.String name)
Get sibling with specified name |
java.util.Vector |
getSiblings()
Get siblings of this element |
java.lang.String |
getValue()
Get value of this element |
java.util.Vector |
search(java.lang.String pattern)
Search element siblings which name matches with the pattern |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public XMLAttribute getAttribute(java.lang.String name)
name
- name of the attribute
null
if not foundpublic java.util.Vector getAttributes()
public int getCounter()
getSibling
method. Effect of applying
this method to anyy other element is not deefined.
public int getIntValue()
XMLException
- if this element has no value
or this value is not valid integer numberpublic java.lang.String getName()
public XMLElement getNextSibling()
getSibling
method
null
if there are no more siblings with such namepublic XMLElement getSibling(java.lang.String name)
name
- name of the sibling
getNextSibling
methodpublic java.util.Vector getSiblings()
public java.lang.String getValue()
null
if element has no valuepublic java.util.Vector search(java.lang.String pattern)
pattern
- search pattern
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |