public abstract class InputMetric extends Object implements Serializable
| Constructor and Description |
|---|
InputMetric() |
| 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).
|
abstract 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) |
InputMetricType |
getInputMetricType()
Gives the input metric type (XSL or Other) according the subclass type.
|
List<ValidationError> |
getInputValidationErrors()
Gets all input validation errors.
|
String |
getLabel()
The label of the tool.
|
OutputMetric |
getOutputFormatType()
Gives the output format type (given by the format model).
|
List<ValidationError> |
getOutputValidationErrors()
Gets all output validation errors
|
String |
getToolName()
The name of the current tool.
|
InputType |
getToolType()
Gives the metric tool type (TEST, COVERAGE, MEASURE, VIOLATION).
|
String |
getToolVersion()
The version of the current tool.
|
int |
hashCode() |
boolean |
isDefault() |
void |
setInputMetricType(InputMetricType inputMetricType) |
void |
setInputValidationErrors(List<ValidationError> inputValidationErrors) |
void |
setLabel(String label) |
void |
setOutputFormatType(OutputMetric outputFormatType) |
void |
setOutputValidationErrors(List<ValidationError> outputValidationErrors) |
void |
setToolName(String toolName) |
void |
setToolType(InputType toolType) |
void |
setToolVersion(String toolVersion) |
abstract boolean |
validateInputFile(File inputXMLFile)
Gives the validation process for the input file.
|
abstract boolean |
validateOutputFile(File inputXMLFile)
Gives the validation process for the output file.
|
public String getToolName()
public String getToolVersion()
public boolean isDefault()
public String getLabel()
public InputMetricType getInputMetricType()
public InputType getToolType()
public OutputMetric getOutputFormatType()
public void convert(File inputFile, File outFile) throws ConversionException
inputFile - 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 abstract void convert(File inputFile, File outFile, Map<String,Object> params) throws ConversionException
inputFile - 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 abstract boolean validateInputFile(File inputXMLFile) throws ValidationException
inputXMLFile - to validateValidationExceptionpublic abstract boolean validateOutputFile(File inputXMLFile) throws ValidationException
inputXMLFile - to validateValidationExceptionpublic List<ValidationError> getInputValidationErrors()
public List<ValidationError> getOutputValidationErrors()
public void setInputValidationErrors(List<ValidationError> inputValidationErrors)
public void setOutputValidationErrors(List<ValidationError> outputValidationErrors)
public void setToolName(String toolName)
public void setToolVersion(String toolVersion)
public void setLabel(String label)
public void setInputMetricType(InputMetricType inputMetricType)
public void setToolType(InputType toolType)
public void setOutputFormatType(OutputMetric outputFormatType)
Copyright © 2004–2020. All rights reserved.