gov.nih.nci.caarray.external.v1_0.data
Class ShortColumn

java.lang.Object
  extended by gov.nih.nci.caarray.external.v1_0.data.AbstractDataColumn
      extended by gov.nih.nci.caarray.external.v1_0.data.ShortColumn
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public final class ShortColumn
extends AbstractDataColumn

A ShortColumn represents a data column with short values.

Author:
dkokotov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.external.v1_0.data.AbstractDataColumn
SEPARATOR
 
Constructor Summary
ShortColumn()
           
 
Method Summary
protected  java.io.Serializable getSerializableValues()
          Get the values array of this column.
 short[] getValues()
           
 java.lang.String getValuesAsString()
           
protected  void setSerializableValues(java.io.Serializable serValues)
          Set the values array of this column.
 void setValues(short[] values)
           
 void setValuesAsString(java.lang.String s)
          Set values from a String representation.
 
Methods inherited from class gov.nih.nci.caarray.external.v1_0.data.AbstractDataColumn
equals, getQuantitationType, hashCode, readExternal, setQuantitationType, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortColumn

public ShortColumn()
Method Detail

getValues

public short[] getValues()
Returns:
the values

setValues

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

getSerializableValues

protected java.io.Serializable getSerializableValues()
Get the values array of this column. This should be implemented by a simple call to getValues in the subclasses; this separate method is only needed because generics do not work well with primitive arrays.

Specified by:
getSerializableValues in class AbstractDataColumn
Returns:
the values array for this column

setSerializableValues

protected void setSerializableValues(java.io.Serializable serValues)
Set the values array of this column. This should be implemented by a simple call to setValues in the subclasses; this separate method is only needed because generics do not work well with primitive arrays.

Specified by:
setSerializableValues in class AbstractDataColumn
Parameters:
serValues - the values array to set

getValuesAsString

public java.lang.String getValuesAsString()
Returns:
the values of this column, in a space-separated representation, where each value is encoded using the literal representation of the xs:short 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:short type defined in XML Schema.

Parameters:
s - the string containing the space-separated values