org.openscience.nmrshiftdb.util
Class ValuesForVelocityBean

java.lang.Object
  extended by org.openscience.nmrshiftdb.util.ValuesForVelocityBean
All Implemented Interfaces:
java.io.Serializable

public class ValuesForVelocityBean
extends java.lang.Object
implements java.io.Serializable

This is a java bean needed for putting data into the velocity context

Author:
shk3
See Also:
Serialized Form

Field Summary
private  org.openscience.cdk.interfaces.IAtom atom
           
private  java.util.ArrayList couplings
           
private  java.lang.Integer currentSelectedNumber
           
private  java.lang.String delta
           
private  java.lang.String displayText
           
private  java.lang.String identifier
           
private  java.lang.String intensity
           
private  boolean isInRange
           
private  double lower
           
private  java.lang.String multiplicity
           
private  java.lang.String nameForElements
           
private  java.util.ArrayList possibleAtomNumbers
           
private  java.lang.String range
           
 double[] statistics
          Description of the Field
 double[] statistics2
          Description of the Field
private  double upper
           
private  java.lang.Float value
           
 
Constructor Summary
ValuesForVelocityBean()
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.Float value, java.lang.String nameForElements, double lower, double upper, java.lang.String range, java.lang.String displayText)
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.Float value, java.lang.String nameForElements, double lower, double upper, java.lang.String range, java.lang.String displayText, boolean isInRange)
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.Float value, java.lang.String nameForElements, double lower, double upper, java.lang.String range, java.lang.String displayText, org.openscience.cdk.interfaces.IAtom atom)
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.Float value, java.lang.String nameForElements, double lower, double upper, java.lang.String range, java.lang.String displayText, java.lang.String delta)
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.Float value, java.lang.String nameForElements, double lower, double upper, java.lang.String range, java.lang.String displayText, java.lang.String delta, java.lang.String multis)
          Constructor for the ValuesForVelocityBean object
ValuesForVelocityBean(java.lang.String displayText, java.lang.String nameForElements, java.lang.String range)
          Constructor for the ValuesForVelocityBean object
 
