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

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


  public IntBinding() {
    super("int");
  }

  protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
    IntegerDescriptor integerDescriptor =  new IntegerDescriptor();
    Integer integerValue;
    try {
      integerValue = new Integer(value);
    } catch (NumberFormatException e) {
      parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to an int", element), element);
      return null;
    }
    integerDescriptor.setValue(integerValue);
    return integerDescriptor;
  }
View Full Code Here


  }

  private void parseIntAttribute(Element element, String attributeName, ObjectDescriptor descriptor, String fieldName, Parse parse) {
    Integer intValue = XmlUtil.attributeInteger(element, attributeName, false, parse);
    if (intValue!=null) {
      descriptor.addInjection(fieldName, new IntegerDescriptor(intValue));
    }
  }
View Full Code Here

  }

  private void parseIntAttribute(Element element, String attributeName, ObjectDescriptor descriptor, String fieldName, Parse parse) {
    Integer intValue = XmlUtil.attributeInteger(element, attributeName, false, parse);
    if (intValue!=null) {
      descriptor.addInjection(fieldName, new IntegerDescriptor(intValue));
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.wire.descriptor.IntegerDescriptor

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.