cfa.vo.sed.dm
Class SingleValue

java.lang.Object
  extended by cfa.vo.sed.dm.SingleValue
All Implemented Interfaces:
IValue
Direct Known Subclasses:
PointsParam

public class SingleValue
extends java.lang.Object
implements IValue


Field Summary
protected  boolean _isConstant
           
protected  boolean _isSet
           
protected  java.lang.String _name
           
protected static int _size
           
protected  java.lang.String _type
           
protected  java.lang.String _ucd
           
protected  java.lang.String _units
           
protected  java.lang.Object _value
           
 
Constructor Summary
SingleValue()
           
SingleValue(IValue value, int index)
           
SingleValue(java.lang.Object value, java.lang.String datatype)
           
SingleValue(java.lang.Object value, java.lang.String ucd, java.lang.String name, java.lang.String units, java.lang.String type)
           
SingleValue(java.lang.String ucd)
           
 
Method Summary
 void addDataValue(java.lang.Object value, java.lang.String datatype)
           
 java.util.Vector getData()
           
 java.lang.String getDatatype()
           
 java.lang.Object getDataValue(int index)
           
 java.lang.String getName()
          Gets the value of the name property.
 long getSize()
           
 java.lang.String getUCD()
          Gets the value of the UCD property.
 java.lang.String getUnits()
          Gets the value of the units property.
 boolean isConstant()
          Gets the isConstant property.
 boolean isSet()
           
 void setIsConstant(boolean constant)
          Sets the isConstant property.
 void setName(java.lang.String name)
          Sets the value of the name property
 void setUCD(java.lang.String ucd)
          Sets the value of the UCD property
 void setUnits(java.lang.String units)
          Sets the value of the unit property
 java.lang.String toString()
          Override Object's toString() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_value

protected java.lang.Object _value

_ucd

protected java.lang.String _ucd

_name

protected java.lang.String _name

_units

protected java.lang.String _units

_type

protected java.lang.String _type

_isSet

protected boolean _isSet

_isConstant

protected boolean _isConstant

_size

protected static final int _size
See Also:
Constant Field Values
Constructor Detail

SingleValue

public SingleValue()

SingleValue

public SingleValue(java.lang.String ucd)

SingleValue

public SingleValue(IValue value,
                   int index)
            throws SEDException
Throws:
SEDException

SingleValue

public SingleValue(java.lang.Object value,
                   java.lang.String datatype)

SingleValue

public SingleValue(java.lang.Object value,
                   java.lang.String ucd,
                   java.lang.String name,
                   java.lang.String units,
                   java.lang.String type)
Method Detail

isConstant

public boolean isConstant()
Gets the isConstant property. Default is false. Set to true if it is part of a set of data points, but represents the constant portion of the coordinate.

Specified by:
isConstant in interface IValue
Returns:
boolean

setIsConstant

public void setIsConstant(boolean constant)
Sets the isConstant property. Typically should only need to set to true, when necessary. This happens when the represented value is part of a set of data points, but is the constant portion of the coordinates.

Specified by:
setIsConstant in interface IValue
Parameters:
constant - boolean

getDatatype

public java.lang.String getDatatype()
Specified by:
getDatatype in interface IValue

getName

public java.lang.String getName()
Gets the value of the name property.

Specified by:
getName in interface IValue
Returns:
possible object is String

setName

public void setName(java.lang.String name)
Sets the value of the name property

Specified by:
setName in interface IValue
Parameters:
name - allowed object is String

getUCD

public java.lang.String getUCD()
Gets the value of the UCD property.

Specified by:
getUCD in interface IValue
Returns:
possible object is String

setUCD

public void setUCD(java.lang.String ucd)
Sets the value of the UCD property

Specified by:
setUCD in interface IValue
Parameters:
ucd - allowed object is String

getUnits

public java.lang.String getUnits()
Gets the value of the units property.

Specified by:
getUnits in interface IValue
Returns:
possible object is String

setUnits

public void setUnits(java.lang.String units)
Sets the value of the unit property

Specified by:
setUnits in interface IValue
Parameters:
units - allowed object is String

isSet

public boolean isSet()
Specified by:
isSet in interface IValue

getSize

public long getSize()
Specified by:
getSize in interface IValue

getData

public java.util.Vector getData()
Specified by:
getData in interface IValue

getDataValue

public java.lang.Object getDataValue(int index)
                              throws SEDException
Specified by:
getDataValue in interface IValue
Throws:
SEDException

addDataValue

public void addDataValue(java.lang.Object value,
                         java.lang.String datatype)
Specified by:
addDataValue in interface IValue

toString

public java.lang.String toString()
Override Object's toString() method.

Overrides:
toString in class java.lang.Object
Returns:
possible object is String