org.emboss.jemboss.parser.acd
Class ApplicationParam

java.lang.Object
  extended byorg.emboss.jemboss.parser.acd.ApplicationParam

public class ApplicationParam
extends java.lang.Object

Object for a parameter of a field in the EMBOSS ACD file


Field Summary
private  java.lang.String attribute
          parameter/attribute type
private  double nvalue
          parameter number value
private  java.lang.String svalue
          parameter string value
 
Constructor Summary
ApplicationParam(java.lang.String attr, double nval)
           
ApplicationParam(java.lang.String attr, java.lang.String sval)
           
 
Method Summary
 java.lang.String getAttribute()
          Get the parameter/attribute type
 double getValueDbl()
          Get the parameter value
 java.lang.String getValueStr()
          Get the parameter value
 boolean isParamValueString()
          Determine if the parameter has a string value
private  void setAttribute(java.lang.String attribute)
          Set the attribute/parameter type
 void setValue(double nvalue)
          Set the parameter number value
 void setValue(java.lang.String svalue)
          Set the parameter string value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attribute

private java.lang.String attribute
parameter/attribute type


svalue

private java.lang.String svalue
parameter string value


nvalue

private double nvalue
parameter number value

Constructor Detail

ApplicationParam

public ApplicationParam(java.lang.String attr,
                        java.lang.String sval)
Parameters:
attr - parameter/attribute type
sval - parameter string value

ApplicationParam

public ApplicationParam(java.lang.String attr,
                        double nval)
Parameters:
attr - parameter/attribute type
nval - parameter number value
Method Detail

setAttribute

private void setAttribute(java.lang.String attribute)
Set the attribute/parameter type


setValue

public void setValue(java.lang.String svalue)
Set the parameter string value


setValue

public void setValue(double nvalue)
Set the parameter number value


getAttribute

public java.lang.String getAttribute()
Get the parameter/attribute type

Returns:
parameter/attribute type

getValueStr

public java.lang.String getValueStr()
Get the parameter value

Returns:
parameter value

getValueDbl

public double getValueDbl()
Get the parameter value

Returns:
parameter value

isParamValueString

public boolean isParamValueString()
Determine if the parameter has a string value

Returns:
true if the parameter has a string value