Package org.apache.slide.projector.descriptor

Examples of org.apache.slide.projector.descriptor.StateDescriptor


        };
    }

    public ResultDescriptor getResultDescriptor() {
        return new ResultDescriptor(new StateDescriptor[] {
           new StateDescriptor(LOGIN_OK, new DefaultMessage("login/state/ok")),
           new StateDescriptor(LOGIN_FAILED, new DefaultMessage("login/state/failed"))
        });
    }
View Full Code Here


      List stateElements = XPath.newInstance("/process/description/output/state").selectNodes(rootElement);
      List states = new ArrayList();
      for ( Iterator i = stateElements.iterator(); i.hasNext(); ) {
        Element stateElement = (Element)i.next();
        String description = stateElement.getAttributeValue("description");
        states.add(new StateDescriptor(stateElement.getTextTrim(), new DefaultMessage(description)));
      }
      resultDescriptor = new ResultDescriptor((StateDescriptor [])states.toArray(new StateDescriptor[states.size()]), (ResultEntryDescriptor[])resultEntryDescriptors.toArray(new ResultEntryDescriptor[resultEntryDescriptors.size()]));
      List providedEnvironmentElements = XPath.newInstance("/process/description/output/environment").selectNodes(rootElement);
      List providedEnvironment = new ArrayList();
      for ( Iterator i = providedEnvironmentElements.iterator(); i.hasNext(); ) {
View Full Code Here

            } else if (path.matches("route")) {
                String value = attributes.getValue("value");
                String description = attributes.getValue("description");
                String state = attributes.getValue("state");
                valueDesriptor.addAllowedValue(value);
                states.add(new StateDescriptor(value, new DefaultMessage(description)));
                routes.put(value, state);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.descriptor.StateDescriptor

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.