/** * If not already created, a new <code>index</code> element will be created and returned. * Otherwise, the first existing <code>index</code> element will be returned. * @return the instance defined for the element <code>index</code> */ public Index<TableGenerator<T>> getOrCreateIndex() { List<Node> nodeList = childNode.get("index"); if (nodeList != null && nodeList.size() > 0) { return new IndexImpl<TableGenerator<T>>(this, "index", childNode, nodeList.get(0)); } return createIndex(); }
/** * If not already created, a new <code>index</code> element will be created and returned. * Otherwise, the first existing <code>index</code> element will be returned. * @return the instance defined for the element <code>index</code> */ public Index<TableGenerator<T>> getOrCreateIndex() { List<Node> nodeList = childNode.get("index"); if (nodeList != null && nodeList.size() > 0) { return new IndexImpl<TableGenerator<T>>(this, "index", childNode, nodeList.get(0)); } return createIndex(); }