Package org.jbpm.wire.descriptor

Examples of org.jbpm.wire.descriptor.DoubleDescriptor


*
*/
public class DoubleBinding extends BasicTypeBinding {

  protected AbstractDescriptor createDescriptor(String value) {
    DoubleDescriptor doubleDescriptor = new DoubleDescriptor();
    Double doubleValue;
    try {
      doubleValue = new Double(value);
    } catch (NumberFormatException e) {
      throw new NumberFormatException("'"+value+"' cannot be parsed to a double");
    }
    doubleDescriptor.setValue(doubleValue);
    return doubleDescriptor;
  }
View Full Code Here

TOP

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

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.