cds.simbad
Class DataDescription

java.lang.Object
  extended bycds.simbad.DataDescription

public class DataDescription
extends java.lang.Object

An object of this class maintains all information related with a Simbad data item. In particular it contains a VotField description needed for XML output of the data. It receives all its information from a Parameters object, which must have been loaded before. The field definition file is a Parameter file organized with the following entries:
each field is a main entry defined by a topic [FIELD-NAME], containing all or some of the following parameters (for more details, see the VOTable definition document):
name : name of the field. This name will be used to deal with a particular field
description : the description tag
ucd : the ucd attribute of the field
unit : the unit attribute
datatype : the datatype attribute (L,X,B,I,J,K,A,U,E,D,C,M)
precision : the precision attribute
width : the width attribute
arraysize : the arraysize attribute

Version:
1.0 May 2002
Author:
Marc Wenger/CDS

Field Summary
private static SortedHashtable ddlist
           
private  VotStandardField fld
           
 
Constructor Summary
DataDescription()
           
 
Method Summary
static int buildFrom(Parameters pdata)
          Build the DataDescription objects from a Parameters object, which should already be loaded.
static DataDescription get(java.lang.String dataname)
          Gets a DataDescription object
 VotStandardField getField()
          Gets the VotField object
static VotStandardField getField(java.lang.String name)
          Gets a Votable Standard Field by its name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ddlist

private static SortedHashtable ddlist

fld

private VotStandardField fld
Constructor Detail

DataDescription

public DataDescription()
Method Detail

buildFrom

public static int buildFrom(Parameters pdata)
Build the DataDescription objects from a Parameters object, which should already be loaded.

All the created objects are kept in alocal table and accessible through static methods.

Parameters:
pdata - Parameters object containing the description of the fields
Returns:
the number of objects created

getField

public VotStandardField getField()
Gets the VotField object

Returns:
the VotStandardField description

getField

public static VotStandardField getField(java.lang.String name)
Gets a Votable Standard Field by its name

Parameters:
name - Name of the field
Returns:
a VotStandardField Object

get

public static DataDescription get(java.lang.String dataname)
Gets a DataDescription object

Parameters:
dataname - name of the data item
Returns:
the DataDescription object