Package cds.savot.model
Class SavotResource
- java.lang.Object
-
- cds.savot.model.SavotBase
-
- cds.savot.model.MarkupComment
-
- cds.savot.model.SavotResource
-
- All Implemented Interfaces:
IDSupport,NameSupport,SimpleTypes
public final class SavotResource extends MarkupComment implements IDSupport, NameSupport
Resource 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 Constructor Description SavotResource()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CoosysSetgetCoosys()Deprecated.since VOTable 1.2SavotDatagetData(int tableIndex)Get a SavotData object for table index tableIndex (shortcut)java.lang.StringgetDescription()Get the descriptionjava.lang.StringgetDescription(int tableIndex)Get a Description object (String) for table index tableIndex (shortcut)FieldSetgetFieldSet(int tableIndex)Get a FieldSet object for table index tableIndex (shortcut)GroupSetgetGroups()Get GROUP element set referencejava.lang.StringgetId()Get the id attributeInfoSetgetInfos()Get the Infos elementsInfoSetgetInfosAtEnd()Get the InfosAtEnd elementsLinkSetgetLinks()Get the Link elementsLinkSetgetLinkSet(int tableIndex)Get a LinkSet object for table index tableIndex (shortcut)java.lang.StringgetName()Get the name attributeParamSetgetParams()Get the Param elementsResourceSetgetResources()Get the Resource elementsintgetTableCount()Return the number of tables contained in the resource this value doesn't contain the tables of included resources (shortcut)TableSetgetTables()Get the Table elementsSavotTRgetTR(int tableIndex, int rowIndex)Get a TR object for table index tableIndex and the corresponding row index rowIndex of this table (shortcut)intgetTRCount(int tableIndex)Get the number of TR object for table index tableIndex (shortcut)TRSetgetTRSet(int tableIndex)Get a TRSet object for table index tableIndex (shortcut)java.lang.StringgetType()Get the type attributejava.lang.StringgetUtype()Get the utype attributevoidinit()init a SavotResource objectvoidsetCoosys(CoosysSet coosys)Deprecated.since VOTable 1.2voidsetDescription(java.lang.String description)Set the descriptionvoidsetGroups(GroupSet groups)Set GROUP element set referencevoidsetId(java.lang.String id)Set the id attributevoidsetInfos(InfoSet infos)Set the Infos elementsvoidsetInfosAtEnd(InfoSet infosAtEnd)Set the InfosAtEnd elementsvoidsetLinks(LinkSet links)Set the Link elementsvoidsetName(java.lang.String name)Set the name attributevoidsetParams(ParamSet params)Set the Param elementsvoidsetResources(ResourceSet resources)Set the Resource elementsvoidsetTables(TableSet tables)Set the Table elementsvoidsetType(java.lang.String type)Set the type attributevoidsetUtype(java.lang.String utype)Set the utype attribute-
Methods inherited from class cds.savot.model.MarkupComment
getAbove, getBelow, setAbove, setBelow
-
-
-
-
Method Detail
-
init
public void init()
init a SavotResource object
-
setDescription
public void setDescription(java.lang.String description)
Set the description- Parameters:
description- String
-
getDescription
public java.lang.String getDescription()
Get the description- Returns:
- a String
-
setCoosys
public void setCoosys(CoosysSet coosys)
Deprecated.since VOTable 1.2Set the Coosys elements- Parameters:
coosys-
-
getCoosys
public CoosysSet getCoosys()
Deprecated.since VOTable 1.2Get the Coosys elements- Returns:
- a CoosysSet object
-
setGroups
public void setGroups(GroupSet groups)
Set GROUP element set reference- Parameters:
groups-- Since:
- VOTable 1.2
-
getGroups
public GroupSet getGroups()
Get GROUP element set reference- Returns:
- GroupSet
- Since:
- VOTable 1.2
-
setInfos
public void setInfos(InfoSet infos)
Set the Infos elements- Parameters:
infos-
-
getInfos
public InfoSet getInfos()
Get the Infos elements- Returns:
- a InfoSet object
-
setParams
public void setParams(ParamSet params)
Set the Param elements- Parameters:
params-
-
getParams
public ParamSet getParams()
Get the Param elements- Returns:
- a ParamSet object
-
setLinks
public void setLinks(LinkSet links)
Set the Link elements- Parameters:
links-
-
getLinks
public LinkSet getLinks()
Get the Link elements- Returns:
- a LinkSet object
-
setTables
public void setTables(TableSet tables)
Set the Table elements- Parameters:
tables-
-
getTables
public TableSet getTables()
Get the Table elements- Returns:
- a TableSet object
-
setResources
public void setResources(ResourceSet resources)
Set the Resource elements- Parameters:
resources-
-
getResources
public ResourceSet getResources()
Get the Resource elements- Returns:
- a ResourceSet object
-
setInfosAtEnd
public void setInfosAtEnd(InfoSet infosAtEnd)
Set the InfosAtEnd elements- Parameters:
infosAtEnd-- Since:
- VOTable 1.2
-
getInfosAtEnd
public InfoSet getInfosAtEnd()
Get the InfosAtEnd elements- Returns:
- a InfoSet object
- Since:
- VOTable 1.2
-
setName
public void setName(java.lang.String name)
Set the name attribute- Specified by:
setNamein interfaceNameSupport- Parameters:
name- String
-
getName
public java.lang.String getName()
Get the name attribute- Specified by:
getNamein interfaceNameSupport- Returns:
- a String
-
setId
public void setId(java.lang.String id)
Set the id attribute
-
getId
public java.lang.String getId()
Get the id attribute
-
setType
public void setType(java.lang.String type)
Set the type attribute- Parameters:
type- String (results, meta)
-
getType
public java.lang.String getType()
Get the type attribute- Returns:
- a String
-
setUtype
public void setUtype(java.lang.String utype)
Set the utype attribute- Parameters:
utype- String
-
getUtype
public java.lang.String getUtype()
Get the utype attribute- Returns:
- a String
-
getTRCount
public int getTRCount(int tableIndex)
Get the number of TR object for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- int
-
getTRSet
public TRSet getTRSet(int tableIndex)
Get a TRSet object for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- TRSet
-
getTR
public SavotTR getTR(int tableIndex, int rowIndex)
Get a TR object for table index tableIndex and the corresponding row index rowIndex of this table (shortcut)- Parameters:
tableIndex-rowIndex-- Returns:
- SavotTR
-
getTableCount
public int getTableCount()
Return the number of tables contained in the resource this value doesn't contain the tables of included resources (shortcut)- Returns:
- int
-
getFieldSet
public FieldSet getFieldSet(int tableIndex)
Get a FieldSet object for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- FieldSet
-
getLinkSet
public LinkSet getLinkSet(int tableIndex)
Get a LinkSet object for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- LinkSet
-
getDescription
public java.lang.String getDescription(int tableIndex)
Get a Description object (String) for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- String
-
getData
public SavotData getData(int tableIndex)
Get a SavotData object for table index tableIndex (shortcut)- Parameters:
tableIndex-- Returns:
- SavotData
-
-