|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Date org.openmrs.util.AttributableDate
public class AttributableDate
This class is a stand in for using "java.util.Date" as a PersonAttribute format. This will allow the end user to store a date as YYYY-MM-DD instead of storing it as a string in the date format of whatever user created the string
Date
,
PersonAttribute
,
Attributable
,
Serialized FormConstructor Summary | |
---|---|
AttributableDate()
Default empty constructor |
|
AttributableDate(long time)
Convenience constructor allowing creation of an AttributableDate with the given time |
Method Summary | |
---|---|
java.util.List<AttributableDate> |
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<AttributableDate> |
getPossibleValues()
Find all possible values of this object. |
AttributableDate |
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 |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributableDate()
Date.Date()
public AttributableDate(long time)
time
- Date.Date(long)
Method Detail |
---|
public java.util.List<AttributableDate> findPossibleValues(java.lang.String searchText)
Attributable
findPossibleValues
in interface Attributable<AttributableDate>
searchText
- String to search on
Attributable.findPossibleValues(java.lang.String)
public java.lang.String getDisplayString()
Attributable
getDisplayString
in interface Attributable<AttributableDate>
Attributable.getDisplayString()
public java.util.List<AttributableDate> getPossibleValues()
Attributable
getPossibleValues
in interface Attributable<AttributableDate>
Attributable.getPossibleValues()
public AttributableDate hydrate(java.lang.String s)
Attributable
hydrate
in interface Attributable<AttributableDate>
s
- String to deserialize
Attributable.hydrate(java.lang.String)
public java.lang.String serialize()
Attributable
serialize
in interface Attributable<AttributableDate>
Attributable.serialize()
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |