| com.jcorporate.expresso.core.dataobjects.Mappable
All known Subclasses: com.jcorporate.expresso.core.security.User,
Mappable | public interface Mappable (Code) | | Objects that implement this interface are claiming that there is a one-to-one
relation between one field value and a key field value. A classic example
of this in Expresso is the fact that a ExpUid maps one to one to the
LoginName. This helps guarantee that lookup objects can map to a specific
value.
author: Michael Rimov since: Expresso 5.1 |
getKeyValue | public String getKeyValue(String mappedValue)(Code) | | Given a 'friendly name' get the key value for this object. Example, mappedValue
= "Admin", then getKeyValue("Admin") will return "3"
Parameters: mappedValue - the value to convert to a key field. It will return nullif the mapped value does not exist. java.lang.String or null. |
getMappedDescription | public String getMappedDescription()(Code) | | It returns if the field description for the mapped value as specified by the
key value parameter.
Parameters: keyValue - the key value to map String the mapped description |
getMappedValue | public String getMappedValue(String keyValue)(Code) | | Given a key value, return the mapped value. So for example:
getMappedValue("3") will return "Admin"
Parameters: keyValue - the key value to map the mapped value. It will return null if the key does notexist |
|
|