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