cds.xml
Class VotMeasurementField

java.lang.Object
  extended bycds.xml.VotField
      extended bycds.xml.VotStandardField
          extended bycds.xml.VotMeasurementField

public class VotMeasurementField
extends VotStandardField

Describes a field from a measurement type. These objects are kept in a VotTable object

Version:
1.0 May 2002
Author:
Marc Wenger/CDS

Field Summary
(package private)  int fldnum
           
(package private)  int posBegin
           
(package private)  int posEnd
           
 
Fields inherited from class cds.xml.VotStandardField
type
 
Fields inherited from class cds.xml.VotField
arraysize, datatype, description, done, id, link, name, precision, ref, ucd, unit, values, width
 
Constructor Summary
VotMeasurementField()
           
VotMeasurementField(java.lang.String id)
           
 
Method Summary
 java.lang.String extractField(java.lang.String measurement)
          Returns the field substring from a full measurement string.
 int getBegin()
          Returns the beginning position of this field in a measurement
 int getEnd()
          Returns the end position of this field in a measurement
 int getLength()
          Returns the length of this field
 void setFieldLimits(int begin, int end)
          Sets the limits of the field in a measurement
 void setFieldNum(int num)
          Sets the field number
 
Methods inherited from class cds.xml.VotStandardField
getType, setType
 
Methods inherited from class cds.xml.VotField
getArraysize, getDatatype, getDescription, getId, getLink, getName, getPrecision, getRef, getUcd, getUnit, getWidth, isDone, set, setArraysize, setDatatype, setDescription, setDone, setId, setLink, setName, setPrecision, setRef, setUcd, setUnit, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fldnum

int fldnum

posBegin

int posBegin

posEnd

int posEnd
Constructor Detail

VotMeasurementField

public VotMeasurementField()

VotMeasurementField

public VotMeasurementField(java.lang.String id)
Method Detail

setFieldNum

public void setFieldNum(int num)
Sets the field number

Parameters:
num - field number

setFieldLimits

public void setFieldLimits(int begin,
                           int end)
Sets the limits of the field in a measurement

Parameters:
begin - beginning position
end - end position

getBegin

public final int getBegin()
Returns the beginning position of this field in a measurement

Returns:
beginning position (counted from 0)

getEnd

public final int getEnd()
Returns the end position of this field in a measurement

Returns:
the end position

extractField

public java.lang.String extractField(java.lang.String measurement)
Returns the field substring from a full measurement string. Of course, the measurement must belong to the right catalogue...

Parameters:
measurement - the measurement from which the field should be extracted
Returns:
the field corresponding to this field definition

getLength

public final int getLength()
Returns the length of this field

Returns:
length. namely : end - begin