Package org.dom4j

Examples of org.dom4j.Node.valueOf()


            methods += Integer.parseInt( node.valueOf( "functions" ) );
            tableCellHelper( node.valueOf( "ncss" ) );
            ncss += Integer.parseInt( node.valueOf( "ncss" ) );
            tableCellHelper( node.valueOf( "javadocs" ) );
            javadocs += Integer.parseInt( node.valueOf( "javadocs" ) );
            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );
View Full Code Here


            tableCellHelper( node.valueOf( "ncss" ) );
            ncss += Integer.parseInt( node.valueOf( "ncss" ) );
            tableCellHelper( node.valueOf( "javadocs" ) );
            javadocs += Integer.parseInt( node.valueOf( "javadocs" ) );
            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );
View Full Code Here

            ncss += Integer.parseInt( node.valueOf( "ncss" ) );
            tableCellHelper( node.valueOf( "javadocs" ) );
            javadocs += Integer.parseInt( node.valueOf( "javadocs" ) );
            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );

            getSink().tableRow_();
View Full Code Here

            tableCellHelper( node.valueOf( "javadocs" ) );
            javadocs += Integer.parseInt( node.valueOf( "javadocs" ) );
            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );

            getSink().tableRow_();
        }
View Full Code Here

            javadocs += Integer.parseInt( node.valueOf( "javadocs" ) );
            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );

            getSink().tableRow_();
        }
View Full Code Here

            tableCellHelper( node.valueOf( "javadoc_lines" ) );
            jdlines += Integer.parseInt( node.valueOf( "javadoc_lines" ) );
            tableCellHelper( node.valueOf( "single_comment_lines" ) );
            single += Integer.parseInt( node.valueOf( "single_comment_lines" ) );
            tableCellHelper( node.valueOf( "multi_comment_lines" ) );
            multi += Integer.parseInt( node.valueOf( "multi_comment_lines" ) );

            getSink().tableRow_();
        }

        doModuleAnalysisTotals( packages,
View Full Code Here

    assertEquals(2, rootElement.elements().size());
    Node value1 = rootElement.selectSingleNode("//input[@value = 'VALUE_1']");
    Node value2 = rootElement.selectSingleNode("//input[@value = 'VALUE_2']");
    assertEquals("TestEnum: VALUE_1", rootElement.selectSingleNode("//label[@for = '" + value1.valueOf("@id") + "']").getText());
    assertEquals("TestEnum: VALUE_2", rootElement.selectSingleNode("//label[@for = '" + value2.valueOf("@id") + "']").getText());
    assertEquals(value2, rootElement.selectSingleNode("//input[@checked]"));
  }

  public void testWithoutItemsEnumBindTargetWithExplicitLabelsAndValues() throws Exception {
    BeanWithEnum testBean = new BeanWithEnum();
View Full Code Here

    assertEquals(2, rootElement.elements().size());
    Node value1 = rootElement.selectSingleNode("//input[@value = 'Value: VALUE_1']");
    Node value2 = rootElement.selectSingleNode("//input[@value = 'Value: VALUE_2']");
    assertEquals("Label: VALUE_1", rootElement.selectSingleNode("//label[@for = '" + value1.valueOf("@id") + "']").getText());
    assertEquals("Label: VALUE_2", rootElement.selectSingleNode("//label[@for = '" + value2.valueOf("@id") + "']").getText());
    assertEquals(value2, rootElement.selectSingleNode("//input[@checked]"));
  }

  public void testWithNullValue() throws Exception {
    try {
View Full Code Here

        Resource[] entityTypes = ctx.getResources("classpath:/org/jasig/portal/io/resources/**/*.entity-type");
        for (Resource et : entityTypes) {

            // Parse the Element and retrieve the associated Task...
            final Node n = sax.read(et.getInputStream()).getRootElement();
            final String importScript = n.valueOf("@script");
            final Task k = importTasks.get(importScript);
           
            // Figure out what the type/description should be...
            final Class<?> type = Class.forName(n.valueOf("name"));
            final String desc = n.valueOf("desc-name");
View Full Code Here

            final Node n = sax.read(et.getInputStream()).getRootElement();
            final String importScript = n.valueOf("@script");
            final Task k = importTasks.get(importScript);
           
            // Figure out what the type/description should be...
            final Class<?> type = Class.forName(n.valueOf("name"));
            final String desc = n.valueOf("desc-name");

            if (k == null) {
                fail("There is no importTask defined for this entity:"
                        + "\n\tscriptLocation=" + importScript
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.