public class TemporalFieldDef extends FieldDef
Modifier and Type | Field and Description |
---|---|
protected DateTimeFormatter |
patternFormat |
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_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, validateValue
getSchemaName, getSchemaPartContainerName, getSchemaPartContainerType
addExceptionProperties, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalId
finalize, getClass, notify, notifyAll, wait, wait, wait
getSchemaProblems, getSchemaProblems
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
protected DateTimeFormatter patternFormat
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems
in interface SchemaProblemsSupplier
getSchemaProblems
in class FieldDef
public TemporalFieldDef clone()
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode
in interface JavaCodeGenerator
generateJavaCode
in class FieldDef
public 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 FieldDef
Throwable
protected void validateValueImpl(Object value, ValidationResult result) throws Throwable
validateValueImpl
in class FieldDef
Throwable
protected TemporalFieldDef setEntityDef(EntityDef entityDef)
setEntityDef
in class FieldDef
public TemporalFieldDef setName(String name)
public TemporalFieldDef setDisplayName(String displayName)
setDisplayName
in class FieldDef
public TemporalFieldDef setDescription(String description)
setDescription
in class FieldDef
public TemporalFieldDef setType(FieldType type)
public TemporalFieldDef setRequired(boolean required)
setRequired
in class FieldDef
public TemporalFieldDef setMinimumElements(Integer minimumElements)
setMinimumElements
in class FieldDef
public TemporalFieldDef setMaximumElements(Integer maximumElements)
setMaximumElements
in class FieldDef
public TemporalFieldDef setArray(boolean array)
FieldDef
FieldDef.getMinimumElements()
to zero (0) if both FieldDef.getMinimumElements()
and FieldDef.getMaximumElements()
are null, otherwise, does nothing.public TemporalFieldDef setStrictArrays(boolean strictArrays)
setStrictArrays
in class FieldDef
public TemporalFieldDef setAllowedValues(ValueMatch<?> allowedValues)
setAllowedValues
in class FieldDef
public TemporalFieldDef setLimitToAllowedValues(boolean limitToAllowedValues)
setLimitToAllowedValues
in class FieldDef
public TemporalFieldDef setPrimaryKeyPosition(Integer primaryKeyPosition)
setPrimaryKeyPosition
in class FieldDef
public TemporalFieldDef setPrimaryKeyType(PrimaryKeyType primaryKeyType)
setPrimaryKeyType
in class FieldDef
public TemporalAccessor getMinimum()
public TemporalFieldDef setMinimum(TemporalAccessor minimum)
public TemporalAccessor getMaximum()
public TemporalFieldDef setMaximum(TemporalAccessor maximum)
public TemporalFieldDef setPosition(Integer position)
setPosition
in class FieldDef
public TemporalFieldDef setDefaultValueExpression(Expression defaultValueExpression)
FieldDef
setDefaultValueExpression
in class FieldDef
public TemporalFieldDef setExample(String example)
setExample
in class FieldDef
public TemporalFieldDef setAttributes(Attributes attributes)
setAttributes
in class FieldDef
public TemporalFieldDef setTags(Tags tags)
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class FieldDef
public TemporalFieldDef fromRecord(Record source)
RecordSerializable
this
(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 RecordSerializable
fromRecord
in class FieldDef
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
toXmlElement
in class FieldDef
public TemporalFieldDef fromXmlElement(Element fieldDefElement)
fromXmlElement
in interface XmlSerializable
fromXmlElement
in class FieldDef
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.