Method Summary
 org.openscience.cdk.interfaces.IAtom getAtom()
          Gets the atom attribute of the ValuesForVelocityBean object
 java.util.ArrayList getCouplings()
          Gets the couplings attribute of the ValuesForVelocityBean object
 java.lang.Integer getCurrentSelectedNumber()
          Gets the currentSelectedNumber attribute of the ValuesForVelocityBean object
 java.lang.String getDelta()
          Gets the delta attribute of the ValuesForVelocityBean object
 java.lang.String getDeltaEsc()
          Gets the delta attribute of the ValuesForVelocityBean object.
 java.lang.String getDisplayText()
          Gets the displayText attribute of the ValuesForVelocityBean object
 java.lang.String getIdentifier()
          Gets the identifier attribute of the ValuesForVelocityBean object
 java.lang.String getIdentifierEsc()
          Gets the identifier attribute of the ValuesForVelocityBean object, & escaped.
 java.lang.String getIntensity()
          Gets the intensity attribute of the ValuesForVelocityBean object
 java.lang.String getIntensityEsc()
          Gets the intensity attribute of the ValuesForVelocityBean object
 boolean getIsInRange()
          Gets the isInRange attribute of the ValuesForVelocityBean object
 double getLower()
          Gets the lower attribute of the ValuesForVelocityBean object
 int getLowerAsInt()
          Gets the lower attribute of the ValuesForVelocityBean object as an integer
 java.lang.String getMultiplicity()
          Gets the multiplicity attribute of the ValuesForVelocityBean object
 java.lang.String getNameForElements()
          Gets the nameForElements attribute of the ValuesForVelocityBean object
 java.util.ArrayList getPossibleAtomNumbers()
          Gets the possibleAtomNumbers attribute of the ValuesForVelocityBean object
 java.lang.String getRange()
          Gets the range attribute of the ValuesForVelocityBean object
 java.lang.String getRangeWithoutZeros(org.apache.turbine.util.RunData runData)
          Gets the range attribute formatted without the assignemnts and intensities, if zero.
 java.lang.String getStatistics(int i)
          Gets the ith values of the statistics attribute of the ValuesForVelocityBean object.
 java.lang.String getStatistics2(int i)
          Gets the ith values of the statistics2 attribute of the ValuesForVelocityBean object.
 double getUpper()
          Gets the upper attribute of the ValuesForVelocityBean object
 java.lang.Float getValue()
          Gets the value attribute of the ValuesForVelocityBean object
 java.lang.Integer getValueAsInt()
          Gets the value attribute of the ValuesForVelocityBean object as an Integer.
 java.lang.Integer getValueAsIntPlus1()
          Gets the value attribute +1 of the ValuesForVelocityBean object as an Integer.
 void setCouplings(java.util.ArrayList v)
          Sets the couplings attribute of the ValuesForVelocityBean object
 void setCurrentSelectedNumber(java.lang.Integer i)
          Sets the currentSelectedNumber attribute of the ValuesForVelocityBean object
 void setDelta(java.lang.String delta)
          Sets the delta attribute of the ValuesForVelocityBean object
 void setDisplayText(java.lang.String t)
          Sets the displayText attribute of the ValuesForVelocityBean object
 void setIdentifier(java.lang.String i)
          Sets the identifier attribute of the ValuesForVelocityBean object
 void setIntensity(java.lang.String intensity)
          Sets the intensity attribute of the ValuesForVelocityBean object
 void setIsInRange(boolean s)
          Sets the isInRange attribute of the ValuesForVelocityBean object
 void setLower(float d)
          Sets the lower attribute of the ValuesForVelocityBean object
 void setMultiplicity(java.lang.String m)
          Sets the multiplicity attribute of the ValuesForVelocityBean object
 void setNameForElements(java.lang.String s)
          Sets the nameForElements attribute of the ValuesForVelocityBean object
 void setPossibleAtomNumbers(java.util.ArrayList v)
          Sets the possibleAtomNumbers attribute of the ValuesForVelocityBean object
 void setRange(java.lang.String s)
          Sets the range attribute of the ValuesForVelocityBean object
 void setUpper(float d)
          Sets the upper attribute of the ValuesForVelocityBean object
 void setValue(java.lang.Float f)
          Sets the value attribute of the ValuesForVelocityBean object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statistics

public double[] statistics
Description of the Field


statistics2

public double[] statistics2
Description of the Field


displayText

private java.lang.String displayText

range

private java.lang.String range

value

private java.lang.Float value

lower

private double lower

upper

private double upper

nameForElements

private java.lang.String nameForElements

isInRange

private boolean isInRange

possibleAtomNumbers

private java.util.ArrayList possibleAtomNumbers

currentSelectedNumber

private java.lang.Integer currentSelectedNumber

multiplicity

private java.lang.String multiplicity

delta

private java.lang.String delta

identifier

private java.lang.String identifier

intensity

private java.lang.String intensity

atom

private org.openscience.cdk.interfaces.IAtom atom

couplings

private java.util.ArrayList couplings
Constructor Detail

ValuesForVelocityBean

public ValuesForVelocityBean()
Constructor for the ValuesForVelocityBean object


ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.String displayText,
                             java.lang.String nameForElements,
                             java.lang.String range)
Constructor for the ValuesForVelocityBean object

Parameters:
displayText - The text to display
range - The range
nameForElements - Description of Parameter

ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.Float value,
                             java.lang.String nameForElements,
                             double lower,
                             double upper,
                             java.lang.String range,
                             java.lang.String displayText)
Constructor for the ValuesForVelocityBean object

Parameters:
value - The value
nameForElements - The name for elements
range - The range
lower - Upper
upper - Lower
displayText - The text to display

ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.Float value,
                             java.lang.String nameForElements,
                             double lower,
                             double upper,
                             java.lang.String range,
                             java.lang.String displayText,
                             org.openscience.cdk.interfaces.IAtom atom)
