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