|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.xml.XMLToken
public class XMLToken
This class represents a XML element returned by the nextElement() method in the XMLParser.
XML,
XMLParser| Field Summary | |
|---|---|
java.lang.String |
data
This is the parsed out data |
int |
type
This is the type of Element |
| Constructor Summary | |
|---|---|
XMLToken()
|
|
XMLToken(int type,
java.lang.String data)
This constructor allows for the XML token's type to be specified. |
|
| Method Summary | |
|---|---|
Props |
getProps()
This returns a Props containing the attributes if this is a START_TAG or EMPTY_ELEMENT_TAG. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int type
public java.lang.String data
| Constructor Detail |
|---|
public XMLToken()
public XMLToken(int type,
java.lang.String data)
| Method Detail |
|---|
public Props getProps()
throws XMLParserException
tag_name. It throws an XMLParserException otherwise.
XMLParserExceptionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||