com.martiansoftware.jsap.stringparsers
Class StringStringParser

java.lang.Object
  extended bycom.martiansoftware.jsap.StringParser
      extended bycom.martiansoftware.jsap.stringparsers.StringStringParser

public class StringStringParser
extends StringParser

A StringParser for parsing Strings. This is the simplest possible StringParser, simply returning the specified argument in all cases. This class never throws a ParseException under any circumstances.

Author:
Marty Lamb
See Also:
StringParser, String

Constructor Summary
StringStringParser()
          Creates a new StringStringParser.
 
Method Summary
 Object parse(String arg)
          Returns the specified argument as a String.
 
Methods inherited from class com.martiansoftware.jsap.StringParser
setUp, tearDown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringStringParser

public StringStringParser()
Creates a new StringStringParser.

Method Detail

parse

public Object parse(String arg)
             throws ParseException
Returns the specified argument as a String.

Specified by:
parse in class StringParser
Parameters:
arg - the argument to parse
Returns:
the specified argument as a String.
Throws:
ParseException - NEVER
See Also:
String, StringParser.parse(String)


Copyright © 2002-2004, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap