com.consol.citrus.validation.script
Class ScriptValidationContext

java.lang.Object
  extended by com.consol.citrus.validation.script.ScriptValidationContext
All Implemented Interfaces:
ValidationContext

public class ScriptValidationContext
extends Object
implements ValidationContext

Basic script validation context providing the validation code either from file resource or from direct script string.

Author:
Christoph Deppisch

Constructor Summary
ScriptValidationContext()
          Default constructor.
ScriptValidationContext(String type)
          Constructor using type field.
 
Method Summary
 String getScriptType()
          Gets the type of script used in this validation context.
 String getValidationScript()
          Gets the validationScript.
 String getValidationScript(TestContext context)
          Constructs the actual validation script either from data or external resource.
 String getValidationScriptResourcePath()
          Gets the validationScriptResource.
 void setScriptType(String scriptType)
          Sets the scriptType.
 void setValidationScript(String validationScript)
          Sets the validationScript.
 void setValidationScriptResourcePath(String validationScriptResource)
          Sets the validationScriptResource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptValidationContext

public ScriptValidationContext()
Default constructor.


ScriptValidationContext

public ScriptValidationContext(String type)
Constructor using type field.

Parameters:
type -
Method Detail

getValidationScript

public String getValidationScript(TestContext context)
Constructs the actual validation script either from data or external resource.

Parameters:
context - the current TestContext.
Returns:
the validationScript
Throws:
CitrusRuntimeException

getScriptType

public String getScriptType()
Gets the type of script used in this validation context.

Returns:
the scriptType

getValidationScriptResourcePath

public String getValidationScriptResourcePath()
Gets the validationScriptResource.

Returns:
the validationScriptResource

setValidationScriptResourcePath

public void setValidationScriptResourcePath(String validationScriptResource)
Sets the validationScriptResource.

Parameters:
validationScriptResource - the validationScriptResource to set

getValidationScript

public String getValidationScript()
Gets the validationScript.

Returns:
the validationScript

setValidationScript

public void setValidationScript(String validationScript)
Sets the validationScript.

Parameters:
validationScript - the validationScript to set

setScriptType

public void setScriptType(String scriptType)
Sets the scriptType.

Parameters:
scriptType - the scriptType to set


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.