Package | Description |
---|---|
org.cornutum.tcases | |
org.cornutum.tcases.resolve |
Modifier and Type | Method and Description |
---|---|
Schema |
VarValueDef.getSchema()
Returns the schema for this input value.
|
Schema |
VarDef.getSchema()
Returns the schema for values bound to this variable.
|
Modifier and Type | Method and Description |
---|---|
VarValueDefBuilder |
VarValueDefBuilder.schema(Schema schema)
Adds a schema.
|
VarDefBuilder |
VarDefBuilder.schema(Schema schema)
Adds a schema.
|
void |
VarValueDef.setSchema(Schema schema)
Changes the schema for this input value.
|
void |
VarDef.setSchema(Schema schema)
Changes the schema for values bound to this variable.
|
Modifier and Type | Method and Description |
---|---|
Schema |
SchemaBuilder.build() |
Schema |
Schema.getItems()
Returns the schema for array items.
|
Schema |
Schema.merge(Schema other)
Creates a new schema by merging the contents of another schema, using this schema as the default.
|
static Schema |
Schemas.merge(Schema defaults,
Schema schema)
Creates a new schema by merging the contents of the given schema with the given default schema.
|
Schema |
Schemas.normalize(Schema schema)
Updates the given
Schema to normalize property values. |
static Schema |
Schemas.not(Schema schema)
Returns a schema that describes values that do not belong to the values described by the given schema.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Integer> |
Schemas.domainSize(Schema schema)
If the given schema value domain is bounded, returns the maximum number of values allowed.
|
SchemaBuilder |
SchemaBuilder.items(Schema items) |
static Integer |
Schemas.maxLengthRequired(Schema schema)
Returns the maximum string length required by the given schema.
|
static Integer |
Schemas.maxPatternMatch(Schema schema)
Returns the maximum length required for pattern matches.
|
Schema |
Schema.merge(Schema other)
Creates a new schema by merging the contents of another schema, using this schema as the default.
|
static Schema |
Schemas.merge(Schema defaults,
Schema schema)
Creates a new schema by merging the contents of the given schema with the given default schema.
|
static Integer |
Schemas.minLengthRequired(Schema schema)
Returns the minimum string length required by the given schema.
|
static Integer |
Schemas.minPatternMatch(Schema schema)
Returns the minimum length required for pattern matches.
|
Schema |
Schemas.normalize(Schema schema)
Updates the given
Schema to normalize property values. |
static Schema |
Schemas.not(Schema schema)
Returns a schema that describes values that do not belong to the values described by the given schema.
|
void |
Schema.setItems(Schema items)
Changes the schema for array items.
|
protected ValueDomain<?> |
TestCaseSchemaResolver.toValueDomain(Schema schema)
Returns a
ValueDomain derived from the given Schema . |
static BigDecimal |
Schemas.unitOf(Schema schema)
Returns the unit value for the number range defined by the given schema.
|
protected Stream<VarValueDef> |
TestCaseSchemaResolver.valuesForSchema(Schema schema)
Returns value definitions derived from the given
Schema . |
static SchemaBuilder |
SchemaBuilder.with(Schema schema)
Returns a builder for a copy of the given schema.
|
Constructor and Description |
---|
Schema(Schema other)
Creates a new copy of another Schema instance.
|
Copyright © 2024 The Cornutum Project. All rights reserved.