List of usage examples for java.beans PropertyEditorSupport setAsText
public void setAsText(String text) throws java.lang.IllegalArgumentException
From source file:test.automation.operator.AbstractReflectionFormHandler.java
public Object getValueAsObject(final Field field, final String textValue) { // convert the Object into a string representation using a property editor. if (propertyEditors != null) { final PropertyEditorSupport propertyEditor = propertyEditors.get(field.getType()); if (propertyEditor != null) { propertyEditor.setAsText(textValue); return (propertyEditor.getValue()); }/*from www.j a v a2s . co m*/ } return (textValue); }