Package org.jbpm.wire.descriptor

Examples of org.jbpm.wire.descriptor.FloatDescriptor


* @see WireParser
*/
public class FloatBinding extends BasicTypeBinding {

  protected AbstractDescriptor createDescriptor(String value) {
    FloatDescriptor floatDescriptor =  new FloatDescriptor();
    Float floatValue;
    try {
      floatValue = new Float(value);
    } catch (NumberFormatException e) {
      throw new NumberFormatException("'"+value+"' cannot be parsed to a float");
    }
    floatDescriptor.setValue(floatValue);
    return floatDescriptor;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.wire.descriptor.FloatDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.