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