Package org.dom4j

Examples of org.dom4j.Element.valueOf()


                            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


                            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

    private void deployVariables(Element element, AgilaProcess tp) {
        if (element != null) {
            for (Iterator it = element.elementIterator("variable"); it.hasNext();) {
                log.debug("<variable>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String messageType = variable.valueOf("@messageType");
                String type = variable.valueOf("@type");
                String elmt = variable.valueOf("@element");
                log.debug("name = " + name);
                log.debug("messageType = " + messageType);
View Full Code Here

        if (element != null) {
            for (Iterator it = element.elementIterator("variable"); it.hasNext();) {
                log.debug("<variable>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String messageType = variable.valueOf("@messageType");
                String type = variable.valueOf("@type");
                String elmt = variable.valueOf("@element");
                log.debug("name = " + name);
                log.debug("messageType = " + messageType);
                log.debug("type = " + type);
View Full Code Here

            for (Iterator it = element.elementIterator("variable"); it.hasNext();) {
                log.debug("<variable>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String messageType = variable.valueOf("@messageType");
                String type = variable.valueOf("@type");
                String elmt = variable.valueOf("@element");
                log.debug("name = " + name);
                log.debug("messageType = " + messageType);
                log.debug("type = " + type);
                log.debug("element = " + elmt);
View Full Code Here

                log.debug("<variable>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String messageType = variable.valueOf("@messageType");
                String type = variable.valueOf("@type");
                String elmt = variable.valueOf("@element");
                log.debug("name = " + name);
                log.debug("messageType = " + messageType);
                log.debug("type = " + type);
                log.debug("element = " + elmt);
                log.debug("</variable>");
View Full Code Here

    private void deployCorrelationSets(Element element, AgilaProcess tp) throws DeploymentException {
        if (element != null) {
            for (Iterator it = element.elementIterator("correlationSet"); it.hasNext();) {
                log.debug("<correlationSet>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String properties = variable.valueOf("@properties");
                log.debug("name = " + name);
                log.debug("messageType = " + properties);
                log.debug("</correlationSet>");
                try {
View Full Code Here

        if (element != null) {
            for (Iterator it = element.elementIterator("correlationSet"); it.hasNext();) {
                log.debug("<correlationSet>");
                Element variable = (Element) it.next();
                String name = variable.valueOf("@name");
                String properties = variable.valueOf("@properties");
                log.debug("name = " + name);
                log.debug("messageType = " + properties);
                log.debug("</correlationSet>");
                try {
                    ProcessFactory.addCorrelation(tp, name, truncNamespace(properties));
View Full Code Here

    public void testExample1() throws Exception {
        Document document = runScript( "src/test/org/apache/commons/jelly/jsl/example.jelly" );
        Element small = (Element) document.selectSingleNode("/html/body/small");
       
        assertTrue( "<small> starts with 'James Elson'", small.getText().startsWith("James Elson") );
        assertEquals( "I am a title!", small.valueOf( "h2" ).trim() );
        assertEquals( "Twas a dark, rainy night...", small.valueOf( "small" ).trim() );
        assertEquals( "dfjsdfjsdf", small.valueOf( "p" ).trim() );
    }
   
       
View Full Code Here

        Document document = runScript( "src/test/org/apache/commons/jelly/jsl/example.jelly" );
        Element small = (Element) document.selectSingleNode("/html/body/small");
       
        assertTrue( "<small> starts with 'James Elson'", small.getText().startsWith("James Elson") );
        assertEquals( "I am a title!", small.valueOf( "h2" ).trim() );
        assertEquals( "Twas a dark, rainy night...", small.valueOf( "small" ).trim() );
        assertEquals( "dfjsdfjsdf", small.valueOf( "p" ).trim() );
    }
   
       
    protected Document runScript(String fileName) throws Exception {
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.