Beispiel #1
0
 /**
  * <!ELEMENT and_selection (selection_metadata | and_selection | or_selection | not_selection)+>
  */
 @Override
 public void buildXPathExpression(
     final Element selectionElement,
     final StringBuilder expr,
     final boolean not_switch,
     final boolean use_switch) {
   // assert: use_switch always true
   if (!use_switch) {
     throw new RuntimeException("error in not_selection; use_switch was switched off");
   }
   final List elems = selectionElement.elements();
   final Element child = (Element) elems.get(0);
   final String name = child.getName();
   final ExpressionBuilder eb = QTIHelper.getExpressionBuilder(name);
   eb.buildXPathExpression(child, expr, !not_switch, true);
 }