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