Package org.dom4j

Examples of org.dom4j.Element.valueOf()


        for (Iterator i = element.elementIterator("onMessage"); i.hasNext();) {
            Element onMessageElt = (Element) i.next();
            String partnerLink = onMessageElt.valueOf("@partnerLink");
            String portType = onMessageElt.valueOf("@portType");
            String operation = onMessageElt.valueOf("@operation");
            String variable = onMessageElt.valueOf("@variable");
            Element correlationsElt = onMessageElt.element("correlations");
            Set correlationList = getCorrelationRefList(correlationsElt);
            Element activityElement = getActivityElement(onMessageElt);
            ActivityDeployer ad = ActivityDeployerFactory.getActivityDeployer(activityElement.getName());
            Activity act = ad.deploy(activityElement, pick);
View Full Code Here


                throw new DeploymentException(e);
            }
        }
        for (Iterator i = element.elementIterator("onAlarm"); i.hasNext();) {
            Element onAlarmElt = (Element) i.next();
            String forDurationExpression = onAlarmElt.valueOf("@for");
            String untilDeadlineExpression = onAlarmElt.valueOf("@until");
            String timeExpression = null;
            int expressionType = 0;
            if (forDurationExpression != null) {
                timeExpression = forDurationExpression;
View Full Code Here

            }
        }
        for (Iterator i = element.elementIterator("onAlarm"); i.hasNext();) {
            Element onAlarmElt = (Element) i.next();
            String forDurationExpression = onAlarmElt.valueOf("@for");
            String untilDeadlineExpression = onAlarmElt.valueOf("@until");
            String timeExpression = null;
            int expressionType = 0;
            if (forDurationExpression != null) {
                timeExpression = forDurationExpression;
                expressionType = AlarmEvent.DURATION_EXPR;
View Full Code Here

        Element root = document.getRootElement();
        Iterator iter = root.elementIterator();
        while(iter.hasNext())
        {
            Element element = (Element) iter.next();
            String type = element.valueOf("@type");
            String name = element.valueOf("@name");
            String className = element.valueOf("@class");
            AlarmListener alarm = null;
           
            try
View Full Code Here

        Iterator iter = root.elementIterator();
        while(iter.hasNext())
        {
            Element element = (Element) iter.next();
            String type = element.valueOf("@type");
            String name = element.valueOf("@name");
            String className = element.valueOf("@class");
            AlarmListener alarm = null;
           
            try
            {
View Full Code Here

        while(iter.hasNext())
        {
            Element element = (Element) iter.next();
            String type = element.valueOf("@type");
            String name = element.valueOf("@name");
            String className = element.valueOf("@class");
            AlarmListener alarm = null;
           
            try
            {
                Class cl = Class.forName(className);
View Full Code Here

        Map addedProperty = new HashMap();
        try {
          Iterator properties = rootElement.elementIterator("property");
          while (properties.hasNext()) {
            Element e = (Element) properties.next();
            String name = e.valueOf("@name");
            if (addedProperty.containsKey(name) == false) {
              Property prop = ProcessFactory.addProperty(tp, name, e.valueOf("@type"));
                    addedProperty.put(name, prop);
            }
          }
View Full Code Here

          Iterator properties = rootElement.elementIterator("property");
          while (properties.hasNext()) {
            Element e = (Element) properties.next();
            String name = e.valueOf("@name");
            if (addedProperty.containsKey(name) == false) {
              Property prop = ProcessFactory.addProperty(tp, name, e.valueOf("@type"));
                    addedProperty.put(name, prop);
            }
          }
          Iterator propertyAlias = rootElement.elementIterator("propertyAlias");
            while (propertyAlias.hasNext()) {
View Full Code Here

            }
          }
          Iterator propertyAlias = rootElement.elementIterator("propertyAlias");
            while (propertyAlias.hasNext()) {
                Element e = (Element) propertyAlias.next();
                String propertyName = e.valueOf("@propertyName");

                XPath xpathSelector = DocumentHelper.createXPath("//*/defaultNS:property[@name=\"" + propertyName + "\"]");
                HashMap nsMap = new HashMap(1);
                nsMap.put("defaultNS", BPEL_NS);
                xpathSelector.setNamespaceURIs(nsMap);
View Full Code Here

                    prop = ProcessFactory.addProperty(tp,
                            propertyName, propNode.valueOf("@type"));
                    addedProperty.put(propertyName, prop);
                }
                if (prop != null) {
                    ProcessFactory.addPropertyAlias(prop, e.valueOf("@messageType"),
                            e.valueOf("@part"), e.valueOf("@query"));
                } else {
                    log.error("A propertyAlias is defined without property : " + propertyName);
                    throw new DeploymentException("a propertyAlias is defined without property : " + propertyName);
                }
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.