Class FieldDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.kns.datadictionary.FieldDefinition
- All Implemented Interfaces:
Serializable,Cloneable,FieldDefinitionI,Copyable,DataDictionaryDefinition,DictionaryBean
- Direct Known Subclasses:
InquiryCollectionDefinition,InquirySubSectionHeaderDefinition
@Deprecated
public class FieldDefinition
extends DataDictionaryDefinitionBase
implements FieldDefinitionI
Deprecated.
Contains field-related information for DataDictionary entries. Used by lookups and inquiries.
Note: the setters do copious amounts of validation, to facilitate generating errors during the parsing process.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected Class<? extends ValueFinder> Deprecated.protected StringDeprecated.protected MaskDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected IntegerDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected StringDeprecated.protected Class<? extends ValueFinder> Deprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
embeddedDataObjectMetadata, generatedFromMetadata, idFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) Deprecated.Directly validate simple fields.Deprecated.Deprecated.Deprecated.Deprecated.Class<? extends ValueFinder> Deprecated.Deprecated.Deprecated.Deprecated.Gets the maxLength attribute.getName()Deprecated.Deprecated.the quickfinderParameterString is a comma separated list of parameter/value pairs, of the format "param1=value1,param2=value2", where the parameters correspond to attributes of the target class for the quickfinder, and the values to literals that those attributes will default to when the quickfinder is used.Class<? extends ValueFinder> Deprecated.the quickfinderParameterStringBuilderClass specifies the java class that will be used to determine the default value(s) for field(s) on the target lookup when the quickfinder is used.booleanDeprecated.booleanDeprecated.booleanisHidden()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisTotal()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidsetAdditionalDisplayAttributeName(String additionalDisplayAttributeName) Deprecated.voidsetAlternateDisplayAttributeName(String alternateDisplayAttributeName) Deprecated.voidsetAttributeName(String attributeName) Deprecated.Sets attributeName to the given value.voidsetDefaultValue(String defaultValue) Deprecated.The defaultValue element will pre-load the specified value into the field.voidsetDefaultValueFinderClass(Class<? extends ValueFinder> defaultValueFinderClass) Deprecated.The defaultValueFinderClass specifies the java class that will be used to determine the default value of a field.voidsetDisplayEditMode(String displayEditMode) Deprecated.voidsetDisplayMask(Mask displayMask) Deprecated.The displayMask element specifies the type of masking to be used to hide the value from un-authorized users.voidsetForceInquiry(boolean forceInquiry) Deprecated.forceInquiry = true means that the displayed field value will always be made inquirable (this attribute is not used within the code).voidsetForceLookup(boolean forceLookup) Deprecated.forceLookup = this attribute is not usedvoidsetHidden(boolean hidden) Deprecated.voidsetMaxLength(Integer maxLength) Deprecated.maxLength = the maximum allowable length of the field in the lookup result fields.voidsetNoDirectInquiry(boolean noDirectInquiry) Deprecated.voidsetNoInquiry(boolean noInquiry) Deprecated.noInquiry = true means that the displayed field will never be made inquirable.voidsetNoLookup(boolean noLookup) Deprecated.noLookup = true means that field should not include magnifying glass (i.e. quickfinder)voidsetQuickfinderParameterString(String quickfinderParameterString) Deprecated.voidsetQuickfinderParameterStringBuilderClass(Class<? extends ValueFinder> quickfinderParameterStringBuilderClass) Deprecated.voidsetReadOnly(boolean readOnly) Deprecated.voidsetRequired(boolean required) Deprecated.required = true means that the user must enter something into the search criterion lookup fieldvoidsetTotal(boolean total) Deprecated.voidsetTreatWildcardsAndOperatorsAsLiteral(boolean treatWildcardsAndOperatorsAsLiteralOnLookups) Deprecated.voidsetTriggerOnChange(boolean triggerOnChange) Deprecated.voidsetUseShortLabel(boolean useShortLabel) Deprecated.toString()Deprecated.Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadataMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Field Details
-
attributeName
Deprecated. -
required
protected boolean requiredDeprecated. -
forceInquiry
protected boolean forceInquiryDeprecated. -
noInquiry
protected boolean noInquiryDeprecated. -
noDirectInquiry
protected boolean noDirectInquiryDeprecated. -
forceLookup
protected boolean forceLookupDeprecated. -
noLookup
protected boolean noLookupDeprecated. -
useShortLabel
protected boolean useShortLabelDeprecated. -
defaultValue
Deprecated. -
defaultValueFinderClass
Deprecated. -
quickfinderParameterString
Deprecated. -
quickfinderParameterStringBuilderClass
Deprecated. -
maxLength
Deprecated. -
displayEditMode
Deprecated. -
displayMask
Deprecated. -
readOnly
protected boolean readOnlyDeprecated. -
treatWildcardsAndOperatorsAsLiteral
protected boolean treatWildcardsAndOperatorsAsLiteralDeprecated. -
alternateDisplayAttributeName
Deprecated. -
additionalDisplayAttributeName
Deprecated. -
triggerOnChange
protected boolean triggerOnChangeDeprecated. -
total
protected boolean totalDeprecated.
-
-
Constructor Details
-
FieldDefinition
public FieldDefinition()Deprecated.
-
-
Method Details
-
getAttributeName
Deprecated.- Returns:
- attributeName
-
setAttributeName
Deprecated.Sets attributeName to the given value.- Parameters:
attributeName-- Throws:
IllegalArgumentException- if the given attributeName is blank
-
isRequired
public boolean isRequired()Deprecated.- Returns:
- true if this attribute is required
-
setRequired
public void setRequired(boolean required) Deprecated.required = true means that the user must enter something into the search criterion lookup field -
isForceInquiry
public boolean isForceInquiry()Deprecated.- Returns:
- Returns the forceInquiry.
-
setForceInquiry
public void setForceInquiry(boolean forceInquiry) Deprecated.forceInquiry = true means that the displayed field value will always be made inquirable (this attribute is not used within the code). -
isForceLookup
public boolean isForceLookup()Deprecated.- Returns:
- Returns the forceLookup.
-
setForceLookup
public void setForceLookup(boolean forceLookup) Deprecated.forceLookup = this attribute is not used -
isNoInquiry
public boolean isNoInquiry()Deprecated.- Returns:
- Returns the noInquiry.
-
isNoDirectInquiry
public boolean isNoDirectInquiry()Deprecated.- Returns:
- Returns a boolean value indicating whether or not to provide a direct inquiry for the lookup field
-
setNoInquiry
public void setNoInquiry(boolean noInquiry) Deprecated.noInquiry = true means that the displayed field will never be made inquirable. -
setNoDirectInquiry
public void setNoDirectInquiry(boolean noDirectInquiry) Deprecated.- Parameters:
noInquiry- If true, the displayed field will not have a direct inquiry facility
-
isNoLookup
public boolean isNoLookup()Deprecated.- Returns:
- Returns the noLookup.
-
setNoLookup
public void setNoLookup(boolean noLookup) Deprecated.noLookup = true means that field should not include magnifying glass (i.e. quickfinder) -
isUseShortLabel
public boolean isUseShortLabel()Deprecated.- Returns:
- the useShortLabel
-
setUseShortLabel
public void setUseShortLabel(boolean useShortLabel) Deprecated.- Parameters:
useShortLabel- the useShortLabel to set
-
getDefaultValue
Deprecated.- Returns:
- Returns the defaultValue.
-
setDefaultValue
Deprecated.The defaultValue element will pre-load the specified value into the field. -
getQuickfinderParameterString
Deprecated.the quickfinderParameterString is a comma separated list of parameter/value pairs, of the format "param1=value1,param2=value2", where the parameters correspond to attributes of the target class for the quickfinder, and the values to literals that those attributes will default to when the quickfinder is used.- Returns:
- the quickfinderParameterString
-
setQuickfinderParameterString
Deprecated.- Parameters:
quickfinderParameterString- the quickfinderParameterString to set. SeegetQuickfinderParameterString()
-
getQuickfinderParameterStringBuilderClass
Deprecated.the quickfinderParameterStringBuilderClass specifies the java class that will be used to determine the default value(s) for field(s) on the target lookup when the quickfinder is used. The classname specified in this field must implementValueFinder. SeegetQuickfinderParameterString()for the result string format.- Returns:
- the quickfinderParameterStringBuilderClass
-
setQuickfinderParameterStringBuilderClass
public void setQuickfinderParameterStringBuilderClass(Class<? extends ValueFinder> quickfinderParameterStringBuilderClass) Deprecated.- Parameters:
quickfinderParameterStringBuilderClass- the quickfinderParameterStringBuilderClass to set
-
completeValidation
Deprecated.Directly validate simple fields.- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classDataDictionaryDefinitionBase- See Also:
-
toString
Deprecated. -
getName
Deprecated.- Specified by:
getNamein interfaceFieldDefinitionI
-
getDisplayEditMode
Deprecated. -
setDisplayEditMode
Deprecated. -
getDisplayMask
Deprecated. -
setDisplayMask
Deprecated.The displayMask element specifies the type of masking to be used to hide the value from un-authorized users. There are three types of masking. -
isReadOnlyAfterAdd
public boolean isReadOnlyAfterAdd()Deprecated.- Specified by:
isReadOnlyAfterAddin interfaceFieldDefinitionI
-
getMaxLength
Deprecated.Gets the maxLength attribute.- Returns:
- Returns the maxLength.
-
setMaxLength
Deprecated.maxLength = the maximum allowable length of the field in the lookup result fields. In other contexts, like inquiries, this field has no effect. -
getDefaultValueFinderClass
Deprecated.- Returns:
- custom defaultValue class
-
setDefaultValueFinderClass
Deprecated.The defaultValueFinderClass specifies the java class that will be used to determine the default value of a field. The classname specified in this field must implement ValueFinder -
isHidden
public boolean isHidden()Deprecated.- Returns:
- the hidden
-
setHidden
public void setHidden(boolean hidden) Deprecated.- Parameters:
hidden- If the ControlDefinition.isHidden == true then a corresponding LookupDefinition would automatically be removed from the search criteria. In some cases you might want the hidden field to be used as a search criteria. For example, in PersonImpl.xml a client might want to have the campus code hidden and preset to Bloomington. So when the search is run, only people from the bloomington campus are returned. So, if you want to have a hidden search criteria, set this variable to true. Defaults to false.
-
isReadOnly
public boolean isReadOnly()Deprecated.- Returns:
- the readOnly
-
setReadOnly
public void setReadOnly(boolean readOnly) Deprecated.- Parameters:
readOnly- the readOnly to set
-
isTriggerOnChange
public boolean isTriggerOnChange()Deprecated. -
setTriggerOnChange
public void setTriggerOnChange(boolean triggerOnChange) Deprecated. -
isTreatWildcardsAndOperatorsAsLiteral
public boolean isTreatWildcardsAndOperatorsAsLiteral()Deprecated.- Returns:
- the treatWildcardsAndOperatorsAsLiteralOnLookups
-
setTreatWildcardsAndOperatorsAsLiteral
public void setTreatWildcardsAndOperatorsAsLiteral(boolean treatWildcardsAndOperatorsAsLiteralOnLookups) Deprecated.- Parameters:
treatWildcardsAndOperatorsAsLiteralOnLookups- the treatWildcardsAndOperatorsAsLiteralOnLookups to set
-
getAlternateDisplayAttributeName
Deprecated.- Specified by:
getAlternateDisplayAttributeNamein interfaceFieldDefinitionI
-
setAlternateDisplayAttributeName
Deprecated. -
getAdditionalDisplayAttributeName
Deprecated.- Specified by:
getAdditionalDisplayAttributeNamein interfaceFieldDefinitionI
-
setAdditionalDisplayAttributeName
Deprecated. -
isTotal
public boolean isTotal()Deprecated. -
setTotal
public void setTotal(boolean total) Deprecated.
-
Fieldsubclasses.