tom.platform
Class OptionParser

java.lang.Object
  extended by 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 >
 


Constructor Summary
OptionParser()
           
 
Method Summary
static tom.platform.adt.platformoption.types.PlatformOptionList xmlNodeToOptionList(TNode optionsNode)
           
static tom.platform.adt.platformoption.types.PlatformOptionList xmlToOptionList(String xmlString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionParser

public OptionParser()
Method Detail

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