public class CalendarSlotHandler extends DateSlotHandler
SlotHandler
for Calendar
values.Constructor and Description |
---|
CalendarSlotHandler(ConfigurationManager pConfigurationManager)
Creates a new instance with the given
ConfigurationManager . |
Modifier and Type | Method and Description |
---|---|
boolean |
isHandling(java.lang.Class<?> pClass,
Slot property)
Returns, whether the slot handler can handle the given Java class.
|
java.lang.Object |
toObject(java.lang.Class<?> pClass,
java.lang.String pValue)
Converts a string into an object.
|
java.lang.String |
toString(java.lang.Object pValue)
Converts the given object into a string.
|
getQueryFunction
public CalendarSlotHandler(ConfigurationManager pConfigurationManager)
ConfigurationManager
.pConfigurationManager
- The ConfigurationManager
instancepublic boolean isHandling(java.lang.Class<?> pClass, Slot property)
SlotHandler
isHandling
in interface SlotHandler
isHandling
in class DateSlotHandler
pClass
- The Class
typeproperty
- The Slot
property which should be checkedtrue
if pClass can be handled by property and false
otherwisepublic java.lang.Object toObject(java.lang.Class<?> pClass, java.lang.String pValue)
SlotHandler
SlotHandler.isHandling(Class, Slot)
was invoked with the result objects
class and returned true
.toObject
in interface SlotHandler
toObject
in class DateSlotHandler
pClass
- The target classpValue
- The value to convert.Object
equivalent of the given string pValuepublic java.lang.String toString(java.lang.Object pValue)
SlotHandler
SlotHandler.isHandling(Class, Slot)
was invoked
with the objects class and returned true
.toString
in interface SlotHandler
toString
in class DateSlotHandler
pValue
- The Object
to convert