Class GenerateSchema

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

@MetaschemaAssembly(formalName="Generate Schema", description="Defines schema generation parameters and expected results.", name="generate-schema", moduleClass=MetaschemaTestSuiteModule.class) public class GenerateSchema extends Object implements dev.metaschema.core.model.IBoundObject
Defines schema generation parameters and expected results.
  • Constructor Details

    • GenerateSchema

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

      public GenerateSchema(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.model.testing.testsuite.GenerateSchema 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
    • getGenerationResult

      @Nullable public String getGenerationResult()
      Get the generation Result.

      The expected result of schema generation.

      Returns:
      the generation-result value, or null if not set
    • setGenerationResult

      public void setGenerationResult(@Nullable String value)
      Set the generation Result.

      The expected result of schema generation.

      Parameters:
      value - the generation-result value to set, or null to clear
    • 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
    • getMetaschema

      @NonNull public Metaschema getMetaschema()
      Get the metaschema.

      Reference to a metaschema module to load.

      Returns:
      the metaschema value
    • setMetaschema

      public void setMetaschema(@NonNull Metaschema value)
      Set the metaschema.

      Reference to a metaschema module to load.

      Parameters:
      value - the metaschema value to set
    • getGenerationCases

      Get the generation Case.

      A schema generation comparison test case.

      Returns:
      the generation-case value
    • setGenerationCases

      public void setGenerationCases(@NonNull List<GenerationCase> value)
      Set the generation Case.

      A schema generation comparison test case.

      Parameters:
      value - the generation-case value to set
    • addGenerationCase

      public boolean addGenerationCase(GenerationCase item)
      Add a new GenerationCase item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeGenerationCase

      public boolean removeGenerationCase(GenerationCase item)
      Remove the first matching GenerationCase item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object