/** * Creates a new <code>portlet</code> element * @return the new created instance of <code>PortletType<PortletDescriptor></code> */ public PortletType<PortletDescriptor> createPortlet() { return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model); }
/** * If not already created, a new <code>supported-processing-event</code> element will be created and returned. * Otherwise, the first existing <code>supported-processing-event</code> element will be returned. * @return the instance defined for the element <code>supported-processing-event</code> */ public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedProcessingEvent() { List<Node> nodeList = childNode.get("supported-processing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-processing-event", childNode, nodeList.get(0)); } return createSupportedProcessingEvent(); }
/** * If not already created, a new <code>container-runtime-option</code> element will be created and returned. * Otherwise, the first existing <code>container-runtime-option</code> element will be returned. * @return the instance defined for the element <code>container-runtime-option</code> */ public ContainerRuntimeOptionType<PortletType<T>> getOrCreateContainerRuntimeOption() { List<Node> nodeList = childNode.get("container-runtime-option"); if (nodeList != null && nodeList.size() > 0) { return new ContainerRuntimeOptionTypeImpl<PortletType<T>>(this, "container-runtime-option", childNode, nodeList.get(0)); } return createContainerRuntimeOption(); }
/** * 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<PortletType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new InitParamTypeImpl<PortletType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }
/** * If not already created, a new <code>supported-publishing-event</code> element will be created and returned. * Otherwise, the first existing <code>supported-publishing-event</code> element will be returned. * @return the instance defined for the element <code>supported-publishing-event</code> */ public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedPublishingEvent() { List<Node> nodeList = childNode.get("supported-publishing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-publishing-event", childNode, nodeList.get(0)); } return createSupportedPublishingEvent(); }
/** * If not already created, a new <code>security-role-ref</code> element will be created and returned. * Otherwise, the first existing <code>security-role-ref</code> element will be returned. * @return the instance defined for the element <code>security-role-ref</code> */ public SecurityRoleRefType<PortletType<T>> getOrCreateSecurityRoleRef() { List<Node> nodeList = childNode.get("security-role-ref"); if (nodeList != null && nodeList.size() > 0) { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, nodeList.get(0)); } return createSecurityRoleRef(); }
/** * 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>supported-processing-event</code> element will be created and returned. * Otherwise, the first existing <code>supported-processing-event</code> element will be returned. * @return the instance defined for the element <code>supported-processing-event</code> */ public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedProcessingEvent() { List<Node> nodeList = childNode.get("supported-processing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-processing-event", childNode, nodeList.get(0)); } return createSupportedProcessingEvent(); }
/** * If not already created, a new <code>container-runtime-option</code> element will be created and returned. * Otherwise, the first existing <code>container-runtime-option</code> element will be returned. * @return the instance defined for the element <code>container-runtime-option</code> */ public ContainerRuntimeOptionType<PortletType<T>> getOrCreateContainerRuntimeOption() { List<Node> nodeList = childNode.get("container-runtime-option"); if (nodeList != null && nodeList.size() > 0) { return new ContainerRuntimeOptionTypeImpl<PortletType<T>>(this, "container-runtime-option", childNode, nodeList.get(0)); } return createContainerRuntimeOption(); }
/** * 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<PortletType<T>> getOrCreateInitParam() { List<Node> nodeList = childNode.get("init-param"); if (nodeList != null && nodeList.size() > 0) { return new InitParamTypeImpl<PortletType<T>>(this, "init-param", childNode, nodeList.get(0)); } return createInitParam(); }
/** * If not already created, a new <code>supported-publishing-event</code> element will be created and returned. * Otherwise, the first existing <code>supported-publishing-event</code> element will be returned. * @return the instance defined for the element <code>supported-publishing-event</code> */ public EventDefinitionReferenceType<PortletType<T>> getOrCreateSupportedPublishingEvent() { List<Node> nodeList = childNode.get("supported-publishing-event"); if (nodeList != null && nodeList.size() > 0) { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-publishing-event", childNode, nodeList.get(0)); } return createSupportedPublishingEvent(); }
/** * If not already created, a new <code>security-role-ref</code> element will be created and returned. * Otherwise, the first existing <code>security-role-ref</code> element will be returned. * @return the instance defined for the element <code>security-role-ref</code> */ public SecurityRoleRefType<PortletType<T>> getOrCreateSecurityRoleRef() { List<Node> nodeList = childNode.get("security-role-ref"); if (nodeList != null && nodeList.size() > 0) { return new SecurityRoleRefTypeImpl<PortletType<T>>(this, "security-role-ref", childNode, nodeList.get(0)); } return createSecurityRoleRef(); }
/** * 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(); }
/** * Creates a new <code>portlet</code> element * @return the new created instance of <code>PortletType<PortletDescriptor></code> */ public PortletType<PortletDescriptor> createPortlet() { return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model); }
/** * Returns all <code>portlet</code> elements * @return list of <code>portlet</code> */ public List<PortletType<PortletDescriptor>> getAllPortlet() { List<PortletType<PortletDescriptor>> list = new ArrayList<PortletType<PortletDescriptor>>(); List<Node> nodeList = model.get("portlet"); for(Node node: nodeList) { PortletType<PortletDescriptor> type = new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, node); list.add(type); } return list; }
/** * Returns all <code>portlet</code> elements * @return list of <code>portlet</code> */ public List<PortletType<PortletDescriptor>> getAllPortlet() { List<PortletType<PortletDescriptor>> list = new ArrayList<PortletType<PortletDescriptor>>(); List<Node> nodeList = model.get("portlet"); for(Node node: nodeList) { PortletType<PortletDescriptor> type = new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>portlet</code> element will be created and returned. * Otherwise, the first existing <code>portlet</code> element will be returned. * @return the instance defined for the element <code>portlet</code> */ public PortletType<PortletDescriptor> getOrCreatePortlet() { List<Node> nodeList = model.get("portlet"); if (nodeList != null && nodeList.size() > 0) { return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, nodeList.get(0)); } return createPortlet(); }
/** * If not already created, a new <code>portlet</code> element will be created and returned. * Otherwise, the first existing <code>portlet</code> element will be returned. * @return the instance defined for the element <code>portlet</code> */ public PortletType<PortletDescriptor> getOrCreatePortlet() { List<Node> nodeList = model.get("portlet"); if (nodeList != null && nodeList.size() > 0) { return new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, nodeList.get(0)); } return createPortlet(); }