databionics.modules
Class InputFileParameter

java.lang.Object
  extended by databionics.modules.Parameter
      extended by databionics.modules.AbstractStringParameter
          extended by databionics.modules.AbstractFileParameter
              extended by databionics.modules.InputFileParameter

public class InputFileParameter
extends AbstractFileParameter

FileParameter for input files.


Field Summary
protected static org.apache.log4j.Logger log
          log4j logging
 
Fields inherited from class databionics.modules.AbstractFileParameter
type
 
Fields inherited from class databionics.modules.AbstractStringParameter
def, value
 
Fields inherited from class databionics.modules.Parameter
constant, description, longName, name, optional
 
Constructor Summary
InputFileParameter()
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 void setValue(java.lang.String var)
          Set the value.
 java.lang.String toXml()
          XML representation
static InputFileParameter valueOf(org.w3c.dom.Element el)
          Create a FileParameter from an XML tag
 
Methods inherited from class databionics.modules.AbstractFileParameter
getType, setType
 
Methods inherited from class databionics.modules.AbstractStringParameter
getDefault, getValue, getValueAsString, setDefault, toString
 
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

Constructor Detail

InputFileParameter

public InputFileParameter()
Method Detail

setValue

public void setValue(java.lang.String var)
Set the value. If a file named var exists, this method checks, if it has the right extension and sets value as the filename. If no file named var exists, this method attaches the needed extension and checks if a file with the new name exists.

Overrides:
setValue in class AbstractStringParameter
Parameters:
var - the path of the file

clone

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

Specified by:
clone in class Parameter

valueOf

public static InputFileParameter valueOf(org.w3c.dom.Element el)
Create a FileParameter 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.