public abstract class StringParser
extends java.lang.Object
Constructor and Description |
---|
StringParser() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
parse(java.lang.String arg)
Parses the specified argument into an Object of the appropriate type.
|
void |
setUp()
Performs any initialization not handled by this StringParser's
constructor.
|
void |
tearDown()
Performs any cleanup necessary for this StringParser.
|
public void setUp() throws java.lang.Exception
java.lang.Exception
- if an initialization error occurs that should prevent
the Option containing this StringParser from being registered.public void tearDown()
public abstract java.lang.Object parse(java.lang.String arg) throws ParseException
arg
- the argument to convert to an Object of class appropriate to
the StringParser subclass.ParseException
- if the specified argument cannot be parsed.Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap