java.lang.Object
dev.metaschema.model.testing.testsuite.ValidationCase
- All Implemented Interfaces:
IBoundObject
@MetaschemaAssembly(formalName="Validation Case",
description="A content validation test case.",
name="validation-case",
moduleClass=MetaschemaTestSuiteModule.class)
public class ValidationCase
extends Object
implements IBoundObject
A content validation test case.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with no metadata.Constructs a newdev.metaschema.model.testing.testsuite.ValidationCaseinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet the location.Get additional Metaschema-related information for the object (i.e., resource location).Get 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
Description copied from interface:IBoundObjectGet additional Metaschema-related information for the object (i.e., resource location).- Specified by:
getMetaschemaDatain interfaceIBoundObject- Returns:
- the Metaschema-related information
-
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
-