public class StringEnumPropertyHandler extends Object implements PropertyHandler
| Constructor and Description |
|---|
StringEnumPropertyHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Class<?> parameter,
Object value)
Do the work required to store
value into something of type parameter. |
boolean |
match(Class<?> parameter,
Object value)
Test whether this
PropertyHandler wants to handle setting value into something of type
parameter. |
public boolean match(Class<?> parameter, Object value)
PropertyHandlerPropertyHandler wants to handle setting value into something of type
parameter.match in interface PropertyHandlerparameter - The type of the target parameter.value - The value to be set.public Object apply(Class<?> parameter, Object value)
PropertyHandlervalue into something of type parameter. This method is
called only if this handler responded true after a call to PropertyHandler.match(Class, Object).apply in interface PropertyHandlerparameter - The type of the target parameter.value - The value to be set.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.