Package org.springframework.webflow.engine.model

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


      return parseTransitions(element);
    }
  }

  private AttributeModel parseAttribute(Element element) {
    AttributeModel attribute = new AttributeModel(element.getAttribute("name"), parseAttributeValue(element));
    attribute.setType(element.getAttribute("type"));
    return attribute;
  }
View Full Code Here


    assertEquals("flow", flow.getId());
    assertEquals("end", flow.getStartState().getId());
  }

  public void testCustomFlowAttribute() {
    AttributeModel attribute1 = new AttributeModel("foo", "bar");
    AttributeModel attribute2 = new AttributeModel("number", "1");
    attribute2.setType("integer");
    model.setAttributes(doubleList(attribute1, attribute2));

    model.setStates(singleList(new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertEquals("bar", flow.getAttributes().get("foo"));
View Full Code Here

    assertEquals("flow", flow.getId());
    assertEquals("end", flow.getStartState().getId());
  }

  public void testCustomFlowAttribute() {
    AttributeModel attribute1 = new AttributeModel("foo", "bar");
    AttributeModel attribute2 = new AttributeModel("number", "1");
    attribute2.setType("integer");
    model.setAttributes(asList(AttributeModel.class, attribute1, attribute2));

    model.setStates(asList(AbstractStateModel.class, new EndStateModel("end")));
    Flow flow = getFlow(model);
    assertEquals("bar", flow.getAttributes().get("foo"));
View Full Code Here

      return parseTransitions(element);
    }
  }

  private AttributeModel parseAttribute(Element element) {
    AttributeModel attribute = new AttributeModel(element.getAttribute("name"), parseAttributeValue(element));
    attribute.setType(element.getAttribute("type"));
    return attribute;
  }
View Full Code Here

TOP

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

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.