com.thalesgroup.hudson.plugins.tusarnotifier.types.measure
Class TusarMeasureInputMetric
java.lang.Object
com.thalesgroup.dtkit.metrics.model.InputMetric
com.thalesgroup.dtkit.metrics.model.InputMetricOther
com.thalesgroup.hudson.plugins.tusarnotifier.types.measure.TusarMeasureInputMetric
- All Implemented Interfaces:
- java.io.Serializable
public class TusarMeasureInputMetric
- extends com.thalesgroup.dtkit.metrics.model.InputMetricOther
- See Also:
- Serialized Form
|
Method Summary |
void |
convert(java.io.File inputFile,
java.io.File outFile,
java.util.Map<java.lang.String,java.lang.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) |
java.lang.String |
getToolName()
|
com.thalesgroup.dtkit.metrics.model.InputType |
getToolType()
|
boolean |
isDefault()
|
boolean |
validateInputFile(java.io.File inputXMLFile)
|
boolean |
validateOutputFile(java.io.File inputXMLFile)
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TusarMeasureInputMetric
public TusarMeasureInputMetric()
getToolType
public com.thalesgroup.dtkit.metrics.model.InputType getToolType()
- Overrides:
getToolType in class com.thalesgroup.dtkit.metrics.model.InputMetric
getToolName
public java.lang.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(java.io.File inputFile,
java.io.File outFile,
java.util.Map<java.lang.String,java.lang.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(java.io.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(java.io.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 © 2010. All Rights Reserved.