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 CoosysSet
getCoosys()
Deprecated.since VOTable 1.2SavotData
getData(int tableIndex)
Get a SavotData object for table index tableIndex (shortcut)java.lang.String
getDescription()
Get the descriptionjava.lang.String
getDescription(int tableIndex)
Get a Description object (String) for table index tableIndex (shortcut)FieldSet
getFieldSet(int tableIndex)
Get a FieldSet object for table index tableIndex (shortcut)GroupSet
getGroups()
Get GROUP element set referencejava.lang.String
getId()
Get the id attributeInfoSet
getInfos()
Get the Infos elementsInfoSet
getInfosAtEnd()
Get the InfosAtEnd elementsLinkSet
getLinks()
Get the Link elementsLinkSet
getLinkSet(int tableIndex)
Get a LinkSet object for table index tableIndex (shortcut)java.lang.String
getName()
Get the name attributeParamSet
getParams()
Get the Param elementsResourceSet
getResources()
Get the Resource elementsint
getTableCount()
Return the number of tables contained in the resource this value doesn't contain the tables of included resources (shortcut)TableSet
getTables()
Get the Table elementsSavotTR
getTR(int tableIndex, int rowIndex)
Get a TR object for table index tableIndex and the corresponding row index rowIndex of this table (shortcut)int
getTRCount(int tableIndex)
Get the number of TR object for table index tableIndex (shortcut)TRSet
getTRSet(int tableIndex)
Get a TRSet object for table index tableIndex (shortcut)java.lang.String
getType()
Get the type attributejava.lang.String
getUtype()
Get the utype attributevoid
init()
init a SavotResource objectvoid
setCoosys(CoosysSet coosys)
Deprecated.since VOTable 1.2void
setDescription(java.lang.String description)
Set the descriptionvoid
setGroups(GroupSet groups)
Set GROUP element set referencevoid
setId(java.lang.String id)
Set the id attributevoid
setInfos(InfoSet infos)
Set the Infos elementsvoid
setInfosAtEnd(InfoSet infosAtEnd)
Set the InfosAtEnd elementsvoid
setLinks(LinkSet links)
Set the Link elementsvoid
setName(java.lang.String name)
Set the name attributevoid
setParams(ParamSet params)
Set the Param elementsvoid
setResources(ResourceSet resources)
Set the Resource elementsvoid
setTables(TableSet tables)
Set the Table elementsvoid
setType(java.lang.String type)
Set the type attributevoid
setUtype(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:
setName
in interfaceNameSupport
- Parameters:
name
- String
-
getName
public java.lang.String getName()
Get the name attribute- Specified by:
getName
in 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
-
-