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)
--------------------------------------------------------
HASHCODE() AND EQUALS() for comparaison
--------------------------------------------------------
|
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)
--------------------------------------------------------
SETTERS for JAX-RS Layer
--------------------------------------------------------
|
void |
setToolType(InputType toolType) |
void |
setToolVersion(String toolVersion) |
abstract boolean |
validateInputFile(File inputXMLFile) |
abstract boolean |
validateOutputFile(File inputXMLFile) |
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
ValidationExceptionpublic abstract boolean validateOutputFile(File inputXMLFile) throws ValidationException
ValidationExceptionpublic 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)
public boolean equals(Object o)
Copyright © 2004-2014. All Rights Reserved.