|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thalesgroup.dtkit.metrics.model.InputMetric
public abstract class InputMetric
| Constructor Summary | |
|---|---|
InputMetric()
|
|
| 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) |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputMetric()
| Method Detail |
|---|
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 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 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 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 abstract boolean validateInputFile(File inputXMLFile)
throws ValidationException
ValidationException
public 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)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||