public abstract class PropertyStringParser extends StringParser
StringParser subclass that provides a means for setting/getting properties.
This
is intended to support StringParsers that might requires some configuration,
such
as DateStringParser (which needs a format String).StringParser,
DateStringParser| Constructor and Description |
|---|
PropertyStringParser() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProperty(java.lang.String key)
Returns the property associated with the specified key, or null if no
such
property exists.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns the property associated with the specified key, or the specified
default value if no such property exists.
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the property with the specified key to the specified value.
|
parse, setUp, tearDownpublic void setProperty(java.lang.String key,
java.lang.String value)
key - the key of the property to set.value - the value to associated with the specified key.Properties.setProperty(String,String)public java.lang.String getProperty(java.lang.String key)
key - the key of the desired propertypublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
key - the key of the desired propertydefaultValue - the default value to return if no such property existsCopyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap