Class BaseAttributeValueReader
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.BaseAttributeValueReader
- All Implemented Interfaces:
AttributeValueReader
- Direct Known Subclasses:
DictionaryObjectAttributeValueReader,SingleAttributeValueReader,ViewAttributeValueReader
A class that implements the required accessors and legacy processing for an attribute value reader. This provides a
convenient base class
from which other attribute value readers can be derived.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AttributeValueReaderclone()overridesObject.clone()acts as an accessor for the attribute name that is currently being processed by the DictionaryValidationService implementationgetCleanSearchableValues(String attributeKey) enables legacy processing of string representations of attribute values like a date range in the format 12/03/2001..1/29/2009gets the entry name for the purposes of correct error look upvoidsetAttributeName(String currentName) Setter for the current attribute that is being processedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.validation.AttributeValueReader
getDefinition, getDefinitions, getEntry, getLabel, getObject, getPath, getType, getValue, getValue, isReadable
-
Field Details
-
entryName
-
attributeName
-
-
Constructor Details
-
BaseAttributeValueReader
public BaseAttributeValueReader()
-
-
Method Details
-
getCleanSearchableValues
public List<String> getCleanSearchableValues(String attributeKey) throws AttributeValidationException Description copied from interface:AttributeValueReaderenables legacy processing of string representations of attribute values like a date range in the format 12/03/2001..1/29/2009- Specified by:
getCleanSearchableValuesin interfaceAttributeValueReader- Parameters:
attributeKey- - the attribute name- Returns:
- the list of token strings for the attribute value of the named attribute
- Throws:
AttributeValidationException
-
getAttributeName
Description copied from interface:AttributeValueReaderacts as an accessor for the attribute name that is currently being processed by the DictionaryValidationService implementation- Specified by:
getAttributeNamein interfaceAttributeValueReader- Returns:
- the currentName
-
setAttributeName
Description copied from interface:AttributeValueReaderSetter for the current attribute that is being processed- Specified by:
setAttributeNamein interfaceAttributeValueReader- Parameters:
currentName- the currentName to set
-
getEntryName
Description copied from interface:AttributeValueReadergets the entry name for the purposes of correct error look upErrors are generally found by entry name + attribute name + error key
- Specified by:
getEntryNamein interfaceAttributeValueReader- Returns:
- the entryName
-
clone
Description copied from interface:AttributeValueReaderoverridesObject.clone()- Specified by:
clonein interfaceAttributeValueReader- Overrides:
clonein classObject- Returns:
- a cloned
AttributeValueReader
-