org.jenkinsci.plugins.dtkit.types.test
Class TusarTestInputMetric

java.lang.Object
  extended by com.thalesgroup.dtkit.metrics.model.InputMetric
      extended by com.thalesgroup.dtkit.metrics.model.InputMetricOther
          extended by org.jenkinsci.plugins.dtkit.types.test.TusarTestInputMetric
All Implemented Interfaces:
Serializable

public class TusarTestInputMetric
extends com.thalesgroup.dtkit.metrics.model.InputMetricOther

Author:
Gregory Boissinot
See Also:
Serialized Form

Constructor Summary
TusarTestInputMetric()
           
 
Method Summary
 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)
 String getToolName()
           
 com.thalesgroup.dtkit.metrics.model.InputType getToolType()
           
 boolean isDefault()
           
 boolean validateInputFile(File inputXMLFile)
           
 boolean validateOutputFile(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
 

Constructor Detail

TusarTestInputMetric

public TusarTestInputMetric()
Method Detail

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 convert
outFile - the output file to convert
params - 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.