Skip to content

Commit

Permalink
add call to get TAPSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Jan 31, 2025
1 parent d7c01fa commit 9dff1ed
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/xslt/jaxb.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,14 @@
}

};



<!-- TODO add this to the model API -->
/** the TAP schema for the model. The schema is represented via the <a href="https://github.com/ivoa/TAPSchemaDM">TAPSchemaDM</a> datamodel.
@return an InputStream to the XML representation of the model.
*/
public static java.io.InputStream TAPSchema()
{
return <xsl:value-of select="$ModelClass"/>.class.getResourceAsStream("<xsl:value-of select="concat('/',substring-before(vf:fileNameFromModelName(name),'.xml'),'.tap.xml')"/>");
}

/** create a context in preparation for cloning. */
@SuppressWarnings("rawtypes")
Expand Down

0 comments on commit 9dff1ed

Please sign in to comment.