Class VOSIWriter

java.lang.Object
org.ivoa.dm.tapschema.utils.VOSIWriter

public class VOSIWriter extends Object
A utility class for converting TAP schema XML definitions to VOSI XML representations. It uses XSLT transformations to perform the conversion, allowing for different classes of data descriptors (VOTABLE or TAP).
  • Constructor Details

    • VOSIWriter

      public VOSIWriter(TapschemaModel model)
      constructs a VOSIWriter.
      Parameters:
      model - the TAP schema model to use for the conversion.
  • Method Details

    • convertToVOSI

      public String convertToVOSI(VOSIWriter.VOSIDataType dataType) throws net.sf.saxon.s9api.SaxonApiException, jakarta.xml.bind.JAXBException, ParserConfigurationException
      convert the TAP schema to VOSI.
      Parameters:
      dataType - the choice of type to describe datatypes.
      Returns:
      The XML representation of the VOSI tableset.
      Throws:
      net.sf.saxon.s9api.SaxonApiException - if there is a problem with the XSLT transformation.
      jakarta.xml.bind.JAXBException - if there is a problem with the JAXB context.
      ParserConfigurationException - if there is a problem with the DocumentBuilderFactory.