/** * If not already created, a new <code>public-render-parameter</code> element will be created and returned. * Otherwise, the first existing <code>public-render-parameter</code> element will be returned. * @return the instance defined for the element <code>public-render-parameter</code> */ public PublicRenderParameterType<PortletDescriptor> getOrCreatePublicRenderParameter() { List<Node> nodeList = model.get("public-render-parameter"); if (nodeList != null && nodeList.size() > 0) { return new PublicRenderParameterTypeImpl<PortletDescriptor>(this, "public-render-parameter", model, nodeList.get(0)); } return createPublicRenderParameter(); }
/** * If not already created, a new <code>public-render-parameter</code> element will be created and returned. * Otherwise, the first existing <code>public-render-parameter</code> element will be returned. * @return the instance defined for the element <code>public-render-parameter</code> */ public PublicRenderParameterType<PortletDescriptor> getOrCreatePublicRenderParameter() { List<Node> nodeList = model.get("public-render-parameter"); if (nodeList != null && nodeList.size() > 0) { return new PublicRenderParameterTypeImpl<PortletDescriptor>(this, "public-render-parameter", model, nodeList.get(0)); } return createPublicRenderParameter(); }