public class TemporalFieldDef extends FieldDef
| Modifier and Type | Field and Description |
|---|---|
protected DateTimeFormatter |
patternFormat |
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
TemporalFieldDef() |
TemporalFieldDef(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 DateTimeFormatter patternFormat
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems in interface SchemaProblemsSuppliergetSchemaProblems in class FieldDefpublic TemporalFieldDef clone()
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode in interface JavaCodeGeneratorgenerateJavaCode in class FieldDefpublic String getPattern()
public TemporalFieldDef setPattern(String pattern)
public boolean isLenientPattern()
public TemporalFieldDef setLenientPattern(boolean lenientPattern)
protected Object mapValueImpl(Object value) throws Throwable
mapValueImpl in class FieldDefThrowableprotected void validateValueImpl(Object value, ValidationResult result) throws Throwable
validateValueImpl in class FieldDefThrowableprotected TemporalFieldDef setEntityDef(EntityDef entityDef)
setEntityDef in class FieldDefpublic TemporalFieldDef setName(String name)
public TemporalFieldDef setDisplayName(String displayName)
setDisplayName in class FieldDefpublic TemporalFieldDef setDescription(String description)
setDescription in class FieldDefpublic TemporalFieldDef setType(FieldType type)
public TemporalFieldDef setRequired(boolean required)
setRequired in class FieldDefpublic TemporalFieldDef setMinimumElements(Integer minimumElements)
setMinimumElements in class FieldDefpublic TemporalFieldDef setMaximumElements(Integer maximumElements)
setMaximumElements in class FieldDefpublic TemporalFieldDef setArray(boolean array)
FieldDefFieldDef.getMinimumElements() to zero (0) if both FieldDef.getMinimumElements() and FieldDef.getMaximumElements() are null, otherwise, does nothing.public TemporalFieldDef setStrictArrays(boolean strictArrays)
setStrictArrays in class FieldDefpublic TemporalFieldDef setAllowedValues(ValueMatch<?> allowedValues)
setAllowedValues in class FieldDefpublic TemporalFieldDef setLimitToAllowedValues(boolean limitToAllowedValues)
setLimitToAllowedValues in class FieldDefpublic TemporalFieldDef setPrimaryKeyPosition(Integer primaryKeyPosition)
setPrimaryKeyPosition in class FieldDefpublic TemporalFieldDef setPrimaryKeyType(PrimaryKeyType primaryKeyType)
setPrimaryKeyType in class FieldDefpublic TemporalAccessor getMinimum()
public TemporalFieldDef setMinimum(TemporalAccessor minimum)
public TemporalAccessor getMaximum()
public TemporalFieldDef setMaximum(TemporalAccessor maximum)
public TemporalFieldDef setPosition(Integer position)
setPosition in class FieldDefpublic TemporalFieldDef setDefaultValueExpression(Expression defaultValueExpression)
FieldDefsetDefaultValueExpression in class FieldDefpublic TemporalFieldDef setExample(String example)
setExample in class FieldDefpublic TemporalFieldDef setAttributes(Attributes attributes)
setAttributes in class FieldDefpublic TemporalFieldDef setTags(Tags tags)
public Record toRecord()
toRecord in interface RecordSerializabletoRecord in class FieldDefpublic TemporalFieldDef 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 TemporalFieldDef fromXmlElement(Element fieldDefElement)
fromXmlElement in interface XmlSerializablefromXmlElement in class FieldDefCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.