Example usage for java.beans PropertyEditorSupport getValue

List of usage examples for java.beans PropertyEditorSupport getValue

Introduction

In this page you can find the example usage for java.beans PropertyEditorSupport getValue.

Prototype

public Object getValue() 

Source Link

Document

Gets the value of the property.

Usage

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());
        }/*  w ww  .  ja v  a2  s .co  m*/
    }

    return (textValue);
}