Examples of collectDescendantText()


Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

        if (elementName.equals("skipped")) {
          status = "skipped";
        } else if (elementName.equals("failure")) {
          status = "failure";
          msg = childCursor.getAttrValue("message");
          stack = childCursor.collectDescendantText();
        } else if (elementName.equals("error")) {
          status = "error";
          msg = childCursor.getAttrValue("message");
          stack = childCursor.collectDescendantText();
        }
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

          msg = childCursor.getAttrValue("message");
          stack = childCursor.collectDescendantText();
        } else if (elementName.equals("error")) {
          status = "error";
          msg = childCursor.getAttrValue("message");
          stack = childCursor.collectDescendantText();
        }
      }
    }

    return new TestCase(name, time.intValue(), status, stack, msg);
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

                        addSingleLine(out, str);
                        continue;
                    }
                }
                // Otherwise, let's just collect and output text:
                addSingleLine(out, itemIt.collectDescendantText(true));
            } else {
                addSingleLine(out, itemIt.getText());
            }
        }
        out.write('\n');
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

                if (str != null) {
                    addSingleLine(out, str);
                    continue;
                }
                // Otherwise, let's just collect and output text:
                addSingleLine(out, cellIt.collectDescendantText(true));
            } else { // just plain text
                addSingleLine(out, cellIt.getText());
            }
        }
    }
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

        SMInputCursor headIt = parentIt.childElementCursor();
        while (headIt.getNext() != null) {
            if (headIt.getLocalName().toLowerCase().equals("title")) {
                // Could capitalize it too...
                out.write("== ");
                String str = headIt.collectDescendantText(true);
                // Let's remove linefeeds if there was any
                addSingleLine(out, str);
                out.write(" ==\n\n");
                // Ok, that's it, we don't care about other stuff
                break;
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

    DefaultDebtCharacteristic characteristic = new DefaultDebtCharacteristic();
    SMInputCursor cursor = chcCursor.childElementCursor();
    while (cursor.getNext() != null) {
      String node = cursor.getLocalName();
      if (StringUtils.equals(node, CHARACTERISTIC_KEY)) {
        characteristic.setKey(convertKey(cursor.collectDescendantText().trim()));
        if (parent == null) {
          characteristic.setOrder(debtModel.rootCharacteristics().size() + 1);
          debtModel.addRootCharacteristic(characteristic);
        } else {
          debtModel.addSubCharacteristic(characteristic, parent);
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

        } else {
          debtModel.addSubCharacteristic(characteristic, parent);
        }

      } else if (StringUtils.equals(node, CHARACTERISTIC_NAME)) {
        characteristic.setName(cursor.collectDescendantText().trim());

        // <chc> can contain characteristics or requirements
      } else if (StringUtils.equals(node, CHARACTERISTIC)) {
        process(debtModel, characteristic.key(), cursor);
      }
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

    String currentCharacteristicKey = null;
    SMInputCursor cursor = chcCursor.childElementCursor();
    while (cursor.getNext() != null) {
      String node = cursor.getLocalName();
      if (StringUtils.equals(node, CHARACTERISTIC_KEY)) {
        currentCharacteristicKey = cursor.collectDescendantText().trim();
      } else if (StringUtils.equals(node, CHARACTERISTIC)) {
        process(ruleDebts, parentKey, currentCharacteristicKey, validationMessages, cursor);
      } else if (StringUtils.equals(node, REPOSITORY_KEY)) {
        RuleDebt ruleDebt = processRule(validationMessages, cursor);
        if (ruleDebt != null && parentKey != null) {
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

    int value = 0;
    String textValue = null;
    while (c.getNext() != null) {
      String node = c.getLocalName();
      if (StringUtils.equals(node, PROPERTY_KEY)) {
        key = c.collectDescendantText().trim();

      } else if (StringUtils.equals(node, PROPERTY_VALUE)) {
        String s = c.collectDescendantText().trim();
        try {
          Double valueDouble = NumberUtils.createDouble(s);
View Full Code Here

Examples of org.codehaus.staxmate.in.SMInputCursor.collectDescendantText()

      String node = c.getLocalName();
      if (StringUtils.equals(node, PROPERTY_KEY)) {
        key = c.collectDescendantText().trim();

      } else if (StringUtils.equals(node, PROPERTY_VALUE)) {
        String s = c.collectDescendantText().trim();
        try {
          Double valueDouble = NumberUtils.createDouble(s);
          value = valueDouble.intValue();
        } catch (NumberFormatException ex) {
          validationMessages.addErrorText(String.format("Cannot import value '%s' for field %s - Expected a numeric value instead", s, key));
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.