Constructor for the ValuesForVelocityBean object

Parameters:
value - The value
nameForElements - The name for elements
range - The range
lower - Upper
upper - Lower
displayText - The text to display
atom - The atom this line refers to.

ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.Float value,
                             java.lang.String nameForElements,
                             double lower,
                             double upper,
                             java.lang.String range,
                             java.lang.String displayText,
                             java.lang.String delta)
Constructor for the ValuesForVelocityBean object

Parameters:
value - The value
nameForElements - The name for elements
range - The range
lower - Upper
upper - Lower
displayText - The text to display
delta - Description of Parameter

ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.Float value,
                             java.lang.String nameForElements,
                             double lower,
                             double upper,
                             java.lang.String range,
                             java.lang.String displayText,
                             boolean isInRange)
Constructor for the ValuesForVelocityBean object

Parameters:
value - The value
nameForElements - The name for elements
range - The range
lower - Upper
upper - Lower
displayText - The text to display
isInRange - Says if value is between lower and upper

ValuesForVelocityBean

public ValuesForVelocityBean(java.lang.Float value,
                             java.lang.String nameForElements,
                             double lower,
                             double upper,
                             java.lang.String range,
                             java.lang.String displayText,
                             java.lang.String delta,
                             java.lang.String multis)
Constructor for the ValuesForVelocityBean object

Parameters:
value - The value
nameForElements - The name for elements
range - The range
lower - Upper
upper - Lower
displayText - The text to display
delta - Description of Parameter
multis - Description of Parameter
Method Detail

setValue

public void setValue(java.lang.Float f)
Sets the value attribute of the ValuesForVelocityBean object

Parameters:
f - The new value value

setNameForElements

public void setNameForElements(java.lang.String s)
Sets the nameForElements attribute of the ValuesForVelocityBean object

Parameters:
s - The new nameForElements value

setIsInRange

public void setIsInRange(boolean s)
Sets the isInRange attribute of the ValuesForVelocityBean object

Parameters:
s - The new isInRange value

setRange

public void setRange(java.lang.String s)
Sets the range attribute of the ValuesForVelocityBean object

Parameters:
s - The new range value

setUpper

public void setUpper(float d)
Sets the upper attribute of the ValuesForVelocityBean object

Parameters:
d - The new upper value

setLower

public void setLower(float d)
Sets the lower attribute of the ValuesForVelocityBean object

Parameters:
d - The new lower value

setDisplayText

public void setDisplayText(java.lang.String t)
Sets the displayText attribute of the ValuesForVelocityBean object

Parameters:
t - The new displayText value

setPossibleAtomNumbers

public void setPossibleAtomNumbers(java.util.ArrayList v)
Sets the possibleAtomNumbers attribute of the ValuesForVelocityBean object

Parameters:
v - The new possibleAtomNumbers value

setCurrentSelectedNumber

public void setCurrentSelectedNumber(java.lang.Integer i)
Sets the currentSelectedNumber attribute of the ValuesForVelocityBean object

Parameters:
i - The new currentSelectedNumber value

setMultiplicity

public void setMultiplicity(java.lang.String m)
Sets the multiplicity attribute of the ValuesForVelocityBean object

Parameters:
m - The new multiplicity value

setDelta

public void setDelta(java.lang.String delta)
Sets the delta attribute of the ValuesForVelocityBean object

Parameters:
delta - The new delta value

setIdentifier

public void setIdentifier(java.lang.String i)
Sets the identifier attribute of the ValuesForVelocityBean object

Parameters:
i - The new identifier value

setIntensity

public void setIntensity(java.lang.String intensity)
Sets the intensity attribute of the ValuesForVelocityBean object

Parameters:
intensity - The new intensity value

setCouplings

public void setCouplings(java.util.ArrayList v)
Sets the couplings attribute of the ValuesForVelocityBean object

Parameters:
v - The new couplings value

