Class StandardsRegExtModel

java.lang.Object
org.ivoa.dm.registry.standard.StandardsRegExtModel
All Implemented Interfaces:
org.ivoa.vodml.jaxb.JaxbManagement, org.ivoa.vodml.VodmlModel<StandardsRegExtModel>

@VoDml(id="StandardsRegExt", role=model, type="StandardsRegExt") public class StandardsRegExtModel extends Object implements org.ivoa.vodml.VodmlModel<StandardsRegExtModel>
The container class for the StandardsRegExt Model. This is a core schema for describing IVOA Standards themselves. See complete specification at http://www.ivoa.net/Documents/latest/StandardsRegExt.html.
  • Field Details

    • modelDescription

      public static final org.ivoa.vodml.ModelDescription modelDescription
      the description.
  • Constructor Details

    • StandardsRegExtModel

      public StandardsRegExtModel()
      default constructor.
  • Method Details

    • isInVocabulary

      public static boolean isInVocabulary(String value, String vocabulary)
      Test if a term is in the vocabulary.
      Parameters:
      value - the value to test
      vocabulary - the uri for the vocabulary.
      Returns:
      true if the term is in the vocabulary.
    • addContent

      public void addContent(Resource c)
      add Resource to model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Resource
    • deleteContent

      public void deleteContent(Resource c)
      remove Resource from model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Resource
    • addContent

      public void addContent(Organisation c)
      add Organisation to model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Organisation
    • deleteContent

      public void deleteContent(Organisation c)
      remove Organisation from model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Organisation
    • addContent

      public void addContent(Service c)
      add Service to model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Service
    • deleteContent

      public void deleteContent(Service c)
      remove Service from model.
      Parameters:
      c - org.ivoa.dm.registry.voresource.Service
    • addContent

      public void addContent(Standard c)
      add Standard to model.
      Parameters:
      c - org.ivoa.dm.registry.standard.Standard
    • deleteContent

      public void deleteContent(Standard c)
      remove Standard from model.
      Parameters:
      c - org.ivoa.dm.registry.standard.Standard
    • addContent

      public void addContent(ServiceStandard c)
      add ServiceStandard to model.
      Parameters:
      c - org.ivoa.dm.registry.standard.ServiceStandard
    • deleteContent

      public void deleteContent(ServiceStandard c)
      remove ServiceStandard from model.
      Parameters:
      c - org.ivoa.dm.registry.standard.ServiceStandard
    • addContent

      public void addContent(StandardKeyEnumeration c)
      add StandardKeyEnumeration to model.
      Parameters:
      c - org.ivoa.dm.registry.standard.StandardKeyEnumeration
    • deleteContent

      public void deleteContent(StandardKeyEnumeration c)
      remove StandardKeyEnumeration from model.
      Parameters:
      c - org.ivoa.dm.registry.standard.StandardKeyEnumeration
    • getContent

      public <T> List<T> getContent(Class<T> c)
      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:
      processReferences in interface org.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.JAXBException
      the context factory for the model.
      Returns:
      the JAXBContext.
      Throws:
      jakarta.xml.bind.JAXBException - if there is a problem.
    • pu_name

      public static String 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

      public org.ivoa.vodml.ModelManagement<StandardsRegExtModel> management()
      generate management interface instance for model.
      Specified by:
      management in interface org.ivoa.vodml.VodmlModel<StandardsRegExtModel>
      Returns:
      the management interface.
    • TAPSchema

      public static InputStream 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.