/** * Creates a new <code>custom-window-state</code> element * @return the new created instance of <code>CustomWindowStateType<PortletDescriptor></code> */ public CustomWindowStateType<PortletDescriptor> createCustomWindowState() { return new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model); }
/** * Creates a new <code>custom-window-state</code> element * @return the new created instance of <code>CustomWindowStateType<PortletDescriptor></code> */ public CustomWindowStateType<PortletDescriptor> createCustomWindowState() { return new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model); }
/** * Returns all <code>custom-window-state</code> elements * @return list of <code>custom-window-state</code> */ public List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState() { List<CustomWindowStateType<PortletDescriptor>> list = new ArrayList<CustomWindowStateType<PortletDescriptor>>(); List<Node> nodeList = model.get("custom-window-state"); for(Node node: nodeList) { CustomWindowStateType<PortletDescriptor> type = new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model, node); list.add(type); } return list; }
/** * Returns all <code>custom-window-state</code> elements * @return list of <code>custom-window-state</code> */ public List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState() { List<CustomWindowStateType<PortletDescriptor>> list = new ArrayList<CustomWindowStateType<PortletDescriptor>>(); List<Node> nodeList = model.get("custom-window-state"); for(Node node: nodeList) { CustomWindowStateType<PortletDescriptor> type = new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>custom-window-state</code> element will be created and returned. * Otherwise, the first existing <code>custom-window-state</code> element will be returned. * @return the instance defined for the element <code>custom-window-state</code> */ public CustomWindowStateType<PortletDescriptor> getOrCreateCustomWindowState() { List<Node> nodeList = model.get("custom-window-state"); if (nodeList != null && nodeList.size() > 0) { return new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model, nodeList.get(0)); } return createCustomWindowState(); }
/** * If not already created, a new <code>custom-window-state</code> element will be created and returned. * Otherwise, the first existing <code>custom-window-state</code> element will be returned. * @return the instance defined for the element <code>custom-window-state</code> */ public CustomWindowStateType<PortletDescriptor> getOrCreateCustomWindowState() { List<Node> nodeList = model.get("custom-window-state"); if (nodeList != null && nodeList.size() > 0) { return new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model, nodeList.get(0)); } return createCustomWindowState(); }