Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.desc.result
Class DoubleResult  view DoubleResult download DoubleResult.java

java.lang.Object
  extended byjoelib.data.JOEGenericData
      extended byjoelib.data.JOEPairData
          extended byjoelib.desc.result.DoubleResult
All Implemented Interfaces:
java.lang.Cloneable, joelib.desc.DescResult, joelib.desc.NativeValue, joelib.desc.NumberFormatDescResult, joelib.io.types.cml.ResultCMLProperties, java.io.Serializable

public class DoubleResult
extends joelib.data.JOEPairData
implements java.lang.Cloneable, joelib.desc.DescResult, joelib.desc.NativeValue, joelib.io.types.cml.ResultCMLProperties, joelib.desc.NumberFormatDescResult, java.io.Serializable

Double results.


Field Summary
private  java.util.Hashtable cmlProperties
           
private static org.apache.log4j.Category logger
          Obtain a suitable logger.
 double value
          Description of the Field
 
Fields inherited from class joelib.data.JOEPairData
_value
 
Fields inherited from class joelib.data.JOEGenericData
dataType
 
Constructor Summary
DoubleResult()
          Constructor for the DoubleResult object
 
Method Summary
 void addCMLProperty(joelib.util.types.StringString property)
           
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 DoubleResult clone(DoubleResult _target)
           
 java.lang.String formatDescription(joelib.io.IOType ioType)
          Description of the Method
 boolean fromPairData(joelib.io.IOType ioType, joelib.data.JOEPairData pairData)
          Description of the Method
 boolean fromString(joelib.io.IOType ioType, java.lang.String sValue)
          Description of the Method
 java.util.Enumeration getCMLProperties()
           
 double getDouble()
          Gets the double attribute of the DoubleResult object
 double getDoubleNV()
          Gets the doubleNV attribute of the DoubleResult object
 int getIntNV()
          Gets the intNV attribute of the DoubleResult object
 java.lang.String getStringNV()
          Gets the stringNV attribute of the DoubleResult object
 boolean init(java.lang.String _descName)
          Constructor for the DoubleResult object
 boolean isDoubleNV()
          Gets the doubleNV attribute of the DoubleResult object
 boolean isIntNV()
          Gets the intNV attribute of the DoubleResult object
 void setDouble(double _v)
          Sets the double attribute of the DoubleResult object
 void setDoubleNV(double _value)
          Sets the doubleNV attribute of the DoubleResult object
 void setIntNV(int _value)
          Sets the intNV attribute of the DoubleResult object
 void setStringNV(java.lang.String _value)
          Sets the stringNV attribute of the DoubleResult object
 java.lang.String toString(joelib.io.IOType ioType)
          Description of the Method
 java.lang.String toString(joelib.io.IOType ioType, wsi.ra.text.DecimalFormatter format)
          Description of the Method
 
Methods inherited from class joelib.data.JOEPairData
getValue, setValue, toString
 
Methods inherited from class joelib.data.JOEGenericData
equals, finalize, getAttribute, getDataType, setAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Category logger
Obtain a suitable logger.


value

public double value
Description of the Field


cmlProperties

private java.util.Hashtable cmlProperties
Constructor Detail

DoubleResult

public DoubleResult()
Constructor for the DoubleResult object

Method Detail

getCMLProperties

public java.util.Enumeration getCMLProperties()
Specified by:
getCMLProperties in interface joelib.io.types.cml.ResultCMLProperties

setDouble

public void setDouble(double _v)
Sets the double attribute of the DoubleResult object


getDouble

public double getDouble()
Gets the double attribute of the DoubleResult object


setDoubleNV

public void setDoubleNV(double _value)
Sets the doubleNV attribute of the DoubleResult object

Specified by:
setDoubleNV in interface joelib.desc.NativeValue

getDoubleNV

public double getDoubleNV()
Gets the doubleNV attribute of the DoubleResult object

Specified by:
getDoubleNV in interface joelib.desc.NativeValue

isDoubleNV

public boolean isDoubleNV()
Gets the doubleNV attribute of the DoubleResult object

Specified by:
isDoubleNV in interface joelib.desc.NativeValue

setIntNV

public void setIntNV(int _value)
Sets the intNV attribute of the DoubleResult object

Specified by:
setIntNV in interface joelib.desc.NativeValue

getIntNV

public int getIntNV()
Gets the intNV attribute of the DoubleResult object

Specified by:
getIntNV in interface joelib.desc.NativeValue

isIntNV

public boolean isIntNV()
Gets the intNV attribute of the DoubleResult object

Specified by:
isIntNV in interface joelib.desc.NativeValue

setStringNV

public void setStringNV(java.lang.String _value)
Sets the stringNV attribute of the DoubleResult object

Specified by:
setStringNV in interface joelib.desc.NativeValue

getStringNV

public java.lang.String getStringNV()
Gets the stringNV attribute of the DoubleResult object

Specified by:
getStringNV in interface joelib.desc.NativeValue

addCMLProperty

public void addCMLProperty(joelib.util.types.StringString property)
Specified by:
addCMLProperty in interface joelib.io.types.cml.ResultCMLProperties

clone

public DoubleResult clone(DoubleResult _target)

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 

Specified by:
clone in interface joelib.desc.DescResult

formatDescription

public java.lang.String formatDescription(joelib.io.IOType ioType)
Description of the Method

Specified by:
formatDescription in interface joelib.desc.DescResult

fromPairData

public boolean fromPairData(joelib.io.IOType ioType,
                            joelib.data.JOEPairData pairData)
                     throws java.lang.NumberFormatException
Description of the Method

Specified by:
fromPairData in interface joelib.desc.DescResult

fromString

public boolean fromString(joelib.io.IOType ioType,
                          java.lang.String sValue)
                   throws java.lang.NumberFormatException
Description of the Method

Specified by:
fromString in interface joelib.desc.DescResult

init

public boolean init(java.lang.String _descName)
Constructor for the DoubleResult object

Specified by:
init in interface joelib.desc.DescResult

toString

public java.lang.String toString(joelib.io.IOType ioType)
Description of the Method

Specified by:
toString in interface joelib.desc.DescResult

toString

public java.lang.String toString(joelib.io.IOType ioType,
                                 wsi.ra.text.DecimalFormatter format)
Description of the Method

Specified by:
toString in interface joelib.desc.NumberFormatDescResult