databionics.modules
Class AbstractStringParameter

java.lang.Object
  extended by databionics.modules.Parameter
      extended by databionics.modules.AbstractStringParameter
Direct Known Subclasses:
AbstractFileParameter, FolderParameter, StringParameter

public abstract class AbstractStringParameter
extends Parameter

Base class for all string parameters


Field Summary
protected  java.lang.String def
          default value
protected static org.apache.log4j.Logger log
          log4j logging
protected  java.lang.String value
          parameter value
 
Fields inherited from class databionics.modules.Parameter
constant, description, longName, name, optional
 
Constructor Summary
AbstractStringParameter()
           
 
Method Summary
 java.lang.String getDefault()
          Get the default value
 java.lang.String getValue()
          Get the value or, if value is not defined, the default value
 java.lang.String getValueAsString()
          String representation of value.
 void setDefault(java.lang.String var)
          Set the default value
 void setValue(java.lang.String var)
          Set the value
 java.lang.String toString()
          String representation with name and value as needed for starting a tool.
 
Methods inherited from class databionics.modules.Parameter
clone, getDescription, getLongName, getName, isConstant, isOptional, setConstant, setDescription, setLongName, setName, setOptional, toXml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
log4j logging


def

protected java.lang.String def
default value


value

protected java.lang.String value
parameter value

Constructor Detail

AbstractStringParameter

public AbstractStringParameter()
Method Detail

getValue

public java.lang.String getValue()
Get the value or, if value is not defined, the default value


getValueAsString

public java.lang.String getValueAsString()
String representation of value.

Specified by:
getValueAsString in class Parameter

setValue

public void setValue(java.lang.String var)
Set the value


getDefault

public java.lang.String getDefault()
Get the default value


setDefault

public void setDefault(java.lang.String var)
Set the default value


toString

public java.lang.String toString()
String representation with name and value as needed for starting a tool. If the name contains a "*", only the value is returned. If the name empty, the empty string is returned.

Specified by:
toString in class Parameter


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.