org.openmrs
Interface Attributable<E>

All Known Implementing Classes:
AttributableDate, Concept, ConceptComplex, ConceptDerived, ConceptNumeric, Location

public interface Attributable<E>

Classes marked with this interface are able to be special values for a PersonAttribute.


Method Summary
 java.util.List<E> findPossibleValues(java.lang.String searchText)
          Search for possible values of this object using the given search string
 java.lang.String getDisplayString()
          Gets a descriptive String used for display purposes This is meant as an alternative to using the toString() to display this object to a user
 java.util.List<E> getPossibleValues()
          Find all possible values of this object.
 E hydrate(java.lang.String s)
          Deserialize the given string into a full object
 java.lang.String serialize()
          Turn the current object into an identifying string that can be retrieved later
 

Method Detail

hydrate

E hydrate(java.lang.String s)
Deserialize the given string into a full object

Parameters:
s - String to deserialize
Returns:
hydrated object

serialize

java.lang.String serialize()
Turn the current object into an identifying string that can be retrieved later

Returns:
String representing this object (Usually an identifier or primary key)

getPossibleValues

java.util.List<E> getPossibleValues()
Find all possible values of this object. For example, if this object is a Location, the database is delved into and all Location objects should be returned

Returns:
List of objects that can be assigned

findPossibleValues

java.util.List<E> findPossibleValues(java.lang.String searchText)
Search for possible values of this object using the given search string

Parameters:
searchText - String to search on
Returns:
List of possible objects that can be assigned

getDisplayString

java.lang.String getDisplayString()
Gets a descriptive String used for display purposes This is meant as an alternative to using the toString() to display this object to a user

Returns:
String acceptable to display on a page

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change