|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thalesgroup.dtkit.metrics.model.InputMetric
com.thalesgroup.dtkit.metrics.model.InputMetricXSL
public abstract class InputMetricXSL
| Constructor Summary | |
|---|---|
InputMetricXSL()
|
|
| Method Summary | |
|---|---|
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,
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)
-------------------------------------------------------- HASHCODE() AND EQUALS() for comparaison -------------------------------------------------------- |
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 |
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)
|
boolean |
validateOutputFile(File inputXMLFile)
|
| Methods inherited from class com.thalesgroup.dtkit.metrics.model.InputMetric |
|---|
getInputValidationErrors, getLabel, getOutputFormatType, getOutputValidationErrors, getToolName, getToolType, getToolVersion, isDefault, setInputMetricType, setInputValidationErrors, setLabel, setOutputFormatType, setOutputValidationErrors, setToolName, setToolType, setToolVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputMetricXSL()
| Method Detail |
|---|
public 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 InputMetric
public void convert(File inputFile,
File outFile,
Map<String,Object> params)
throws ConversionException
InputMetric
convert in class InputMetricinputFile - the input file to convertoutFile - the output file to convertparams - the conversion parameters
ConversionException - 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
InputMetric
convert in class InputMetricinputFile - the input file to convertoutFile - the output file to convert
ConversionException - 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
validateInputFile in class InputMetricValidationException
public boolean validateOutputFile(File inputXMLFile)
throws ValidationException
validateOutputFile in class InputMetricValidationExceptionpublic boolean equals(Object o)
equals in class InputMetricpublic int hashCode()
hashCode in class InputMetric
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||