cds.simbad
Class BasicData

java.lang.Object
  extended bycds.util.Nodata
      extended bycds.simbad.BasicData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ErrorData, Magnitude, MorphologicalType, PosData, SpectralType

public class BasicData
extends Nodata

Base class for Simbad Basic data. Manages (currently) only an existence flag. All other basic data must derive from this one

Version:
1.0 Apr 2002
, 1.1 Oct 2002 (SJ) : Add constants NODATA_DBL,NODATA_SHT et NODATA_FLT
Max values : MAX_VALUE
, 1.2 13 nov 2002 (SJ):Extends Nodata
Author:
Marc Wenger/CDS, Sylvaine Jaehn (Stage UTBM)
See Also:
Serialized Form

Field Summary
protected  boolean dataExists
           
 
Fields inherited from class cds.util.Nodata
NODATA, NODATA_DBL, NODATA_FLT, NODATA_SHT, NODATA_STR
 
Constructor Summary
BasicData()
          Constuctor for an empty object with nodata
BasicData(boolean exist)
          Constructor seting the existence or not of the object
 
Method Summary
 boolean exists()
          tests if the object has data (exists) or not
 void setExist(boolean exist)
          sets the presence or not of data for the object
 void setNodata()
          Sets the object as having no data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataExists

protected boolean dataExists
Constructor Detail

BasicData

public BasicData()
Constuctor for an empty object with nodata


BasicData

public BasicData(boolean exist)
Constructor seting the existence or not of the object

Parameters:
exist - boolean value. the object exist (or has data) or not
Method Detail

setNodata

public void setNodata()
Sets the object as having no data


setExist

public void setExist(boolean exist)
sets the presence or not of data for the object

Parameters:
exist - boolean value. the object exist (or has data) or not

exists

public boolean exists()
tests if the object has data (exists) or not

Returns:
true or false depending on the existence of the object