Here you can find the source of getTableIDOfTableAlias(String tableAlias, NodeList referList1, NodeList referList2)
static String getTableIDOfTableAlias(String tableAlias,
NodeList referList1, NodeList referList2)
//package com.java2s; import org.w3c.dom.*; public class Main { static String getTableIDOfTableAlias(String tableAlias, NodeList referList1, NodeList referList2) { String tableID = tableAlias; org.w3c.dom.Element workElement; for (int j = 0; j < referList1.getLength(); j++) { workElement = (org.w3c.dom.Element) referList1.item(j); if (workElement.getAttribute("TableAlias").equals(tableAlias) || (workElement.getAttribute("ToTable").equals( tableAlias) && workElement.getAttribute( "TableAlias").equals(""))) { tableID = workElement.getAttribute("ToTable"); break; }/*from w w w . j a v a2s . co m*/ } if (referList2 != null) { for (int j = 0; j < referList2.getLength(); j++) { workElement = (org.w3c.dom.Element) referList2.item(j); if (workElement.getAttribute("TableAlias").equals( tableAlias) || (workElement.getAttribute("ToTable").equals( tableAlias) && workElement.getAttribute( "TableAlias").equals(""))) { tableID = workElement.getAttribute("ToTable"); break; } } } return tableID; } }