Package org.ivoa.dm.vosi.tables
Class VOSITablesModel
java.lang.Object
org.ivoa.dm.vosi.tables.VOSITablesModel
- All Implemented Interfaces:
 org.ivoa.vodml.jaxb.JaxbManagement,org.ivoa.vodml.VodmlModel<VOSITablesModel>
@VoDml(id="VOSITables",
       role=model,
       type="VOSITables")
public class VOSITablesModel
extends Object
implements org.ivoa.vodml.VodmlModel<VOSITablesModel>
The container class for the VOSITables Model.
 A schema for formatting table metadata as returned by a
             tables resource, defined by the IVOA Support Interfaces 
             specification (VOSI). 
             See http://www.ivoa.net/Documents/latest/VOSI.html.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA container class for the references in the model. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.ivoa.vodml.ModelDescriptionthe description. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidadd BaseParam to model.voidadd CatalogResource to model.voidadd CatalogService to model.voidadd DataCollection to model.voidadd DataResource to model.voidadd DataService to model.voidadd Organisation to model.voidadd Resource to model.voidadd Service to model.static jakarta.xml.bind.JAXBContextthe context factory for the model.voidcreate a context in preparation for cloning.voidremove BaseParam from model.voidremove CatalogResource from model.voidremove CatalogService from model.voidremove DataCollection from model.voidremove DataResource from model.voidremove DataService from model.voidremove Organisation from model.voidremove Resource from model.voidremove Service from model.<T> List<T>getContent(Class<T> c) Get the content of the given type.static booleanif the model has references.static booleanisInVocabulary(String value, String vocabulary) Test if a term is in the vocabulary.static com.fasterxml.jackson.databind.ObjectMapperReturn a Jackson objectMapper suitable for JSON serialzation.org.ivoa.vodml.ModelManagement<VOSITablesModel>generate management interface instance for model.voidstatic Stringpu_name()The persistence unit name for the model.static InputStreamthe TAP schema for the model. 
- 
Field Details
- 
modelDescription
public static final org.ivoa.vodml.ModelDescription modelDescriptionthe description. 
 - 
 - 
Constructor Details
- 
VOSITablesModel
public VOSITablesModel()default constructor. 
 - 
 - 
Method Details
- 
isInVocabulary
Test if a term is in the vocabulary.- Parameters:
 value- the value to testvocabulary- the uri for the vocabulary.- Returns:
 - true if the term is in the vocabulary.
 
 - 
addContent
add Resource to model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Resource
 - 
deleteContent
remove Resource from model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Resource
 - 
addContent
add Organisation to model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Organisation
 - 
deleteContent
remove Organisation from model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Organisation
 - 
addContent
add Service to model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Service
 - 
deleteContent
remove Service from model.- Parameters:
 c- org.ivoa.dm.registry.voresource.Service
 - 
addContent
add DataCollection to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataCollection
 - 
deleteContent
remove DataCollection from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataCollection
 - 
addContent
add DataResource to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataResource
 - 
deleteContent
remove DataResource from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataResource
 - 
addContent
add DataService to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataService
 - 
deleteContent
remove DataService from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.DataService
 - 
addContent
add CatalogResource to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.CatalogResource
 - 
deleteContent
remove CatalogResource from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.CatalogResource
 - 
addContent
add CatalogService to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.CatalogService
 - 
deleteContent
remove CatalogService from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.CatalogService
 - 
addContent
add BaseParam to model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.BaseParam
 - 
deleteContent
remove BaseParam from model.- Parameters:
 c- org.ivoa.dm.registry.vodataservice.BaseParam
 - 
getContent
Get the content of the given type.- Type Parameters:
 T- The type of the content- Parameters:
 c- the class of the content.- Returns:
 - the content.
 
 - 
processReferences
public void processReferences()- Specified by:
 processReferencesin interfaceorg.ivoa.vodml.jaxb.JaxbManagement
 - 
hasReferences
public static boolean hasReferences()if the model has references.- Returns:
 - true if the model has references.
 
 - 
contextFactory
public static jakarta.xml.bind.JAXBContext contextFactory() throws jakarta.xml.bind.JAXBExceptionthe context factory for the model.- Returns:
 - the JAXBContext.
 - Throws:
 jakarta.xml.bind.JAXBException- if there is a problem.
 - 
pu_name
The persistence unit name for the model.- Returns:
 - the name.
 
 - 
jsonMapper
public static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()Return a Jackson objectMapper suitable for JSON serialzation.- Returns:
 - the objectmapper.
 
 - 
management
generate management interface instance for model.- Specified by:
 managementin interfaceorg.ivoa.vodml.VodmlModel<VOSITablesModel>- Returns:
 - the management interface.
 
 - 
TAPSchema
the TAP schema for the model. The schema is represented via the TAPSchemaDM datamodel.- Returns:
 - an InputStream to the XML representation of the model.
 
 - 
createContext
public void createContext()create a context in preparation for cloning. 
 -