|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irssibot.config.UserFileParser
tools for parsing an user file
| Field Summary | |
private org.w3c.dom.Document |
document
|
private java.lang.String |
userFilePath
|
private java.util.Vector |
users
|
| Constructor Summary | |
UserFileParser(java.lang.String userFilePath)
|
|
| Method Summary | |
java.util.Vector |
getUsers()
get users Vector |
private void |
handleChannelTag(org.w3c.dom.Node node,
User user)
called from handleUserTag() to manage a |
private void |
handleUserTag(org.w3c.dom.Node node)
handle node |
boolean |
parse()
invoke recursive parsing |
private boolean |
readUserFile()
read XML user file from disk. |
private void |
recursiveParse(org.w3c.dom.Node node)
go through the document and parse data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String userFilePath
private org.w3c.dom.Document document
private java.util.Vector users
| Constructor Detail |
public UserFileParser(java.lang.String userFilePath)
| Method Detail |
public boolean parse()
public java.util.Vector getUsers()
private boolean readUserFile()
private void handleUserTag(org.w3c.dom.Node node)
node - user node
private void handleChannelTag(org.w3c.dom.Node node,
User user)
node - channel -nodeuser - current User instance (from handleUserTag())private void recursiveParse(org.w3c.dom.Node node)
node - current node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||