cds.simbad
Class SpectralType

java.lang.Object
  extended bycds.util.Nodata
      extended bycds.simbad.BasicData
          extended bycds.simbad.SpectralType
All Implemented Interfaces:
java.io.Serializable

public class SpectralType
extends BasicData

Spectral type object.

Version:
1.0 Apr 2002, 1.1 Jan 2004 (BB) ajout de la methode equals.
Author:
Marc Wenger/CDS
See Also:
Serialized Form

Field Summary
private  java.lang.String sp
           
 
Fields inherited from class cds.simbad.BasicData
dataExists
 
Fields inherited from class cds.util.Nodata
NODATA, NODATA_DBL, NODATA_FLT, NODATA_SHT, NODATA_STR
 
Constructor Summary
SpectralType()
          Empty constructor
SpectralType(SpectralType sp)
          Copy constructor.
SpectralType(java.lang.String sp)
          Constructor with initialisation by a spectral type string
 
Method Summary
 boolean equals(java.lang.Object o)
          MOD-BB 21-01-04 Ajout de cette methode.
 java.lang.String get()
          returns the spectral type string
 void set(SpectralType sp)
          Sets the SpectralType from another SpectralType object
 void set(java.lang.String sp)
          Sets a spectral type value to this object
 java.lang.String toString()
          returns the spectral type string
 
Methods inherited from class cds.simbad.BasicData
exists, setExist, setNodata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sp

private java.lang.String sp
Constructor Detail

SpectralType

public SpectralType()
Empty constructor


SpectralType

public SpectralType(java.lang.String sp)
Constructor with initialisation by a spectral type string

Parameters:
sp - spectral type string. Currently no validity check is made on the string

SpectralType

public SpectralType(SpectralType sp)
Copy constructor.

Parameters:
sp - SpectralType object
Method Detail

set

public void set(java.lang.String sp)
Sets a spectral type value to this object

Parameters:
sp - spectral type string. Currently no validity check is made on the string

set

public void set(SpectralType sp)
Sets the SpectralType from another SpectralType object

Parameters:
sp - SpectralType object to copy

get

public java.lang.String get()
returns the spectral type string

Returns:
the spectral type string

toString

public java.lang.String toString()
returns the spectral type string

Returns:
the spectral type string

equals

public boolean equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. Comparaison de SpectralType.

Parameters:
o - Objet a comparer.
Returns:
Vrai si o est identique a this, faux sinon.