public interface SlotHandler
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQueryFunction(java.lang.Object value,
Property property)
Wraps the result of the
toString(Object) in a proper Query
Type. |
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.
|
boolean isHandling(java.lang.Class<?> pClass, Slot property)
pClass
- The Class
typeproperty
- The Slot
property which should be checkedtrue
if pClass can be handled by property and false
otherwisejava.lang.String toString(java.lang.Object pValue)
isHandling(Class, Slot)
was invoked
with the objects class and returned true
.pValue
- The Object
to convertjava.lang.Object toObject(java.lang.Class<?> pClass, java.lang.String pValue)
isHandling(Class, Slot)
was invoked with the result objects
class and returned true
.pClass
- The target classpValue
- The value to convert.Object
equivalent of the given string pValuejava.lang.String getQueryFunction(java.lang.Object value, Property property)
toString(Object)
in a proper Query
Type. This method may only be invoked, if isHandling(Class, Slot)
was invoked with the result objects class and returned true
.value
- The Object
to wrapproperty
- The Property
object