cds.simbad
Class MorphologicalType

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

public class MorphologicalType
extends BasicData

Morphological type object.

Version:
1.0 Jun 2002 (MW)
1.1 15 Nov 2002 (SJ) : Chgt type pour mtype => Mtype (avant : String), 1.2 Jan 2004 Ajout de la methode equals.
Author:
Marc Wenger/CDS
See Also:
Serialized Form

Field Summary
private  Mtype mtype
           
 
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
MorphologicalType()
          Empty constructor
MorphologicalType(MorphologicalType mt)
          Copy constructor.
MorphologicalType(java.lang.String mtype)
          Constructor with initialisation by a morphological 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 morphological type string
 void set(MorphologicalType mt)
          Sets the MorphologicalType from another MorphologicalType object
 void set(java.lang.String mtype)
          Sets a morphological type value to this object
 java.lang.String toString()
          returns the morphological 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

mtype

private Mtype mtype
Constructor Detail

MorphologicalType

public MorphologicalType()
Empty constructor


MorphologicalType

public MorphologicalType(java.lang.String mtype)
Constructor with initialisation by a morphological type string

Parameters:
mtype - morphological type string

MorphologicalType

public MorphologicalType(MorphologicalType mt)
Copy constructor.

Parameters:
mt - MorphologicalType object
Method Detail

set

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

Parameters:
mtype - morphological type string. Currently no validity check is made on the string

set

public void set(MorphologicalType mt)
Sets the MorphologicalType from another MorphologicalType object

Parameters:
mt - MorphologicalType object to copy

get

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

Returns:
the morphological type string

toString

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

Returns:
the morphological type string

equals

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

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