示例#1
0
 /** get the {@link XMLColumn} by the given name. */
 public XMLColumn get(String name) {
   initInnerList();
   for (XMLColumn one : getList()) {
     if (one.getName().equals(name)) {
       return one;
     }
   }
   return null;
 }
示例#2
0
  /**
   * @param node
   * @param xmlTable
   */
  public XMLColumns(Node currentNode, XMLTable xmlTable) {
    this.superTable = xmlTable;

    XMLColumn column = null;
    List<Node> nodeList = getNodes(O_COLUMN, currentNode);
    if (ListUtil.isNotEmpty(nodeList)) {
      for (Node node : nodeList) {
        column = new XMLColumn(node, this);
        add(column);
        IdCollector.put(column.getId(), column);
      }
      log.debug(INITIALLIZED_NAME, "XMLColumns");
    }
  }