/** * Creates a new <code>container-runtime-option</code> element * @return the new created instance of <code>ContainerRuntimeOptionType<PortletType<T>></code> */ public ContainerRuntimeOptionType<PortletType<T>> createContainerRuntimeOption() { return new ContainerRuntimeOptionTypeImpl<PortletType<T>>(this, "container-runtime-option", childNode); }
/** * 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); }
/** * 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>supported-processing-event</code> element * @return the new created instance of <code>EventDefinitionReferenceType<PortletType<T>></code> */ public EventDefinitionReferenceType<PortletType<T>> createSupportedProcessingEvent() { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-processing-event", childNode); }
/** * 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>listener</code> element * @return the new created instance of <code>ListenerType<PortletDescriptor></code> */ public ListenerType<PortletDescriptor> createListener() { return new ListenerTypeImpl<PortletDescriptor>(this, "listener", model); }
/** * Creates a new <code>public-render-parameter</code> element * @return the new created instance of <code>PublicRenderParameterType<PortletDescriptor></code> */ public PublicRenderParameterType<PortletDescriptor> createPublicRenderParameter() { return new PublicRenderParameterTypeImpl<PortletDescriptor>(this, "public-render-parameter", model); }
/** * Creates a new <code>user-attribute</code> element * @return the new created instance of <code>UserAttributeType<PortletDescriptor></code> */ public UserAttributeType<PortletDescriptor> createUserAttribute() { return new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model); }
/** * Creates a new <code>supports</code> element * @return the new created instance of <code>SupportsType<PortletType<T>></code> */ public SupportsType<PortletType<T>> createSupports() { return new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode); }
/** * Creates a new <code>init-param</code> element * @return the new created instance of <code>InitParamType<PortletType<T>></code> */ public InitParamType<PortletType<T>> createInitParam() { return new InitParamTypeImpl<PortletType<T>>(this, "init-param", childNode); }
public PortletDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Creates a new <code>security-constraint</code> element * @return the new created instance of <code>SecurityConstraintType<PortletDescriptor></code> */ public SecurityConstraintType<PortletDescriptor> createSecurityConstraint() { return new SecurityConstraintTypeImpl<PortletDescriptor>(this, "security-constraint", model); }
/** * Creates a new <code>event-definition</code> element * @return the new created instance of <code>EventDefinitionType<PortletDescriptor></code> */ public EventDefinitionType<PortletDescriptor> createEventDefinition() { return new EventDefinitionTypeImpl<PortletDescriptor>(this, "event-definition", model); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>PortletDescriptor</code> */ public PortletDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"); addNamespace("xmlns", "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"); return this; }
/** * 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); }
/** * Creates a new <code>container-runtime-option</code> element * @return the new created instance of <code>ContainerRuntimeOptionType<PortletDescriptor></code> */ public ContainerRuntimeOptionType<PortletDescriptor> createContainerRuntimeOption() { return new ContainerRuntimeOptionTypeImpl<PortletDescriptor>(this, "container-runtime-option", model); }
/** * Creates a new <code>supported-processing-event</code> element * @return the new created instance of <code>EventDefinitionReferenceType<PortletType<T>></code> */ public EventDefinitionReferenceType<PortletType<T>> createSupportedProcessingEvent() { return new EventDefinitionReferenceTypeImpl<PortletType<T>>(this, "supported-processing-event", childNode); }
/** * 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>listener</code> element * @return the new created instance of <code>ListenerType<PortletDescriptor></code> */ public ListenerType<PortletDescriptor> createListener() { return new ListenerTypeImpl<PortletDescriptor>(this, "listener", model); }
/** * Creates a new <code>container-runtime-option</code> element * @return the new created instance of <code>ContainerRuntimeOptionType<PortletDescriptor></code> */ public ContainerRuntimeOptionType<PortletDescriptor> createContainerRuntimeOption() { return new ContainerRuntimeOptionTypeImpl<PortletDescriptor>(this, "container-runtime-option", model); }