Row(Element rowElement) { assert rowElement.isNamed("tr"); this.rowElement = rowElement; }
public Table(Element tableElement) { assert tableElement.isNamed("table"); this.tableElement = tableElement; }
public Table(Element tableElement) { assert tableElement.isNamed("table"); this.tableElement = tableElement; }
Row(Element rowElement) { assert rowElement.isNamed("tr"); this.rowElement = rowElement; }
public boolean isItem() { return getElement().isNamed("li"); }
private boolean isTableElement(CommandCall commandCall) { return commandCall.getElement().isNamed("table"); }
public List<ListEntry> getListEntries() { List<ListEntry> listEntries = new ArrayList<ListEntry>(); for (int i = 0; i < listCommandCall.getElement().getChildElements().length; i++) { Element listElement = listCommandCall.getElement().getChildElements()[i]; if (listElement.isNamed("li") || listElement.isNamed("ul") || listElement.isNamed("ol")) { listEntries.add(new ListEntry(listElement)); } } return listEntries; }
public List<ListEntry> getListEntries() { List<ListEntry> listEntries = new ArrayList<ListEntry>(); for (int i = 0; i < listCommandCall.getElement().getChildElements().length; i++) { Element listElement = listCommandCall.getElement().getChildElements()[i]; if (listElement.isNamed("li") || listElement.isNamed("ul") || listElement.isNamed("ol")) { listEntries.add(new ListEntry(listElement)); } } return listEntries; }
public boolean isHeaderRow() { for (Element cell : getCells()) { if (cell.isNamed("td")) { return false; } } return getCells().length > 0; }
public boolean isHeaderRow() { for (Element cell : getCells()) { if (cell.isNamed("td")) { return false; } } return getCells().length > 0; }
private String getExampleName(CommandCall node) { String exampleName = node.getExpression(); // use the contents of the example if there is no name. if ("".equals(exampleName) && node.getElement().isNamed("td")) { exampleName = node.getElement().getText(); } return exampleName; }
private String getExampleName(CommandCall node) { String exampleName = node.getExpression(); // use the contents of the example if there is no name. if ("".equals(exampleName) && node.getElement().isNamed("td")) { exampleName = node.getElement().getText(); } return exampleName; }
public TableSupport(CommandCall tableCommandCall) { assert tableCommandCall.getElement().isNamed("table"); this.tableCommandCall = tableCommandCall; this.table = new Table(tableCommandCall.getElement()); populateCommandCallByColumnMap(); }
public TableSupport(CommandCall tableCommandCall) { assert tableCommandCall.getElement().isNamed("table"); this.tableCommandCall = tableCommandCall; this.table = new Table(tableCommandCall.getElement()); populateCommandCallByColumnMap(); }