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 Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.model.testing.testsuite.GenerateSchemainstance with no metadata.GenerateSchema(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.model.testing.testsuite.GenerateSchemainstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newGenerationCaseitem to the underlying collection.Get the generation Case.Get the generation Result.Get the metaschema.dev.metaschema.core.model.IMetaschemaDataGet the validation Result.booleanRemove the first matchingGenerationCaseitem from the underlying collection.voidsetGenerationCases(List<GenerationCase> value) Set the generation Case.voidsetGenerationResult(String value) Set the generation Result.voidsetMetaschema(Metaschema value) Set the metaschema.voidsetValidationResult(String value) Set the validation Result.toString()
-
Constructor Details
-
GenerateSchema
public GenerateSchema()Constructs a newdev.metaschema.model.testing.testsuite.GenerateSchemainstance with no metadata. -
GenerateSchema
Constructs a newdev.metaschema.model.testing.testsuite.GenerateSchemainstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getGenerationResult
Get the generation Result.The expected result of schema generation.
- Returns:
- the generation-result value, or
nullif not set
-
setGenerationResult
Set the generation Result.The expected result of schema generation.
- Parameters:
value- the generation-result value to set, ornullto clear
-
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
-
getMetaschema
Get the metaschema.Reference to a metaschema module to load.
- Returns:
- the metaschema value
-
setMetaschema
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
Set the generation Case.A schema generation comparison test case.
- Parameters:
value- the generation-case value to set
-
addGenerationCase
Add a newGenerationCaseitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeGenerationCase
Remove the first matchingGenerationCaseitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-