cds.simbad
Class Oid3

java.lang.Object
  extended bycds.simbad.Oid3
All Implemented Interfaces:
java.io.Serializable

public class Oid3
extends java.lang.Object
implements java.io.Serializable

Manages OIDs of Simbad3. Their structure is : bloc#,rec#

Version:
1.0 Dec 2002, 2.0 Aug 2003 rewriting: stores only the binary form., 2.1 Jan 2004 ajout d'une methode equals.
Author:
Sylvaine Jaehn (Stage UTBM), Marc Wenger/CDS, Benoit Baranne (Stagiaire UTBM)
See Also:
Serialized Form

Field Summary
private  int NOVALUE
           
private  int oid3
           
 
Constructor Summary
Oid3()
          Constructor without parameters: NOVALUE
Oid3(int oid3)
          Constructor with an oid3 as an integer
Oid3(java.lang.String strOid3)
          Constructor with oid3 as a string
 
Method Summary
 boolean equals(java.lang.Object o)
          MOD-BB 21-01-04 Ajout de cette methode.
 int get()
          Returns the numeric oid3
 boolean isNull()
          Teste si l'oid3 est null
private  int parse(java.lang.String strOid3)
          Parse an edited oid3
 void reset()
          Resets the object
 void set(int oid3)
          Sets the value for this oid3 object
 void set(Oid3 oid3)
          Copy the oid3 object
 void set(java.lang.String strOid3)
          Sets the value for this oid3 object
 java.lang.String toString()
          Returns an edited oid3 in the format bloc#,rec#
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOVALUE

private final int NOVALUE
See Also:
Constant Field Values

oid3

private int oid3
Constructor Detail

Oid3

public Oid3()
Constructor without parameters: NOVALUE


Oid3

public Oid3(java.lang.String strOid3)
Constructor with oid3 as a string

Parameters:
strOid3 - oid3 as a string BLOC#,REC#

Oid3

public Oid3(int oid3)
Constructor with an oid3 as an integer

Parameters:
oid3 - oid3 as an integer
Method Detail

set

public void set(java.lang.String strOid3)
Sets the value for this oid3 object

Parameters:
strOid3 - oid3 string

set

public void set(int oid3)
Sets the value for this oid3 object

Parameters:
oid3 - oid3 as an integer

set

public void set(Oid3 oid3)
Copy the oid3 object


reset

public void reset()
Resets the object


toString

public java.lang.String toString()
Returns an edited oid3 in the format bloc#,rec#

Returns:
the edited oid3

parse

private int parse(java.lang.String strOid3)
Parse an edited oid3

Parameters:
strOid3 - string oid3 (format bloc#,rec#)
Returns:
the numeric oid3

get

public int get()
Returns the numeric oid3

Returns:
oid3 as an integer

isNull

public boolean isNull()
Teste si l'oid3 est null

Returns:
vrai si null, faux sinon

equals

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

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