Class ValidationCase

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 Details

    • ValidationCase

      public ValidationCase()
      Constructs a new dev.metaschema.model.testing.testsuite.ValidationCase instance with no metadata.
    • ValidationCase

      public ValidationCase(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.model.testing.testsuite.ValidationCase instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getSourceFormat

      @Nullable public String getSourceFormat()
      Get the source Format.

      The format of the source content.

      Returns:
      the source-format value, or null if not set
    • setSourceFormat

      public void setSourceFormat(@Nullable String value)
      Set the source Format.

      The format of the source content.

      Parameters:
      value - the source-format value to set, or null to clear
    • getLocation

      @NonNull public URI getLocation()
      Get the location.

      A URI reference to the content file location.

      Returns:
      the location value
    • setLocation

      public void setLocation(@NonNull URI value)
      Set the location.

      A URI reference to the content file location.

      Parameters:
      value - the location value to set
    • getValidationResult

      @Nullable public String getValidationResult()
      Get the validation Result.

      The expected result of content validation.

      Returns:
      the validation-result value, or null if not set
    • setValidationResult

      public void setValidationResult(@Nullable String value)
      Set the validation Result.

      The expected result of content validation.

      Parameters:
      value - the validation-result value to set, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object