/** * If not already created, a new <code>init-param</code> element will be created and returned. * Otherwise, the first existing <code>init-param</code> element will be returned. * @return the instance defined for the element <code>init-param</code> */ public ParamValueType<FilterType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new ParamValueTypeImpl<FilterType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }
/** * If not already created, a new <code>init-param</code> element will be created and returned. * Otherwise, the first existing <code>init-param</code> element will be returned. * @return the instance defined for the element <code>init-param</code> */ public ParamValueType<FilterType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new ParamValueTypeImpl<FilterType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }