/** * Creates a new <code>supports</code> element * @return the new created instance of <code>SupportsType<PortletType<T>></code> */ public SupportsType<PortletType<T>> createSupports() { return new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode); }
/** * Creates a new <code>supports</code> element * @return the new created instance of <code>SupportsType<PortletType<T>></code> */ public SupportsType<PortletType<T>> createSupports() { return new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode); }
/** * Returns all <code>supports</code> elements * @return list of <code>supports</code> */ public List<SupportsType<PortletType<T>>> getAllSupports() { List<SupportsType<PortletType<T>>> list = new ArrayList<SupportsType<PortletType<T>>>(); List<Node> nodeList = childNode.get("supports"); for(Node node: nodeList) { SupportsType<PortletType<T>> type = new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode, node); list.add(type); } return list; }
/** * Returns all <code>supports</code> elements * @return list of <code>supports</code> */ public List<SupportsType<PortletType<T>>> getAllSupports() { List<SupportsType<PortletType<T>>> list = new ArrayList<SupportsType<PortletType<T>>>(); List<Node> nodeList = childNode.get("supports"); for(Node node: nodeList) { SupportsType<PortletType<T>> type = new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode, node); list.add(type); } return list; }
/** * 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(); }