databionics.modules
Class SwitchParameter

java.lang.Object
  extended by databionics.modules.Parameter
      extended by databionics.modules.SwitchParameter

public class SwitchParameter
extends Parameter

Switch parameter without an argument.


Field Summary
protected  java.lang.Boolean def
          default value
protected static org.apache.log4j.Logger log
          log4j logging
protected  java.lang.Boolean value
          parameter value
 
Fields inherited from class databionics.modules.Parameter
constant, description, longName, name, optional
 
Constructor Summary
SwitchParameter()
          Default constructor
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 java.lang.Boolean getDefault()
          Get the default value
 java.lang.Boolean getValue()
          Get the value or, if value is not defined, the default value
 java.lang.String getValueAsString()
          String representation of value.
 void setDefault(boolean var)
          Set the default value
 void setDefault(java.lang.Boolean var)
          Set the default value
 void setValue(boolean var)
          Set the value
 void setValue(java.lang.Boolean var)
          Set the value
 java.lang.String toString()
          String representation with name and value as needed for starting a tool.
 java.lang.String toXml()
          XML representation
static SwitchParameter valueOf(org.w3c.dom.Element el)
          Create a IntParameter from an XML tag
 
Methods inherited from class databionics.modules.Parameter
getDescription, getLongName, getName, isConstant, isOptional, setConstant, setDescription, setLongName, setName, setOptional
 
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.Boolean def
default value


value

protected java.lang.Boolean value
parameter value

Constructor Detail

SwitchParameter

public SwitchParameter()
Default constructor

Method Detail

getValue

public java.lang.Boolean 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.Boolean var)
Set the value


setValue

public void setValue(boolean var)
Set the value


getDefault

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


setDefault

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


setDefault

public void setDefault(boolean var)
Set the default value


clone

public java.lang.Object clone()
Creates and returns a copy of this object.

Specified by:
clone in class Parameter

toString

public java.lang.String toString()
String representation with name and value as needed for starting a tool.

Specified by:
toString in class Parameter

valueOf

public static SwitchParameter valueOf(org.w3c.dom.Element el)
Create a IntParameter from an XML tag


toXml

public java.lang.String toXml()
XML representation

Specified by:
toXml in class Parameter


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