public class ViewAttributeValueReader extends BaseAttributeValueReader
| Modifier and Type | Class and Description |
|---|---|
class |
ViewAttributeValueReader.InputFieldConstrainableInfo
This is a simple object used to contain information about InputFields that are being evaluated and used by
this ViewAttributeValueReader.
|
attributeName, entryName| Constructor and Description |
|---|
ViewAttributeValueReader(ViewModel form)
Constructor for ViewAttributeValueReader, the View must already be indexed and
the InputFields must have already be initialized for this reader to work properly
|
| Modifier and Type | Method and Description |
|---|---|
AttributeValueReader |
clone()
Cones this AttributeValueReader
|
Constrainable |
getDefinition(String attributeName)
Gets the definition which is an InputField on the View/Page
|
List<Constrainable> |
getDefinitions()
Gets all InputFields (which extend Constrainable)
|
Constrainable |
getEntry()
Not used for this reader, returns null
|
String |
getLabel(String attributeName)
Returns the label associated with the InputField which has that AttributeName
|
Object |
getObject()
Returns the Form object
|
String |
getPath()
Returns current attributeName which represents the path
|
Class<?> |
getType(String attributeName)
Gets the type of value for this AttributeName as represented on the Form
|
<X> X |
getValue()
Return value of the field for the attributeName currently set on this reader
|
<X> X |
getValue(String attributeName)
Return value of the field for the attributeName passed in
|
boolean |
isReadable()
If the current attribute being evaluated is a field of an addLine return false because it should not
be evaluated during Validation.
|
getAttributeName, getCleanSearchableValues, getEntryName, setAttributeNamepublic ViewAttributeValueReader(ViewModel form)
form - model object representing the View's form datapublic Constrainable getDefinition(String attributeName)
attributeName - - the name of the attribute/field whose metadata is being requestedpublic List<Constrainable> getDefinitions()
public String getLabel(String attributeName)
attributeName - attribute namepublic Constrainable getEntry()
public String getPath()
public Class<?> getType(String attributeName)
attributeName - public boolean isReadable()
public <X> X getValue() throws AttributeValidationException
X - return typeAttributeValidationExceptionpublic <X> X getValue(String attributeName) throws AttributeValidationException
X - return typeattributeName - name (which represents a path) of the value to be retrieved on the FormAttributeValidationExceptionpublic AttributeValueReader clone()
clone in interface AttributeValueReaderclone in class BaseAttributeValueReaderCopyright © 2005–2015 The Kuali Foundation. All rights reserved.