public class SingleAttributeValueReader extends BaseAttributeValueReader
attributeName, entryName| Constructor and Description |
|---|
SingleAttributeValueReader(Object value,
String entryName,
String attributeName,
AttributeDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
AttributeValueReader |
clone() |
Constrainable |
getDefinition(String attributeName)
This method provides access to the constrainable attribute definition of a specific attribute name.
|
List<Constrainable> |
getDefinitions()
This method returns a list of all constrainable dictionary metadata definitions for attributes or fields encapsulated by this object.
|
Constrainable |
getEntry()
The dictionary metadata associated with an object (its "entry" in the dictionary) can also be constrainable, in which case the object
value itself can be validated against one or more constraints.
|
String |
getLabel(String attributeName)
This method looks up a label for a specific attribute name.
|
Object |
getObject()
The underlying object itself (not the field/attribute value, but the object).
|
String |
getPath()
The path is a string representation of specifically which attribute (at some depth) is being accessed, for example, on a
person object there might be the following field path:
joe.home.mailingAddress.state
|
Class<?> |
getType(String selectedAttributeName)
The type of the attribute specified.
|
<X> X |
getValue()
A convenience method for looking up the attribute value that is currently being processed.
|
<X> X |
getValue(String attributeName)
A method for looking up any attribute value by name for the object being processed.
|
boolean |
isReadable()
Indicates whether the configured attribute name is readable for the object
|
getAttributeName, getCleanSearchableValues, getEntryName, setAttributeNamepublic SingleAttributeValueReader(Object value, String entryName, String attributeName, AttributeDefinition definition)
public Constrainable getDefinition(String attributeName)
AttributeValueReaderattributeName - - the name of the attribute/field whose metadata is being requestedpublic List<Constrainable> getDefinitions()
AttributeValueReaderpublic Constrainable getEntry()
AttributeValueReaderAttributeValueReader.getEntry()public String getLabel(String attributeName)
AttributeValueReaderpublic Object getObject()
AttributeValueReaderpublic String getPath()
AttributeValueReaderpublic Class<?> getType(String selectedAttributeName)
AttributeValueReaderpublic boolean isReadable()
AttributeValueReaderpublic <X> X getValue() throws AttributeValidationException
AttributeValueReaderAttributeValidationExceptionpublic <X> X getValue(String attributeName) throws AttributeValidationException
AttributeValueReaderAttributeValidationExceptionpublic AttributeValueReader clone()
clone in interface AttributeValueReaderclone in class BaseAttributeValueReaderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.