Examples of ShortDescriptor


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

  public ShortBinding() {
    super("short");
  }

  protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
    ShortDescriptor shortDescriptor = new ShortDescriptor();
    Short shortValue;
    try {
      shortValue = new Short(value);
    } catch (NumberFormatException e) {
      parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to a short", element), element);
      return null;
    }
    shortDescriptor.setValue(shortValue);
    return shortDescriptor;
  }
View Full Code Here

Examples of org.jbpm.wire.descriptor.ShortDescriptor

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

  protected AbstractDescriptor createDescriptor(String value) {
    ShortDescriptor shortDescriptor = new ShortDescriptor();
    Short shortValue;
    try {
      shortValue = new Short(value);
    } catch (NumberFormatException e) {
      throw new NumberFormatException("'"+value+"' cannot be parsed to a short");
    }
    shortDescriptor.setValue(shortValue);
    return shortDescriptor;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.