Package org.ivoa.dm.tapschema.utils
Class VOSIWriter
java.lang.Object
org.ivoa.dm.tapschema.utils.VOSIWriter
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).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum to represent the forms that the DataType can be described as. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToVOSI(StreamSource tapSchemaSource, VOSIWriter.VOSIDataType dataType) convert the TAP schema to VOSI.
-
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.
-