Package gov.nasa.pds.tools.label
Class SchematronTransformer
java.lang.Object
gov.nasa.pds.tools.label.SchematronTransformer
A class that transforms Schematron files based on the isoSchematron stylesheet.
- Author:
- mcayanan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTransform the given schematron.fetch(URL schematron, ProblemHandler handler) Transform the given schematron.transform(String source, ProblemHandler handler) Transform the given schematron source.transform(Source source, ProblemHandler handler) Transform the given schematron source.
-
Constructor Details
-
SchematronTransformer
Constructor.- Throws:
TransformerConfigurationException- A transformer configuration error occurred.
-
-
Method Details
-
transform
Transform the given schematron source.- Parameters:
source- The schematron source.- Returns:
- A transformed schematron.
- Throws:
TransformerException- If an error occurred during the transform process.
-
transform
Transform the given schematron source.- Parameters:
source- The schematron source.handler- Container to hold problems that occurred during the transform process.- Returns:
- A transformed schematron.
- Throws:
TransformerException- If an error occurred during the transform process.
-
transform
- Throws:
TransformerException
-
transform
- Throws:
TransformerException
-
fetch
Transform the given schematron.- Parameters:
schematron- The URL to the schematron.- Returns:
- A transformed schematron.
- Throws:
TransformerException- If an error occurred during the transform process.
-
fetch
Transform the given schematron.- Parameters:
schematron- the URL to the schematron.handler- an problem handler to capture problems.- Returns:
- a transformed schematron.
- Throws:
TransformerException- if an error occurred during the transform process.
-