/** * If not already created, a new <code>container-runtime-option</code> element will be created and returned. * Otherwise, the first existing <code>container-runtime-option</code> element will be returned. * @return the instance defined for the element <code>container-runtime-option</code> */ public ContainerRuntimeOptionType<PortletType<T>> getOrCreateContainerRuntimeOption() { List<Node> nodeList = childNode.get("container-runtime-option"); if (nodeList != null && nodeList.size() > 0) { return new ContainerRuntimeOptionTypeImpl<PortletType<T>>(this, "container-runtime-option", childNode, nodeList.get(0)); } return createContainerRuntimeOption(); }
/** * If not already created, a new <code>container-runtime-option</code> element will be created and returned. * Otherwise, the first existing <code>container-runtime-option</code> element will be returned. * @return the instance defined for the element <code>container-runtime-option</code> */ public ContainerRuntimeOptionType<PortletType<T>> getOrCreateContainerRuntimeOption() { List<Node> nodeList = childNode.get("container-runtime-option"); if (nodeList != null && nodeList.size() > 0) { return new ContainerRuntimeOptionTypeImpl<PortletType<T>>(this, "container-runtime-option", childNode, nodeList.get(0)); } return createContainerRuntimeOption(); }