public class ViewAttributeValueReader extends BaseAttributeValueReader
attributeName, entryName| Constructor and Description | 
|---|
| ViewAttributeValueReader(View view,
                        Object 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 View 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(View view, Object form)
view - the View to validateform - 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 - public 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–2016 The Kuali Foundation. All rights reserved.