|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.autonomy.utilities.EventDrivenXMLParser | +--com.autonomy.config.XML2ConfigParser
Takes any xml and converts it to a ConfigFile
Field Summary |
Fields inherited from class com.autonomy.utilities.EventDrivenXMLParser |
PARSE_BAD_TAG, PARSE_EMPTY_TAG, PARSE_END_TAG, PARSE_START_TAG, PARSE_XML_TAG |
Constructor Summary | |
XML2ConfigParser()
|
|
XML2ConfigParser(java.lang.String sXML)
|
Method Summary | |
void |
charDataHandler(java.lang.String sCharData)
Called when the parser encounters character data. |
void |
endElementHandler(java.lang.String sTagName)
Called when the parser encounters an xml element's end tag. |
com.autonomy.config.ConfigFile |
getConfigFile()
Grab the parsed xml as a ConfigFile |
void |
startElementHandler(java.lang.String sTagName,
java.util.Hashtable htAttributes)
Called when the parser encounters an xml element's start tag. |
void |
XMLElementHandler(java.lang.String sTagName,
java.util.Hashtable htAttributes)
Called when the parser encounters The |
Methods inherited from class com.autonomy.utilities.EventDrivenXMLParser |
parse, parse, setXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XML2ConfigParser(java.lang.String sXML)
public XML2ConfigParser()
Method Detail |
public com.autonomy.config.ConfigFile getConfigFile()
public void XMLElementHandler(java.lang.String sTagName, java.util.Hashtable htAttributes)
EventDrivenXMLParser
XMLElementHandler
in class EventDrivenXMLParser
sTagName
- the name of the xml element.htAttributes
- a Hashtable containing the xml element's attributes in key-value pairs. The attribute
names are used as the table's keys and the attribute values are the corresponding table values. If there are no
attributes this Hashtable is empty.public void startElementHandler(java.lang.String sTagName, java.util.Hashtable htAttributes)
EventDrivenXMLParser
startElementHandler
in class EventDrivenXMLParser
sTagName
- the name of the xml element.htAttributes
- a Hashtable containing the xml element's attributes in key-value pairs. The attribute
names are used as the table's keys and the attribute values are the corresponding table values. If there are no
attributes this Hashtable is empty.public void endElementHandler(java.lang.String sTagName)
EventDrivenXMLParser
endElementHandler
in class EventDrivenXMLParser
sTagName
- the name of the xml element.public void charDataHandler(java.lang.String sCharData)
EventDrivenXMLParser
charDataHandler
in class EventDrivenXMLParser
sCharData
- the character data.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |