java.lang.Object
dev.metaschema.model.testing.testsuite.ValidationCase
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Validation Case",
description="A content validation test case.",
name="validation-case",
moduleClass=MetaschemaTestSuiteModule.class)
public class ValidationCase
extends Object
implements dev.metaschema.core.model.IBoundObject
A content validation test case.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with no metadata.ValidationCase(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet the location.dev.metaschema.core.model.IMetaschemaDataGet the source Format.Get the validation Result.voidsetLocation(URI value) Set the location.voidsetSourceFormat(String value) Set the source Format.voidsetValidationResult(String value) Set the validation Result.toString()
-
Constructor Details
-
ValidationCase
public ValidationCase()Constructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with no metadata. -
ValidationCase
Constructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getSourceFormat
Get the source Format.The format of the source content.
- Returns:
- the source-format value, or
nullif not set
-
setSourceFormat
Set the source Format.The format of the source content.
- Parameters:
value- the source-format value to set, ornullto clear
-
getLocation
Get the location.A URI reference to the content file location.
- Returns:
- the location value
-
setLocation
Set the location.A URI reference to the content file location.
- Parameters:
value- the location value to set
-
getValidationResult
Get the validation Result.The expected result of content validation.
- Returns:
- the validation-result value, or
nullif not set
-
setValidationResult
Set the validation Result.The expected result of content validation.
- Parameters:
value- the validation-result value to set, ornullto clear
-
toString
-