public class NumberType extends DataType<Number>
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_EXCLUSIVE_MAX
The feature name for the exclusiveMax.
|
static String |
FEATURE_EXCLUSIVE_MIN
The feature name for the exclusiveMin.
|
static String |
FEATURE_MAX_VALUE
The feature name for the maxValue.
|
static String |
FEATURE_MIN_VALUE
The feature name for the exclusiveMax.
|
FEATURE_FORMAT| Constructor and Description |
|---|
NumberType() |
NumberType(String name) |
clone, getDefaultValue, getDescription, getFeatures, getFormat, getKind, getLabel, getName, getProvided, getRegisteredType, isAnnotated, isNullable, isOptional, setAnnotated, setDefaultValue, setDescription, setFeatures, setFormat, setLabel, setName, setNullable, setOptional, setProvided, setRegisteredType, withDefaultValuepublic static final String FEATURE_MIN_VALUE
public static final String FEATURE_MAX_VALUE
public static final String FEATURE_EXCLUSIVE_MIN
public static final String FEATURE_EXCLUSIVE_MAX
public NumberType()
public NumberType(String name)
public NumberType withName(String name)
public NumberType withLabel(String label)
public NumberType withDescription(String description)
withDescription in class DataType<Number>public NumberType withAnnotated(boolean annotated)
withAnnotated in class DataType<Number>public NumberType withAnnotated()
withAnnotated in class DataType<Number>public NumberType withFormat(String format)
withFormat in class DataType<Number>public NumberType withFeatures(Map<String,Object> features)
withFeatures in class DataType<Number>public NumberType withFeature(String name, Object value)
withFeature in class DataType<Number>public NumberType withDefaultValue(Number value)
withDefaultValue in class DataType<Number>public NumberType withNullable(boolean nullable)
withNullable in class DataType<Number>public NumberType withNullable()
withNullable in class DataType<Number>public NumberType withOptional()
withOptional in class DataType<Number>public NumberType withProvided(ProvidedMeta provided)
withProvided in class DataType<Number>public NumberType withMinValue(Number minValue)
public NumberType withMinValue(Number minValue, boolean exclusiveMin)
public NumberType withMaxValue(Number maxValue)
public NumberType withMaxValue(Number maxValue, boolean exclusiveMax)
public Number getMinValue()
public void setMinValue(Number minValue)
public Number getMaxValue()
public void setMaxValue(Number maxValue)
public boolean isExclusiveMin()
public void setExclusiveMin(boolean exclusiveMin)
public boolean isExclusiveMax()
public void setExclusiveMax(boolean exclusiveMax)
Copyright © 2016–2019 Softelnet. All rights reserved.