cds.xml
Class Field

java.lang.Object
  extended by cds.xml.Field

public final class Field
extends java.lang.Object

Field description according to the Astrores XML standard.


Field Summary
 java.lang.String arraysize
          Number of characters, extension for VOTable compatibility
 boolean coo
          true if it is a RA or DE field
 java.lang.String datatype
          Datatype of field value (F-float, D-double, I-integer, S-short, A-ascii, L-boolean (logical), E-exponential)
 java.lang.String description
          The description of the field
 java.lang.String gref
          Template for the GLU link
 java.lang.String href
          Template for the html link
 java.lang.String ID
          Field Identifier
 java.lang.String name
          The name of the field
 java.lang.String precision
          Precision of field value: number of significant digits after the dot (ex: "3")
 java.lang.String ref
          XML internal reference, typically for coordinate frame reference
 java.lang.String refText
          Template for the text of the link
 java.lang.String refValue
          link type
 int sort
          Current sort on this field
static int SORT_ASCENDING
           
static int SORT_DESCENDING
           
 java.lang.String title
          The title of the field
 java.lang.String type
          To characterize the field hidden for fields used typically for server/client exchange no_query for fields which specify some parameters (e.g. the equinox of a coordinate system) trigger for fields which contain a parameter for an action
 java.lang.String ucd
          UCD associated with the field
 java.lang.String unit
          Unit used for the field
static int UNSORT
           
 java.lang.String width
          Number of characters - ex: 8
 
Constructor Summary
Field(java.util.Hashtable atts)
          Field object creation.
Field(java.lang.String name)
          Field object creation.
 
Method Summary
 void addInfo(java.lang.String name, java.lang.String value)
          Add addtional informations.
 boolean isNumDataType()
          True si le field est numérique
 java.lang.String toString()
           
static java.lang.String typeFits2VOTable(java.lang.String s)
          Conversion d'un type de donnée exprimé dans le standard FITS en standard VOTable
static java.lang.String typeVOTable2Fits(java.lang.String s)
          Conversion d'un type de donnée exprimé dans le standard VOTable en standard FITS
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public java.lang.String ID
Field Identifier


name

public java.lang.String name
The name of the field


description

public java.lang.String description
The description of the field


title

public java.lang.String title
The title of the field


type

public java.lang.String type
To characterize the field hidden for fields used typically for server/client exchange no_query for fields which specify some parameters (e.g. the equinox of a coordinate system) trigger for fields which contain a parameter for an action


unit

public java.lang.String unit
Unit used for the field


ucd

public java.lang.String ucd
UCD associated with the field


datatype

public java.lang.String datatype
Datatype of field value (F-float, D-double, I-integer, S-short, A-ascii, L-boolean (logical), E-exponential)


width

public java.lang.String width
Number of characters - ex: 8


arraysize

public java.lang.String arraysize
Number of characters, extension for VOTable compatibility


precision

public java.lang.String precision
Precision of field value: number of significant digits after the dot (ex: "3")


href

public java.lang.String href
Template for the html link


gref

public java.lang.String gref
Template for the GLU link


refText

public java.lang.String refText
Template for the text of the link


refValue

public java.lang.String refValue
link type


coo

public boolean coo
true if it is a RA or DE field


ref

public java.lang.String ref
XML internal reference, typically for coordinate frame reference


sort

public int sort
Current sort on this field


UNSORT

public static final int UNSORT
See Also:
Constant Field Values

SORT_ASCENDING

public static final int SORT_ASCENDING
See Also:
Constant Field Values

SORT_DESCENDING

public static final int SORT_DESCENDING
See Also:
Constant Field Values
Constructor Detail

Field

public Field(java.util.Hashtable atts)
Field object creation.

Parameters:
atts - Hashtable of XML attributs (ID, UCD-ucd, format, unit, datatype, wdith, precision, type

Field

public Field(java.lang.String name)
Field object creation.

Parameters:
name - Field name
Method Detail

addInfo

public void addInfo(java.lang.String name,
                    java.lang.String value)
Add addtional informations.

Parameters:
name - type of the information (name, description or title)
value - value of the information

isNumDataType

public boolean isNumDataType()
True si le field est numérique


typeFits2VOTable

public static java.lang.String typeFits2VOTable(java.lang.String s)
Conversion d'un type de donnée exprimé dans le standard FITS en standard VOTable


typeVOTable2Fits

public static java.lang.String typeVOTable2Fits(java.lang.String s)
Conversion d'un type de donnée exprimé dans le standard VOTable en standard FITS


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 UDS/CNRS