|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.modules.Parameter
public abstract class Parameter
Base class for all parameters. A parameter is a command line argument neede when runnint a Tool.
Field Summary | |
---|---|
protected boolean |
constant
flag whether this parameter should be constant or changeable |
protected java.lang.String |
description
decription to be displayed in dialogs |
protected static org.apache.log4j.Logger |
log
log4j logging |
protected java.lang.String |
longName
long name |
protected java.lang.String |
name
short name |
protected boolean |
optional
flag whether this parameter is optional or required |
Constructor Summary | |
---|---|
Parameter()
|
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getDescription()
Get decription to be displayed in dialogs |
java.lang.String |
getLongName()
Get the long name to be used as "--longname" |
java.lang.String |
getName()
Get the name to be used as "-name" |
abstract java.lang.String |
getValueAsString()
String representation of argument value. |
boolean |
isConstant()
Get flag whether this parameter should be constant or changeable |
boolean |
isOptional()
Get flag whether this parameter is optional or required |
void |
setConstant(boolean c)
Set flag whether this parameter should be constant or changeable |
void |
setDescription(java.lang.String s)
Set decription to be displayed in dialogs |
void |
setLongName(java.lang.String s)
Set the long name to be used as "--longname" |
void |
setName(java.lang.String s)
Set the name to be used as "-name" |
void |
setOptional(boolean opt)
Set flag whether this parameter is optional or required |
abstract java.lang.String |
toString()
String representation. |
abstract java.lang.String |
toXml()
XML representation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected java.lang.String name
protected java.lang.String longName
protected java.lang.String description
protected boolean optional
protected boolean constant
Constructor Detail |
---|
public Parameter()
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getLongName()
public java.lang.String getDescription()
public boolean isOptional()
public boolean isConstant()
public void setName(java.lang.String s)
public void setLongName(java.lang.String s)
public void setDescription(java.lang.String s)
public void setOptional(boolean opt)
public void setConstant(boolean c)
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public abstract java.lang.String getValueAsString()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String toXml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |