Exemplo n.º 1
0
  @Override
  protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
    super.check(sspHandler, testSolutionHandler);
    ElementChecker ec;
    if (!notIdentifiedTableWithoutDataTableMarkup.isEmpty()) {
      ec =
          new ElementPresenceChecker(
              // nmi when element is found
              TestSolution.NEED_MORE_INFO,
              // na when element is not found
              TestSolution.NOT_APPLICABLE,
              // message associated when element is found
              CHECK_TABLE_IS_PRESENTATION_TABLE_MSG,
              // no message created when child element is not found
              null);
      ec.check(sspHandler, notIdentifiedTableWithoutDataTableMarkup, testSolutionHandler);
    }
    if (!presentationTableWithoutDataTableMarkup.isEmpty()) {
      ec =
          new ElementPresenceChecker(
              // passed when element is foundexit

              TestSolution.PASSED,
              // na when element is not found
              TestSolution.NOT_APPLICABLE,
              // message associated when element is found
              null,
              // no message created when child element is not found
              null);
      ec.check(sspHandler, presentationTableWithoutDataTableMarkup, testSolutionHandler);
    }
  }
Exemplo n.º 2
0
 @Override
 protected void select(SSPHandler sspHandler) {
   super.select(sspHandler);
   Iterator<Element> iter = getSelectionWithoutMarkerHandler().get().iterator();
   // The elements with a longdesc attribute are seen as informative.
   // They are added to the selection with marker
   while (iter.hasNext()) {
     Element el = iter.next();
     if (el.hasAttr(LONGDESC_ATTR)) {
       iter.remove();
       getSelectionWithMarkerHandler().add(el);
     }
   }
 }
Exemplo n.º 3
0
  @Override
  protected void select(SSPHandler sspHandler) {
    super.select(sspHandler);

    if (getSelectionWithoutMarkerHandler().isEmpty() && getSelectionWithMarkerHandler().isEmpty()) {
      return;
    }

    // extract not identified tables with data table markup
    extractTableWithDataTableMarkup(
        getSelectionWithoutMarkerHandler(), notIdentifiedTableWithoutDataTableMarkup);

    // extract presentation tables with data table markup
    extractTableWithDataTableMarkup(
        getSelectionWithMarkerHandler(), presentationTableWithoutDataTableMarkup);
  }