public abstract class InputMetricXSL extends InputMetric
| Constructor and Description |
|---|
InputMetricXSL() |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(File inputFile,
File outFile)
Convert an input file to an output file Give your conversion process
Input and Output files are relatives to the filesystem where the process
is executed on (like Hudson agent).
|
void |
convert(File inputFile,
File outFile,
File externalXsl,
Map<String,Object> params)
Convert an input file to an output file
Give your conversion process
Input and Output files are relatives to the filesystem where the process is executed on (like Hudson agent)
|
void |
convert(File inputFile,
File outFile,
Map<String,Object> params)
Convert an input file to an output file Give your conversion process
Input and Output files are relatives to the filesystem where the process
is executed on (like Hudson agent).
|
void |
convert(File inputFile,
File outFile,
String externalXslContent,
Map<String,Object> params)
Convert an input file to an output file
Give your conversion process
Input and Output files are relatives to the filesystem where the process is executed on (like Hudson agent)
|
boolean |
equals(Object o) |
InputMetricType |
getInputMetricType()
All the subclasses will be of XSL
|
Class<?> |
getInputXsdClass()
Gets the Class (namespace) of the xsd file resource
|
File[] |
getInputXsdFileList() |
String[] |
getInputXsdNameList()
the XSD file associated to this tool result file
|
InputStream[] |
getListXsdInputStream() |
String[] |
getOutputXsdNameList()
the XSD file associated to this output format
|
String |
getUserContentXSLDirRelativePath() |
File |
getXslFile()
Overrides this method if you want to provide your own xsl (independent of its location)
Used for custom type where the user specifies its own xsl
|
InputStream |
getXslInputStream() |
String |
getXslName()
the XSL file associated to this tool
|
Class<?> |
getXslResourceClass()
Gets the Class (namespace) of the xsl file resource
|
int |
hashCode() |
boolean |
validateInputFile(File inputXMLFile)
Gives the validation process for the input file.
|
boolean |
validateOutputFile(File inputXMLFile)
Gives the validation process for the output file.
|
getInputValidationErrors, getLabel, getOutputFormatType, getOutputValidationErrors, getToolName, getToolType, getToolVersion, isDefault, setInputMetricType, setInputValidationErrors, setLabel, setOutputFormatType, setOutputValidationErrors, setToolName, setToolType, setToolVersionpublic Class<?> getXslResourceClass()
public Class<?> getInputXsdClass()
public String getXslName()
public File getXslFile()
public InputStream getXslInputStream() throws IOException
IOExceptionpublic String[] getInputXsdNameList()
public File[] getInputXsdFileList()
public InputStream[] getListXsdInputStream() throws IOException
IOExceptionpublic String[] getOutputXsdNameList()
public InputMetricType getInputMetricType()
getInputMetricType in class InputMetricpublic String getUserContentXSLDirRelativePath()
public void convert(File inputFile, File outFile, Map<String,Object> params) throws ConversionException
InputMetricconvert in class InputMetricinputFile - the input file to convertoutFile - the output file to convertparams - the conversion parametersConversionException - an application Exception to throw when there is an error of
conversion The exception is catched by the API client (as
Hudson plugin)public void convert(File inputFile, File outFile) throws ConversionException
InputMetricconvert in class InputMetricinputFile - the input file to convertoutFile - the output file to convertConversionException - an application Exception to throw when there is an error of
conversion The exception is catched by the API client (as
Hudson plugin)public void convert(File inputFile, File outFile, File externalXsl, Map<String,Object> params) throws ConversionException
inputFile - the input file to convertoutFile - the output file to convertexternalXsl - an external xsl file such as a user xslparams - the conversion parametersConversionException - an application Exception to throw when there is an error of conversion
The exception is catched by the API client (as Hudson plugin)public void convert(File inputFile, File outFile, String externalXslContent, Map<String,Object> params) throws ConversionException
inputFile - the input file to convertoutFile - the output file to convertexternalXslContent - an external xsl content such as a user xslparams - the conversion parametersConversionException - an application Exception to throw when there is an error of conversion
The exception is catched by the API client (as Hudson plugin)public boolean validateInputFile(File inputXMLFile) throws ValidationException
InputMetricvalidateInputFile in class InputMetricinputXMLFile - to validateValidationExceptionpublic boolean validateOutputFile(File inputXMLFile) throws ValidationException
InputMetricvalidateOutputFile in class InputMetricinputXMLFile - to validateValidationExceptionpublic boolean equals(Object o)
equals in class InputMetricpublic int hashCode()
hashCode in class InputMetricCopyright © 2004–2020. All rights reserved.