|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.datadictionary.validation.BaseAttributeValueReader
org.kuali.rice.krad.datadictionary.validation.ViewAttributeValueReader
public class ViewAttributeValueReader
AttributeValueReader which can read the correct values from all InputFields which exist on the View
| Field Summary |
|---|
| Fields inherited from class org.kuali.rice.krad.datadictionary.validation.BaseAttributeValueReader |
|---|
attributeName, entryName |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | ||
|---|---|---|
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 |
|
|
getValue()
Return value of the field for the attributeName currently set on this reader |
|
|
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. |
|
| Methods inherited from class org.kuali.rice.krad.datadictionary.validation.BaseAttributeValueReader |
|---|
getAttributeName, getCleanSearchableValues, getEntryName, setAttributeName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewAttributeValueReader(View view,
Object form)
view - the View to validateform - model object representing the View's form data| Method Detail |
|---|
public Constrainable getDefinition(String attributeName)
attributeName - - the name of the attribute/field whose metadata is being requested
public List<Constrainable> getDefinitions()
public String getLabel(String attributeName)
attributeName -
public Object getObject()
public Constrainable getEntry()
public String getPath()
public Class<?> getType(String attributeName)
attributeName -
public boolean isReadable()
public <X> X getValue()
throws AttributeValidationException
X - return type
AttributeValidationException
public <X> X getValue(String attributeName)
throws AttributeValidationException
X - return typeattributeName - name (which represents a path) of the value to be retrieved on the Form
AttributeValidationExceptionpublic AttributeValueReader clone()
clone in interface AttributeValueReaderclone in class BaseAttributeValueReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||