Package org.codehaus.staxmate.in

Examples of org.codehaus.staxmate.in.SMEvent


         * iteration in general, as we can still do sub-scoping for
         * specific elements (tables etc)
         */
        SMInputCursor bodyIt = parentIt.descendantMixedCursor();
        StringBuffer text = null; // for collected 'loose' text
        SMEvent evt;

        while ((evt = bodyIt.getNext()) != null) {
            // Let's weed out end elements right away...
            if (evt == SMEvent.END_ELEMENT) {
                continue;
View Full Code Here


        /* List item contents are more varied; text, inline markup; maybe
         * even sublists.
         */
        SMInputCursor itemIt = it.childMixedCursor();
        SMEvent evt;

        while ((evt = itemIt.getNext()) != null) {
            if (evt == SMEvent.START_ELEMENT) {
                String tag = itemIt.getLocalName().toLowerCase();
                // only care about sub-lists:
View Full Code Here

    {
        /* Cells can have varied content, though... generally we only care
         * about text and inline markup, though.
         */
        SMInputCursor cellIt = it.childMixedCursor();
        SMEvent evt;
        while ((evt = cellIt.getNext()) != null) {
            if (evt == SMEvent.START_ELEMENT) {
                String tag = cellIt.getLocalName().toLowerCase();
                // No sub-tables or lists allowed... just inline markup
                String str = checkInlineMarkup(cellIt, tag);
View Full Code Here

  }

  @Override
  public void stream(SMHierarchicCursor rootCursor) throws XMLStreamException {
    SMInputCursor testSuite = rootCursor.constructDescendantCursor(new ElementFilter("testsuite"));
    SMEvent testSuiteEvent;
    for (testSuiteEvent = testSuite.getNext(); testSuiteEvent != null; testSuiteEvent = testSuite.getNext()) {
      if (testSuiteEvent.compareTo(SMEvent.START_ELEMENT) == 0) {
        String testSuiteClassName = testSuite.getAttrValue("name");
        if (StringUtils.contains(testSuiteClassName, "$")) {
          // test suites for inner classes are ignored
          return;
        }
        SMInputCursor testCase = testSuite.childCursor(new ElementFilter("testcase"));
        SMEvent event;
        for (event = testCase.getNext(); event != null; event = testCase.getNext()) {
          if (event.compareTo(SMEvent.START_ELEMENT) == 0) {
            String testClassName = getClassname(testCase, testSuiteClassName);
            UnitTestClassReport classReport = index.index(testClassName);
            parseTestCase(testCase, classReport);
          }
        }
View Full Code Here

TOP

Related Classes of org.codehaus.staxmate.in.SMEvent

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.