Class DefaultModelChecker
- java.lang.Object
-
- de.gebit.integrity.runner.modelcheck.DefaultModelChecker
-
- All Implemented Interfaces:
ModelChecker
public class DefaultModelChecker extends Object implements ModelChecker
Default implementation of aModelChecker.- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegrityClassLoaderclassLoaderThe classloader to use for class resolving.protected ModelSourceExplorermodelSourceExplorerThe model source explorer.
-
Constructor Summary
Constructors Constructor Description DefaultModelChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(Call aCall)Validates a call.voidcheck(CustomOperation aCustomOperation)Validates a custom operation.voidcheck(Suite aSuite)Validates a suite call.voidcheck(TableTest aTableTest)Validates a tabletest.voidcheck(Test aTest)Validates a test.protected voidcheckEnumValue(EnumValue aValue)Checks anEnumValue.protected voidcheckNestedObject(NestedObject anObject)Checks aNestedObject.protected voidcheckOperation(Operation anOperation)Checks anOperation.protected voidcheckParameters(List<Parameter> someParameters, String aFixtureName)Checks a list of parameters (of a test or call).protected voidcheckSingleFixedNamedResult(FixedResultName aFixedResultName, String aTestName)Checks a single fixed named result of a test.protected voidcheckSingleParameterName(ParameterName aParameterName, String aTestOrCallName)Checks a single parameter name of a test or call.protected voidcheckTypedNestedObject(TypedNestedObject anObject)Checks aTypedNestedObject.protected voidcheckValueContainer(Value aValue)Check aValue.protected voidcheckValueContainer(ValueOrEnumValueOrOperation aValue)Check aValueOrEnumValueOrOperation.protected voidcheckValueContainer(ValueOrEnumValueOrOperationCollection aValue)protected voidcheckVariable(Variable aVariable)Checks aVariable.protected voidcheckVariableVariable(VariableVariable aVariable)Checks aVariableVariable.
-
-
-
Field Detail
-
classLoader
@Inject protected IntegrityClassLoader classLoader
The classloader to use for class resolving.
-
modelSourceExplorer
@Inject protected ModelSourceExplorer modelSourceExplorer
The model source explorer.
-
-
Method Detail
-
check
public void check(Test aTest) throws ModelRuntimeLinkException
Description copied from interface:ModelCheckerValidates a test.- Specified by:
checkin interfaceModelChecker- Parameters:
aTest- the test to check- Throws:
ModelRuntimeLinkException
-
check
public void check(Call aCall) throws ModelRuntimeLinkException
Description copied from interface:ModelCheckerValidates a call.- Specified by:
checkin interfaceModelChecker- Parameters:
aCall- the call to check- Throws:
ModelRuntimeLinkException
-
check
public void check(TableTest aTableTest) throws ModelRuntimeLinkException
Description copied from interface:ModelCheckerValidates a tabletest.- Specified by:
checkin interfaceModelChecker- Parameters:
aTableTest- the tabletest to check- Throws:
ModelRuntimeLinkException
-
check
public void check(CustomOperation aCustomOperation) throws ModelRuntimeLinkException
Description copied from interface:ModelCheckerValidates a custom operation.- Specified by:
checkin interfaceModelChecker- Parameters:
aCustomOperation- the custom operation to check- Throws:
ModelRuntimeLinkException
-
checkParameters
protected void checkParameters(List<Parameter> someParameters, String aFixtureName)
Checks a list of parameters (of a test or call).- Parameters:
someParameters- a list of parameters to checkaFixtureName- the fixture name that these parameters belong to (used for error output)
-
checkSingleParameterName
protected void checkSingleParameterName(ParameterName aParameterName, String aTestOrCallName)
Checks a single parameter name of a test or call.- Parameters:
aParameterName- the parameter name to checkaTestOrCallName- the test/call name that this parameter belongs to (used for error output)
-
checkSingleFixedNamedResult
protected void checkSingleFixedNamedResult(FixedResultName aFixedResultName, String aTestName)
Checks a single fixed named result of a test.- Parameters:
aFixedResultName- the fixed result name to checkaTestName- the test name that this result belongs to (for error output)
-
check
public void check(Suite aSuite) throws ModelRuntimeLinkException
Description copied from interface:ModelCheckerValidates a suite call.- Specified by:
checkin interfaceModelChecker- Parameters:
aSuite- the suite call to check- Throws:
ModelRuntimeLinkException
-
checkValueContainer
protected void checkValueContainer(ValueOrEnumValueOrOperationCollection aValue)
- Parameters:
aValue-
-
checkValueContainer
protected void checkValueContainer(ValueOrEnumValueOrOperation aValue)
Check aValueOrEnumValueOrOperation.- Parameters:
aValue-
-
checkValueContainer
protected void checkValueContainer(Value aValue)
Check aValue.- Parameters:
aValue-
-
checkEnumValue
protected void checkEnumValue(EnumValue aValue)
Checks anEnumValue.- Parameters:
aValue-
-
checkOperation
protected void checkOperation(Operation anOperation)
Checks anOperation.- Parameters:
anOperation-
-
checkVariable
protected void checkVariable(Variable aVariable)
Checks aVariable.- Parameters:
aVariable-
-
checkVariableVariable
protected void checkVariableVariable(VariableVariable aVariable)
Checks aVariableVariable.- Parameters:
aVariable-
-
checkNestedObject
protected void checkNestedObject(NestedObject anObject)
Checks aNestedObject.- Parameters:
anObject-
-
checkTypedNestedObject
protected void checkTypedNestedObject(TypedNestedObject anObject)
Checks aTypedNestedObject.- Parameters:
anObject-
-
-