tom.platform
Class OptionParser
java.lang.Object
tom.platform.OptionParser
public class OptionParser
- extends Object
Helper class to parse OptionOwner options.
The options have to comply with the following this DTD
< !ELEMENT options (boolean*,integer*,string*) >
< !ELEMENT boolean EMPTY >
< !ATTLIST boolean
name CDATA #REQUIRED
altName CDATA ""
description CDATA ""
value (true|false) #REQUIRED >
< !ELEMENT integer EMPTY >
< !ATTLIST integer
name CDATA #REQUIRED
altName CDATA ""
description CDATA ""
value CDATA #REQUIRED
attrName CDATA #REQUIRED >
< !ELEMENT string EMPTY >
< !ATTLIST string
name CDATA #REQUIRED
altName CDATA ""
description CDATA ""
value CDATA #REQUIRED
attrName CDATA #REQUIRED >
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionParser
public OptionParser()
xmlToOptionList
public static tom.platform.adt.platformoption.types.PlatformOptionList xmlToOptionList(String xmlString)
- Returns:
- a PlatformOptionList extracted from the a String
xmlNodeToOptionList
public static tom.platform.adt.platformoption.types.PlatformOptionList xmlNodeToOptionList(TNode optionsNode)
- Returns:
- a PlatformOptionList extracted from a TNode