Package org.springframework.webflow.engine.model

Examples of org.springframework.webflow.engine.model.BindingModel


    }
    return bindings;
  }

  private BindingModel parseBinding(Element element) {
    return new BindingModel(element.getAttribute("property"), element.getAttribute("converter"), element
        .getAttribute("required"));
  }
View Full Code Here


  private BinderConfiguration createBinderConfiguration(BinderModel binderModel) {
    if (binderModel != null && binderModel.getBindings() != null) {
      BinderConfiguration binderConfiguration = new BinderConfiguration();
      List bindings = binderModel.getBindings();
      for (Iterator it = bindings.iterator(); it.hasNext();) {
        BindingModel bindingModel = (BindingModel) it.next();
        boolean required;
        if (StringUtils.hasText(bindingModel.getRequired())) {
          required = ((Boolean) fromStringTo(Boolean.class).execute(bindingModel.getRequired()))
              .booleanValue();
        } else {
          required = false;
        }
        Binding binding = new Binding(bindingModel.getProperty(), bindingModel.getConverter(), required);
        binderConfiguration.addBinding(binding);
      }
      return binderConfiguration;
    } else {
      return null;
View Full Code Here

    }
    return bindings;
  }

  private BindingModel parseBinding(Element element) {
    return new BindingModel(element.getAttribute("property"), element.getAttribute("converter"),
        element.getAttribute("required"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.model.BindingModel

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.