public class ExternalizableAttributeDefinitionProxy extends AttributeDefinition
additionalDisplayAttributeName, alternateDisplayAttributeName, attributeSecurity, cachedDerivedControl, caseConstraint, childEntryName, control, controlField, customValidatorClass, dependencyConstraints, dynamic, forceUppercase, formatterClass, mustOccurConstraints, propertyEditor, unique, validationPattern, validCharactersConstraint
constraintText, dataObjectAttribute, description, displayLabelAttribute, label, name, shortLabel, simpleConstraint, summary
embeddedDataObjectMetadata, generatedFromMetadata, id
componentCode, namespaceCode
Constructor and Description |
---|
ExternalizableAttributeDefinitionProxy()
Constructs an AttributeReferenceDefinition
|
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(Class rootObjectClass,
Class otherObjectClass,
ValidationTrace tracer)
Directly validate simple fields, call completeValidation on Definition
fields.
|
ControlDefinition |
getControl() |
String |
getDescription()
The description element is used to provide a long description of the
attribute or collection.
|
String |
getDisplayLabelAttribute() |
Boolean |
getForceUppercase()
Indicates whether user entry should be converted to upper case
|
String |
getFormatterClass() |
String |
getLabel()
The label element is the field or collection name that will be shown on
inquiry and maintenance screens.
|
Integer |
getMaxLength()
Returns the maximum length for this field, if set.
|
String |
getName()
Name of the attribute
|
String |
getShortLabel() |
String |
getSourceAttributeName() |
String |
getSourceExternalizableBusinessObjectInterface() |
String |
getSummary()
The summary element is used to provide a short description of the
attribute or collection.
|
ValidationPattern |
getValidationPattern()
Defines the allowable character-level or
field-level values for an attribute
|
boolean |
hasFormatterClass() |
boolean |
hasValidationPattern()
Indicates whether a validation pattern has been set
|
Boolean |
isRequired()
The required element allows values of "true" or "false".
|
void |
setSourceAttributeName(String sourceAttributeName) |
void |
setSourceExternalizableBusinessObjectInterface(String sourceClassName) |
String |
toString() |
completeValidation, dataDictionaryPostProcessing, getAdditionalDisplayAttributeName, getAlternateDisplayAttributeName, getAttributeSecurity, getCaseConstraint, getChildEntryName, getControlField, getCustomValidatorClass, getDataType, getDependencyConstraints, getExclusiveMin, getInclusiveMax, getMinLength, getMustOccurConstraints, getOptionsFinder, getPrerequisiteConstraints, getPropertyEditor, getUnique, getValidCharactersConstraint, hasAttributeSecurity, setAdditionalDisplayAttributeName, setAlternateDisplayAttributeName, setAttributeSecurity, setCaseConstraint, setChildEntryName, setControl, setControlField, setCustomValidatorClass, setDataType, setDataType, setDependencyConstraints, setExclusiveMin, setForceUppercase, setFormatterClass, setInclusiveMax, setMaxLength, setMinLength, setMustOccurConstraints, setOptionsFinder, setOptionsFinderClass, setPrerequisiteConstraints, setPropertyEditor, setPropertyEditorClass, setUnique, setValidationPattern, setValidCharactersConstraint
getConstraintText, getDataObjectAttribute, getDirectShortLabel, getSimpleConstraint, setConstraintText, setDataObjectAttribute, setDescription, setDisplayLabelAttribute, setLabel, setName, setRequired, setShortLabel, setSimpleConstraint, setSummary
getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata
clone, copy, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentCode, getNamespaceCode
public ExternalizableAttributeDefinitionProxy()
public void setSourceExternalizableBusinessObjectInterface(String sourceClassName)
public String getSourceExternalizableBusinessObjectInterface()
public void setSourceAttributeName(String sourceAttributeName)
public String getSourceAttributeName()
public Boolean getForceUppercase()
AttributeDefinition
If set all user input will be changed to uppercase. Values from the database will also be forced to display as upper case and thus be persisted as upper case.
If not set and embedded metadata is present, the ForceUppercase value will be read from the linked metadata.getForceUppercase
in class AttributeDefinition
AttributeDefinition.getForceUppercase()
public String getName()
AttributeDefinitionBase
getName
in interface Constrainable
getName
in class AttributeDefinitionBase
AttributeDefinitionBase.getName()
public String getLabel()
AttributeDefinitionBase
getLabel
in class AttributeDefinitionBase
AttributeDefinitionBase.getLabel()
public String getShortLabel()
getShortLabel
in class AttributeDefinitionBase
AttributeDefinitionBase.getShortLabel()
public Integer getMaxLength()
AttributeDefinition
getMaxLength
in class AttributeDefinition
AttributeDefinition.getMaxLength()
public boolean hasValidationPattern()
AttributeDefinition
hasValidationPattern
in class AttributeDefinition
AttributeDefinition.hasValidationPattern()
public ValidationPattern getValidationPattern()
AttributeDefinition
ValidationPattern is a Map which is accessed using a key of "validationPattern". Each entry may contain some of the keys listed below. The keys that may be present for a given attribute are dependent upon the type of validationPattern. maxLength (String) exactLength type allowWhitespace allowUnderscore allowPeriod validChars precision scale allowNegative The allowable keys (in addition to type) for each type are: Type**** ***Keys*** alphanumeric exactLength maxLength allowWhitespace allowUnderscore allowPeriod alpha exactLength maxLength allowWhitespace anyCharacter exactLength maxLength allowWhitespace charset validChars numeric exactLength maxLength fixedPoint allowNegative precision scale floatingPoint allowNegative date n/a emailAddress n/a javaClass n/a month n/a phoneNumber n/a timestamp n/a year n/a zipcode n/a Note: maxLength and exactLength are mutually exclusive. If one is entered, the other may not be entered. Note: See ApplicationResources.properties for exact regex patterns. e.g. validationPatternRegex.date for regex used in date validation.
getValidationPattern
in class AttributeDefinition
AttributeDefinition.getValidationPattern()
public Boolean isRequired()
AttributeDefinitionBase
isRequired
in interface ExistenceConstraint
isRequired
in class AttributeDefinitionBase
AttributeDefinitionBase.isRequired()
public ControlDefinition getControl()
getControl
in class AttributeDefinition
AttributeDefinition.getControl()
public String getSummary()
AttributeDefinitionBase
getSummary
in class AttributeDefinitionBase
AttributeDefinitionBase.getSummary()
public String getDescription()
AttributeDefinitionBase
getDescription
in class AttributeDefinitionBase
AttributeDefinitionBase.getDescription()
public boolean hasFormatterClass()
hasFormatterClass
in class AttributeDefinition
AttributeDefinition.hasFormatterClass()
public String getFormatterClass()
getFormatterClass
in interface Formatable
getFormatterClass
in class AttributeDefinition
AttributeDefinition.getFormatterClass()
public String getDisplayLabelAttribute()
getDisplayLabelAttribute
in class AttributeDefinitionBase
AttributeDefinitionBase.getDisplayLabelAttribute()
public void completeValidation(Class rootObjectClass, Class otherObjectClass, ValidationTrace tracer)
AttributeDefinition
completeValidation
in interface DataDictionaryDefinition
completeValidation
in class AttributeDefinition
rootObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherObjectClass
- other stuff required to complete validationtracer
- ValidationTrace
class used to track what was being validated at the time of any problems discoveredDataDictionaryEntry.completeValidation()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.