getDelta

public java.lang.String getDelta()
Gets the delta attribute of the ValuesForVelocityBean object

Returns:
The delta value

getDeltaEsc

public java.lang.String getDeltaEsc()
Gets the delta attribute of the ValuesForVelocityBean object. & escaped

Returns:
The delta value

getValueAsIntPlus1

public java.lang.Integer getValueAsIntPlus1()
Gets the value attribute +1 of the ValuesForVelocityBean object as an Integer.

Returns:
The value as an Integer.

getValueAsInt

public java.lang.Integer getValueAsInt()
Gets the value attribute of the ValuesForVelocityBean object as an Integer.

Returns:
The value as an Integer.

getIsInRange

public boolean getIsInRange()
Gets the isInRange attribute of the ValuesForVelocityBean object

Returns:
The isInRange value

getNameForElements

public java.lang.String getNameForElements()
Gets the nameForElements attribute of the ValuesForVelocityBean object

Returns:
The nameForElements value

getValue

public java.lang.Float getValue()
Gets the value attribute of the ValuesForVelocityBean object

Returns:
The value value

getRange

public java.lang.String getRange()
Gets the range attribute of the ValuesForVelocityBean object

Returns:
The range value

getUpper

public double getUpper()
Gets the upper attribute of the ValuesForVelocityBean object

Returns:
The upper value

getLower

public double getLower()
Gets the lower attribute of the ValuesForVelocityBean object

Returns:
The lower value

getLowerAsInt

public int getLowerAsInt()
Gets the lower attribute of the ValuesForVelocityBean object as an integer

Returns:
The lower value

getIdentifier

public java.lang.String getIdentifier()
Gets the identifier attribute of the ValuesForVelocityBean object

Returns:
The identifier value

getIdentifierEsc

public java.lang.String getIdentifierEsc()
Gets the identifier attribute of the ValuesForVelocityBean object, & escaped.

Returns:
The identifier value

getDisplayText

public java.lang.String getDisplayText()
Gets the displayText attribute of the ValuesForVelocityBean object

Returns:
The displayText value

getPossibleAtomNumbers

public java.util.ArrayList getPossibleAtomNumbers()
Gets the possibleAtomNumbers attribute of the ValuesForVelocityBean object

Returns:
The possibleAtomNumbers value

getCurrentSelectedNumber

public java.lang.Integer getCurrentSelectedNumber()
Gets the currentSelectedNumber attribute of the ValuesForVelocityBean object

Returns:
The currentSelectedNumber value

getMultiplicity

public java.lang.String getMultiplicity()
Gets the multiplicity attribute of the ValuesForVelocityBean object

Returns:
The multiplicity value

getRangeWithoutZeros

public java.lang.String getRangeWithoutZeros(org.apache.turbine.util.RunData runData)
                                      throws java.lang.Exception
Gets the range attribute formatted without the assignemnts and intensities, if zero.

Returns:
The formatted range.
Throws:
java.lang.Exception

getIntensity

public java.lang.String getIntensity()
Gets the intensity attribute of the ValuesForVelocityBean object

Returns:
The intensity value

getIntensityEsc

public java.lang.String getIntensityEsc()
Gets the intensity attribute of the ValuesForVelocityBean object

Returns:
The intensity value

getStatistics

public java.lang.String getStatistics(int i)
Gets the ith values of the statistics attribute of the ValuesForVelocityBean object.

Parameters:
i - index.
Returns:
The ith statistics value.

getStatistics2

public java.lang.String getStatistics2(int i)
Gets the ith values of the statistics2 attribute of the ValuesForVelocityBean object.

Parameters:
i - index.
Returns:
The ith statistics value.

getAtom

public org.openscience.cdk.interfaces.IAtom getAtom()
Gets the atom attribute of the ValuesForVelocityBean object

Returns:
The atom value

getCouplings

public java.util.ArrayList getCouplings()
Gets the couplings attribute of the ValuesForVelocityBean object

Returns:
The couplings value