gov.nih.nci.caarray.domain.data
Class FloatColumn

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.data.AbstractDataColumn
          extended by gov.nih.nci.caarray.domain.data.FloatColumn
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

public class FloatColumn
extends AbstractDataColumn

Contains a column of float values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.data.AbstractDataColumn
ERROR_NOT_INITIALIZED, SEPARATOR
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
FloatColumn()
           
 
Method Summary
 float[] getValues()
           
 java.io.Serializable getValuesAsArray()
          Serialized values, from the DataStorageFacade.
 java.lang.String getValuesAsString()
           
 void initializeArray(int numberOfValues)
          Initializes this column to hold the number of values given.
 boolean isLoaded()
          Indicates whether this column is already loaded, meaning its populated with an array of values.
 void setValues(float[] values)
           
 void setValuesAsString(java.lang.String s)
          Set values from a String representation.
 void setValuesFromArray(java.io.Serializable array)
          Set the values of this column from a value array.
 
Methods inherited from class gov.nih.nci.caarray.domain.data.AbstractDataColumn
getDataHandle, getHybridizationData, getQuantitationType, setDataHandle, setHybridizationData, setQuantitationType
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatColumn

public FloatColumn()
Method Detail

getValues

public float[] getValues()
Returns:
the values

setValues

public void setValues(float[] values)
Parameters:
values - the values to set

getValuesAsString

public java.lang.String getValuesAsString()
Specified by:
getValuesAsString in class AbstractDataColumn
Returns:
the values of this column, in a space-separated representation, where each value is encoded using the literal representation of the xs:float type defined in the XML Schema standard.

setValuesAsString

public void setValuesAsString(java.lang.String s)
Set values from a String representation. The string should contain a list of space-separated values, with each value encoded using the literal representation of the xs:double type defined in XML Schema.

Specified by:
setValuesAsString in class AbstractDataColumn
Parameters:
s - the string containing the space-separated values

setValuesFromArray

public void setValuesFromArray(java.io.Serializable array)
Set the values of this column from a value array. The incoming values should be coming from either a parsed file, or the DataStorageFacade.

Specified by:
setValuesFromArray in class AbstractDataColumn
Parameters:
array - the values for this column. Should be an array of the appropriate primitive or String type.

getValuesAsArray

public java.io.Serializable getValuesAsArray()
Serialized values, from the DataStorageFacade.

Specified by:
getValuesAsArray in class AbstractDataColumn
Returns:
the values in this column as an array. Subclasses should return an array of the appropriate primitive type or String.

initializeArray

public void initializeArray(int numberOfValues)
Initializes this column to hold the number of values given.

Specified by:
initializeArray in class AbstractDataColumn
Parameters:
numberOfValues - number of values

isLoaded

public boolean isLoaded()
Indicates whether this column is already loaded, meaning its populated with an array of values.

Specified by:
isLoaded in class AbstractDataColumn
Returns:
true if data has been loaded.