Package org.jbpm.pvm.internal.wire.descriptor

Examples of org.jbpm.pvm.internal.wire.descriptor.FloatDescriptor


  public FloatBinding() {
    super("float");
  }

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

TOP

Related Classes of org.jbpm.pvm.internal.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.