Package cds.savot.model
Class SavotField
java.lang.Object
cds.savot.model.SavotBase
cds.savot.model.MarkupComment
cds.savot.model.SavotField
- All Implemented Interfaces:
IDSupport
,NameSupport
,RefSupport
,SimpleTypes
Field element
- Author:
- Andre Schaaff
-
Field Summary
Fields inherited from interface cds.savot.model.SimpleTypes
ACTUAL, BARYCENTRIC, BASE64, BIT, BOOLEAN, CHAR, COOSYSSYSTEM, DATATYPE, DOC, DOUBLE, DOUBLECOMPLEX, DYNAMIC, ECL_FK4, ECL_FK5, ENCODINGTYPE, EQ_FK4, EQ_FK5, FIELDTYPE, FLOAT, FLOATCOMPLEX, GALACTIC, GEO_APP, GZIP, HIDDEN, HINTS, ICRS, INT, LEGAL, LINKCONTENT_ROLE, LOCATION, LONG, META, NO, NO_QUERY, NONE, ONLOAD, ONREQUEST, OTHER, QUERY, RESOURCETYPE, RESULTS, SHORT, STREAMACTUATE, SUPERGALACTIC, TRIGGER, UNICODECHAR, UNSIGNEDBYTE, VALUESTYPE, version, XY, YES, YESNO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet arraysize attributeGet datatype attributeGet DESCRIPTION contentgetId()
Get id attributegetLinks()
Get LINK elements set referencegetName()
Get name attributeGet precision attributegetRef()
Get ref attributegetType()
Get type attributegetUcd()
Get ucd attributegetUnit()
Get unit attributegetUtype()
Get utype attributeGet the VALUES elementgetWidth()
Get width attributeint
Get width attributegetXtype()
Get xtype attributevoid
setArraySize
(String arraysize) Set arraysize attributevoid
setDataType
(String datatype) Set datatype attributevoid
setDescription
(String description) Set DESCRIPTION contentvoid
Set ID attributevoid
Set LINK elements set referencevoid
Set name attributevoid
setPrecision
(String precision) Set precision attributevoid
Set ref attributevoid
Set type attributevoid
Set ucd attributevoid
Set unit attributevoid
Set utype attributevoid
setValues
(SavotValues values) Set the VALUES elementvoid
Set width attributevoid
setWidthValue
(int width) Set width attributevoid
Set xtype attributeMethods inherited from class cds.savot.model.MarkupComment
getAbove, getBelow, setAbove, setBelow
-
Constructor Details
-
SavotField
public SavotField()Constructor
-
-
Method Details
-
setId
Set ID attribute -
getId
Get id attribute -
getUnit
Get unit attribute- Returns:
- String
-
setUnit
Set unit attribute- Parameters:
unit
-
-
getDataType
Get datatype attribute- Returns:
- String
-
setDataType
Set datatype attribute- Parameters:
datatype
- (boolean, bit, unsignedByte, short, int, long, char, unicodeChar, float, double, floatComplex, doubleComplex)
-
setName
Set name attribute- Specified by:
setName
in interfaceNameSupport
- Parameters:
name
-
-
getName
Get name attribute- Specified by:
getName
in interfaceNameSupport
- Returns:
- String
-
setUcd
Set ucd attribute- Parameters:
ucd
- ([A-Za-z0-9_.,-]*)
-
getUcd
Get ucd attribute- Returns:
- String
-
setRef
Set ref attribute- Specified by:
setRef
in interfaceRefSupport
- Parameters:
ref
-
-
getRef
Get ref attribute- Specified by:
getRef
in interfaceRefSupport
- Returns:
- String
-
setPrecision
Set precision attribute- Parameters:
precision
- ([EF]?[1-0][0-9]*)
-
getPrecision
Get precision attribute- Returns:
- String
-
setWidth
Set width attribute- Parameters:
width
-
-
getWidth
Get width attribute- Returns:
- String
-
setWidthValue
public void setWidthValue(int width) Set width attribute- Parameters:
width
-
-
getWidthValue
public int getWidthValue()Get width attribute- Returns:
- String
-
setXtype
Set xtype attribute- Parameters:
xtype
-- Since:
- VOTable 1.2
-
getXtype
Get xtype attribute- Returns:
- String
- Since:
- VOTable 1.2
-
setArraySize
Set arraysize attribute- Parameters:
arraysize
-
-
getArraySize
Get arraysize attribute- Returns:
- String
-
setType
Set type attribute- Parameters:
type
- (hidden, no_query, trigger, location) warning : deprecated in VOTable 1.1
-
getType
Get type attribute- Returns:
- String warning : deprecated in VOTable 1.1
-
setUtype
Set utype attribute- Parameters:
utype
-
-
getUtype
Get utype attribute- Returns:
- String
-
setDescription
Set DESCRIPTION content- Parameters:
description
-
-
getDescription
Get DESCRIPTION content- Returns:
- String
-
setValues
Set the VALUES element- Parameters:
values
-
-
getValues
Get the VALUES element- Returns:
- SavotValues
-
getLinks
Get LINK elements set reference- Returns:
- LinkSet
-
setLinks
Set LINK elements set reference- Parameters:
links
-
-