Class GenerationCase

java.lang.Object
dev.metaschema.model.testing.testsuite.GenerationCase
All Implemented Interfaces:
IBoundObject

@MetaschemaAssembly(formalName="Generation Case", description="A schema generation comparison test case.", name="generation-case", moduleClass=MetaschemaTestSuiteModule.class) public class GenerationCase extends Object implements IBoundObject
A schema generation comparison test case.
  • Constructor Details

    • GenerationCase

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

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

    • getMetaschemaData

      public IMetaschemaData getMetaschemaData()
      Description copied from interface: IBoundObject
      Get additional Metaschema-related information for the object (i.e., resource location).
      Specified by:
      getMetaschemaData in interface IBoundObject
      Returns:
      the Metaschema-related information
    • 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 expected schema file location.

      Returns:
      the location value
    • setLocation

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

      A URI reference to the expected schema file location.

      Parameters:
      value - the location value to set
    • getMatchResult

      @Nullable public String getMatchResult()
      Get the match Result.

      The expected result of content comparison.

      Returns:
      the match-result value, or null if not set
    • setMatchResult

      public void setMatchResult(@Nullable String value)
      Set the match Result.

      The expected result of content comparison.

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

      public String toString()
      Overrides:
      toString in class Object