/** * 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(); }