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()
      constructs a VOSIWriter.
  • Method Details

    • convertToVOSI

      public String convertToVOSI(StreamSource tapSchemaSource, VOSIWriter.VOSIDataType dataType) throws net.sf.saxon.s9api.SaxonApiException
      convert the TAP schema to VOSI.
      Parameters:
      tapSchemaSource - the tap schema source.
      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.