Package gov.nasa.pds.tools.label
Class SchematronTransformer
java.lang.Object
gov.nasa.pds.tools.label.SchematronTransformer
public class SchematronTransformer extends Object
A class that transforms Schematron files based on the isoSchematron
stylesheet.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description SchematronTransformer()
Constructor. -
Method Summary
Modifier and Type Method Description Transformer
transform(URL schematron)
Transform the given schematron.Transformer
transform(URL schematron, ProblemHandler handler)
Transform the given schematron.Transformer
transform(Source source)
Transform the given schematron source.Transformer
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
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.
-
transform
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.
-