/** * Creates a new <code>filter</code> element * @return the new created instance of <code>FilterType<PortletDescriptor></code> */ public FilterType<PortletDescriptor> createFilter() { return new FilterTypeImpl<PortletDescriptor>(this, "filter", model); }
/** * If not already created, a new <code>init-param</code> element will be created and returned. * Otherwise, the first existing <code>init-param</code> element will be returned. * @return the instance defined for the element <code>init-param</code> */ public InitParamType<FilterType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new InitParamTypeImpl<FilterType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }
/** * If not already created, a new <code>init-param</code> element will be created and returned. * Otherwise, the first existing <code>init-param</code> element will be returned. * @return the instance defined for the element <code>init-param</code> */ public InitParamType<FilterType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new InitParamTypeImpl<FilterType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }
/** * Creates a new <code>filter</code> element * @return the new created instance of <code>FilterType<PortletDescriptor></code> */ public FilterType<PortletDescriptor> createFilter() { return new FilterTypeImpl<PortletDescriptor>(this, "filter", model); }
/** * Returns all <code>filter</code> elements * @return list of <code>filter</code> */ public List<FilterType<PortletDescriptor>> getAllFilter() { List<FilterType<PortletDescriptor>> list = new ArrayList<FilterType<PortletDescriptor>>(); List<Node> nodeList = model.get("filter"); for(Node node: nodeList) { FilterType<PortletDescriptor> type = new FilterTypeImpl<PortletDescriptor>(this, "filter", model, node); list.add(type); } return list; }
/** * Returns all <code>filter</code> elements * @return list of <code>filter</code> */ public List<FilterType<PortletDescriptor>> getAllFilter() { List<FilterType<PortletDescriptor>> list = new ArrayList<FilterType<PortletDescriptor>>(); List<Node> nodeList = model.get("filter"); for(Node node: nodeList) { FilterType<PortletDescriptor> type = new FilterTypeImpl<PortletDescriptor>(this, "filter", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>filter</code> element will be created and returned. * Otherwise, the first existing <code>filter</code> element will be returned. * @return the instance defined for the element <code>filter</code> */ public FilterType<PortletDescriptor> getOrCreateFilter() { List<Node> nodeList = model.get("filter"); if (nodeList != null && nodeList.size() > 0) { return new FilterTypeImpl<PortletDescriptor>(this, "filter", model, nodeList.get(0)); } return createFilter(); }
/** * If not already created, a new <code>filter</code> element will be created and returned. * Otherwise, the first existing <code>filter</code> element will be returned. * @return the instance defined for the element <code>filter</code> */ public FilterType<PortletDescriptor> getOrCreateFilter() { List<Node> nodeList = model.get("filter"); if (nodeList != null && nodeList.size() > 0) { return new FilterTypeImpl<PortletDescriptor>(this, "filter", model, nodeList.get(0)); } return createFilter(); }