org.jenkinsci.plugins.dtkit.types.measure
Class TusarMeasureInputMetric
java.lang.Object
com.thalesgroup.dtkit.metrics.model.InputMetric
com.thalesgroup.dtkit.metrics.model.InputMetricOther
org.jenkinsci.plugins.dtkit.types.measure.TusarMeasureInputMetric
- All Implemented Interfaces:
- Serializable
public class TusarMeasureInputMetric
- extends com.thalesgroup.dtkit.metrics.model.InputMetricOther
- Author:
- Gregory Boissinot
- See Also:
- Serialized Form
Methods inherited from class com.thalesgroup.dtkit.metrics.model.InputMetricOther |
getInputMetricType |
Methods inherited from class com.thalesgroup.dtkit.metrics.model.InputMetric |
convert, equals, getInputValidationErrors, getLabel, getOutputFormatType, getOutputValidationErrors, getToolVersion, hashCode, setInputMetricType, setInputValidationErrors, setLabel, setOutputFormatType, setOutputValidationErrors, setToolName, setToolType, setToolVersion |
TusarMeasureInputMetric
public TusarMeasureInputMetric()
getToolType
public com.thalesgroup.dtkit.metrics.model.InputType getToolType()
- Overrides:
getToolType
in class com.thalesgroup.dtkit.metrics.model.InputMetric
getToolName
public String getToolName()
- Overrides:
getToolName
in class com.thalesgroup.dtkit.metrics.model.InputMetric
isDefault
public boolean isDefault()
- Overrides:
isDefault
in class com.thalesgroup.dtkit.metrics.model.InputMetric
convert
public void convert(File inputFile,
File outFile,
Map<String,Object> params)
throws com.thalesgroup.dtkit.util.converter.ConversionException
- 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)
- Specified by:
convert
in class com.thalesgroup.dtkit.metrics.model.InputMetric
- Parameters:
inputFile
- the input file to convertoutFile
- the output file to convertparams
- the xsl parameters
- Throws:
com.thalesgroup.dtkit.util.converter.ConversionException
- an application Exception to throw when there is an error of conversion
The exception is catched by the API client (as Hudson plugin)
validateInputFile
public boolean validateInputFile(File inputXMLFile)
throws com.thalesgroup.dtkit.util.validator.ValidationException
- Specified by:
validateInputFile
in class com.thalesgroup.dtkit.metrics.model.InputMetric
- Throws:
com.thalesgroup.dtkit.util.validator.ValidationException
validateOutputFile
public boolean validateOutputFile(File inputXMLFile)
throws com.thalesgroup.dtkit.util.validator.ValidationException
- Specified by:
validateOutputFile
in class com.thalesgroup.dtkit.metrics.model.InputMetric
- Throws:
com.thalesgroup.dtkit.util.validator.ValidationException
Copyright © 2004-2012. All Rights Reserved.