public class NumericFieldDef extends FieldDef
| Modifier and Type | Field and Description |
|---|---|
protected DecimalFormat |
patternFormat |
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
NumericFieldDef() |
NumericFieldDef(String name,
FieldType type) |
assertValid, fromJson, generateConstructor, getAllowedValues, getAttributes, getDefaultValueExpression, getDefaultValueExpressionAsString, getDescription, getDisplayName, getDisplayNameOrName, getEntityDef, getEntityQualifiedName, getExample, getIndexInEntityDef, getMaximumElements, getMinimumElements, getName, getNameForErrorMessage, getPosition, getPrimaryKeyPosition, getPrimaryKeyType, getQualifiedName, getSchemaDef, getSchemaDef, getSchemaPartContainer, getSchemaPartName, getSchemaPartType, getTags, getType, isArray, isLimitToAllowedValues, isPrimaryKey, isRequired, isStrictArrays, mapValue, newInstanceFromRecord, newInstanceFromType, newInstanceFromXml, toJson, validateAllowedValues, validateField, validateField, validateField, validateField, validateValue, validateValuegetSchemaName, getSchemaPartContainerName, getSchemaPartContainerTypeaddExceptionProperties, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalIdfinalize, getClass, notify, notifyAll, wait, wait, waitgetSchemaProblems, getSchemaProblemsfromArrayValue, fromArrayValue, fromArrayValue, fromJson, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiesprotected DecimalFormat patternFormat
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems in interface SchemaProblemsSuppliergetSchemaProblems in class FieldDefpublic NumericFieldDef clone()
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode in interface JavaCodeGeneratorgenerateJavaCode in class FieldDefpublic String getPattern()
public NumericFieldDef setPattern(String pattern)
protected Object mapValueImpl(Object value) throws Throwable
mapValueImpl in class FieldDefThrowableprotected void validateValueImpl(Object value, ValidationResult result) throws Throwable
validateValueImpl in class FieldDefThrowableprotected NumericFieldDef setEntityDef(EntityDef entityDef)
setEntityDef in class FieldDefpublic NumericFieldDef setName(String name)
public NumericFieldDef setDisplayName(String displayName)
setDisplayName in class FieldDefpublic NumericFieldDef setDescription(String description)
setDescription in class FieldDefpublic NumericFieldDef setType(FieldType type)
public NumericFieldDef setRequired(boolean required)
setRequired in class FieldDefpublic NumericFieldDef setMinimumElements(Integer minimumElements)
setMinimumElements in class FieldDefpublic NumericFieldDef setMaximumElements(Integer maximumElements)
setMaximumElements in class FieldDefpublic NumericFieldDef setArray(boolean array)
FieldDefFieldDef.getMinimumElements() to zero (0) if both FieldDef.getMinimumElements() and FieldDef.getMaximumElements() are null, otherwise, does nothing.public NumericFieldDef setStrictArrays(boolean strictArrays)
setStrictArrays in class FieldDefpublic NumericFieldDef setAllowedValues(ValueMatch<?> allowedValues)
setAllowedValues in class FieldDefpublic NumericFieldDef setLimitToAllowedValues(boolean limitToAllowedValues)
setLimitToAllowedValues in class FieldDefpublic NumericFieldDef setPrimaryKeyPosition(Integer primaryKeyPosition)
setPrimaryKeyPosition in class FieldDefpublic NumericFieldDef setPrimaryKeyType(PrimaryKeyType primaryKeyType)
setPrimaryKeyType in class FieldDefpublic Integer getPrecision()
public NumericFieldDef setPrecision(Integer precision)
public Integer getScale()
public NumericFieldDef setScale(Integer scale)
public Number getMinimum()
public NumericFieldDef setMinimum(Number minimum)
public Number getMaximum()
public NumericFieldDef setMaximum(Number maximum)
public NumericFieldDef setPosition(Integer position)
setPosition in class FieldDefpublic NumericFieldDef setDefaultValueExpression(Expression defaultValueExpression)
FieldDefsetDefaultValueExpression in class FieldDefpublic NumericFieldDef setExample(String example)
setExample in class FieldDefpublic NumericFieldDef setAttributes(Attributes attributes)
setAttributes in class FieldDefpublic NumericFieldDef setTags(Tags tags)
public Record toRecord()
toRecord in interface RecordSerializabletoRecord in class FieldDefpublic NumericFieldDef fromRecord(Record source)
RecordSerializablethis (for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord in interface RecordSerializablefromRecord in class FieldDefpublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializabletoXmlElement in class FieldDefpublic NumericFieldDef fromXmlElement(Element fieldDefElement)
fromXmlElement in interface XmlSerializablefromXmlElement in class FieldDefCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.