public class Schema extends Object
Constructor and Description |
---|
Schema(DataValue.Type type)
Creates a new Schema instance of the given type.
|
Schema(Schema other)
Creates a new copy of another Schema instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
DataValue<?> |
getConstant()
Returns the constant value of all input values.
|
Set<DataValue<?>> |
getEnum()
Returns the enumeration of all input values.
|
BigDecimal |
getExclusiveMaximum()
Returns the maximum (exclusive) for numeric values.
|
BigDecimal |
getExclusiveMinimum()
Returns the minimum (exclusive) for numeric values.
|
String |
getFormat()
Returns the format of input values.
|
Schema |
getItems()
Returns the schema for array items.
|
BigDecimal |
getMaximum()
Returns the maximum (inclusive) for numeric values.
|
Integer |
getMaxItems()
Returns the maximum size of array values.
|
Integer |
getMaxLength()
Returns the maximum length of string values.
|
BigDecimal |
getMinimum()
Returns the minimum (inclusive) for numeric values.
|
Integer |
getMinItems()
Returns the minimum size of array values.
|
Integer |
getMinLength()
Returns the minimum length of string values.
|
BigDecimal |
getMultipleOf()
Returns the common divisor for numeric input values.
|
String |
getPattern()
Returns the regular expression matching string values.
|
DataValue.Type |
getType()
Returns the type of input values.
|
Boolean |
getUniqueItems()
Returns if array items must be unique.
|
int |
hashCode() |
boolean |
isClassifier()
Returns true if this schema is a "classifier" that describes a set values
that have specific properties.
|
Schema |
merge(Schema other)
Creates a new schema by merging the contents of another schema, using this schema as the default.
|
int |
propertyHashCode()
Returns a constant hash code value defined by the properties of this schema.
|
void |
setConstant(DataValue<?> constant)
Changes the constant value of all input values.
|
void |
setEnum(Collection<DataValue<?>> enums)
Changes the enumeration of all input values.
|
void |
setExclusiveMaximum(BigDecimal exclusiveMaximum)
Changes the maximum (exclusive) for numeric values.
|
void |
setExclusiveMinimum(BigDecimal exclusiveMinimum)
Changes the minimum (exclusive) for numeric values.
|
void |
setFormat(String format)
Changes the format of input values.
|
void |
setItems(Schema items)
Changes the schema for array items.
|
void |
setMaximum(BigDecimal maximum)
Changes the maximum (inclusive) for numeric values.
|
void |
setMaxItems(Integer maxItems)
Changes the maximum size of array values.
|
void |
setMaxLength(Integer maxLength)
Changes the maximum length of string values.
|
void |
setMinimum(BigDecimal minimum)
Changes the minimum (inclusive) for numeric values.
|
void |
setMinItems(Integer minItems)
Changes the minimum size of array values.
|
void |
setMinLength(Integer minLength)
Changes the minimum length of string values.
|
void |
setMultipleOf(BigDecimal multipleOf)
Changes the common divisor for numeric input values.
|
void |
setPattern(String pattern)
Changes the regular expression matching string values.
|
void |
setUniqueItems(Boolean uniqueItems)
Changes if array items must be unique.
|
String |
toString() |
public Schema(DataValue.Type type)
public Schema(Schema other)
public Schema merge(Schema other)
public DataValue.Type getType()
public void setConstant(DataValue<?> constant)
public DataValue<?> getConstant()
public void setEnum(Collection<DataValue<?>> enums)
public void setFormat(String format)
public String getFormat()
public void setMinimum(BigDecimal minimum)
public BigDecimal getMinimum()
public void setMaximum(BigDecimal maximum)
public BigDecimal getMaximum()
public void setExclusiveMinimum(BigDecimal exclusiveMinimum)
public BigDecimal getExclusiveMinimum()
public void setExclusiveMaximum(BigDecimal exclusiveMaximum)
public BigDecimal getExclusiveMaximum()
public void setMultipleOf(BigDecimal multipleOf)
public BigDecimal getMultipleOf()
public void setMinLength(Integer minLength)
public Integer getMinLength()
public void setMaxLength(Integer maxLength)
public Integer getMaxLength()
public void setPattern(String pattern)
public String getPattern()
public void setMinItems(Integer minItems)
public Integer getMinItems()
public void setMaxItems(Integer maxItems)
public Integer getMaxItems()
public void setUniqueItems(Boolean uniqueItems)
public Boolean getUniqueItems()
public void setItems(Schema items)
public Schema getItems()
public boolean isClassifier()
public int propertyHashCode()
Copyright © 2024 The Cornutum Project. All rights reserved.