portlet-app_2_0.xsd
来自「portal越来越流行了」· XSD 代码 · 共 753 行 · 第 1/2 页
XSD
753 行
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:portlet="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0" xml:lang="en">
<annotation>
<documentation>
This is the XML Schema for the Portlet 2.0 deployment descriptor.
</documentation>
</annotation>
<annotation>
<documentation>
The following conventions apply to all J2EE
deployment descriptor elements unless indicated otherwise.
- In elements that specify a pathname to a file within the
same JAR file, relative filenames (i.e., those not
starting with "/") are considered relative to the root of
the JAR file's namespace. Absolute filenames (i.e., those
starting with "/") also specify names in the root of the
JAR file's namespace. In general, relative names are
preferred. The exception is .war files where absolute
names are preferred for consistency with the Servlet API.
</documentation>
</annotation>
<!-- *********************************************************** -->
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<element name="portlet-app" type="portlet:portlet-appType">
<annotation>
<documentation>
The portlet-app element is the root of the deployment descriptor
for a portlet application. This element has a required attribute version
to specify to which version of the schema the deployment descriptor
conforms. In order to be a valid JSR 286 portlet application the version
must have the value "2.0".
</documentation>
</annotation>
<unique name="portlet-name-uniqueness">
<annotation>
<documentation>
The portlet element contains the name of a portlet.
This name must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:portlet"/>
<field xpath="portlet:portlet-name"/>
</unique>
<unique name="custom-portlet-mode-uniqueness">
<annotation>
<documentation>
The custom-portlet-mode element contains the portlet-mode.
This portlet mode must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:custom-portlet-mode"/>
<field xpath="portlet:portlet-mode"/>
</unique>
<unique name="custom-window-state-uniqueness">
<annotation>
<documentation>
The custom-window-state element contains the window-state.
This window state must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:custom-window-state"/>
<field xpath="portlet:window-state"/>
</unique>
<unique name="user-attribute-name-uniqueness">
<annotation>
<documentation>
The user-attribute element contains the name the attribute.
This name must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:user-attribute"/>
<field xpath="portlet:name"/>
</unique>
<unique name="filter-name-uniqueness">
<annotation>
<documentation>
The filter element contains the name of a filter.
The name must be unique within the portlet application.
</documentation>
</annotation>
<selector xpath="portlet:filter"/>
<field xpath="portlet:filter-name"/>
</unique>
</element>
<complexType name="portlet-appType">
<sequence>
<element name="portlet" type="portlet:portletType" minOccurs="0" maxOccurs="unbounded">
<unique name="init-param-name-uniqueness">
<annotation>
<documentation>
The init-param element contains the name the attribute.
This name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:init-param"/>
<field xpath="portlet:name"/>
</unique>
<unique name="supports-mime-type-uniqueness">
<annotation>
<documentation>
The supports element contains the supported mime-type.
This mime type must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:supports"/>
<field xpath="mime-type"/>
</unique>
<unique name="preference-name-uniqueness">
<annotation>
<documentation>
The preference element contains the name the preference.
This name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:portlet-preferences/portlet:preference"/>
<field xpath="portlet:name"/>
</unique>
<unique name="security-role-ref-name-uniqueness">
<annotation>
<documentation>
The security-role-ref element contains the role-name.
This role name must be unique within the portlet.
</documentation>
</annotation>
<selector xpath="portlet:security-role-ref"/>
<field xpath="portlet:role-name"/>
</unique>
</element>
<element name="custom-portlet-mode" type="portlet:custom-portlet-modeType" minOccurs="0" maxOccurs="unbounded"/>
<element name="custom-window-state" type="portlet:custom-window-stateType" minOccurs="0" maxOccurs="unbounded"/>
<element name="user-attribute" type="portlet:user-attributeType" minOccurs="0" maxOccurs="unbounded"/>
<element name="security-constraint" type="portlet:security-constraintType" minOccurs="0" maxOccurs="unbounded"/>
<element name="resource-bundle" type="portlet:resource-bundleType" minOccurs="0"/>
<element name="filter" type="portlet:filterType" minOccurs="0" maxOccurs="unbounded"/>
<element name="filter-mapping" type="portlet:filter-mappingType" minOccurs="0" maxOccurs="unbounded"/>
<element name="default-namespace" type="xs:anyURI" minOccurs="0"/>
<element name="event-definition" type="portlet:event-definitionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="public-render-parameter" type="portlet:public-render-parameterType" minOccurs="0" maxOccurs="unbounded"/>
<element name="listener" type="portlet:listenerType" minOccurs="0" maxOccurs="unbounded"/>
<element name="container-runtime-option" type="portlet:container-runtime-optionType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="version" type="portlet:string" use="required"/>
<attribute name="id" type="portlet:string" use="optional"/>
</complexType>
<complexType name="cache-scopeType">
<annotation>
<documentation>
Caching scope, allowed values are "private" indicating that the content should not be shared
across users and "public" indicating that the content may be shared across users.
The default value if not present is "private".
Used in: portlet
</documentation>
</annotation>
<simpleContent>
<extension base="portlet:string"/>
</simpleContent>
</complexType>
<complexType name="custom-portlet-modeType">
<annotation>
<documentation>
A custom portlet mode that one or more portlets in
this portlet application supports.
If the portal does not need to provide some management functionality
for this portlet mode, the portal-managed element needs to be set
to "false", otherwise to "true". Default is "true".
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-mode" type="portlet:portlet-modeType"/>
<element name="portal-managed" type="portlet:portal-managedType" minOccurs="0"/>
</sequence>
<attribute name="id" type="portlet:string" use="optional"/>
</complexType>
<complexType name="custom-window-stateType">
<annotation>
<documentation>
A custom window state that one or more portlets in this
portlet application supports.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="window-state" type="portlet:window-stateType"/>
</sequence>
<attribute name="id" type="portlet:string" use="optional"/>
</complexType>
<complexType name="expiration-cacheType">
<annotation>
<documentation>
Expiration-time defines the time in seconds after which the portlet output expires.
-1 indicates that the output never expires.
Used in: portlet
</documentation>
</annotation>
<simpleContent>
<extension base="int"/>
</simpleContent>
</complexType>
<complexType name="init-paramType">
<annotation>
<documentation>
The init-param element contains a name/value pair as an
initialization param of the portlet
Used in:portlet
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="name" type="portlet:nameType"/>
<element name="value" type="portlet:valueType"/>
</sequence>
<attribute name="id" type="portlet:string" use="optional"/>
</complexType>
<complexType name="keywordsType">
<annotation>
<documentation>
Locale specific keywords associated with this portlet.
The kewords are separated by commas.
Used in: portlet-info
</documentation>
</annotation>
<simpleContent>
<extension base="portlet:string"/>
</simpleContent>
</complexType>
<complexType name="mime-typeType">
<annotation>
<documentation>
MIME type name, e.g. "text/html".
The MIME type may also contain the wildcard
character '*', like "text/*" or "*/*".
Used in: supports
</documentation>
</annotation>
<simpleContent>
<extension base="portlet:string"/>
</simpleContent>
</complexType>
<complexType name="nameType">
<annotation>
<documentation>
The name element contains the name of a parameter.
Used in: init-param, ...
</documentation>
</annotation>
<simpleContent>
<extension base="portlet:string"/>
</simpleContent>
</complexType>
<complexType name="portletType">
<annotation>
<documentation>
The portlet element contains the declarative data of a portlet.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-name" type="portlet:portlet-nameType"/>
<element name="display-name" type="portlet:display-nameType" minOccurs="0" maxOccurs="unbounded"/>
<element name="portlet-class" type="portlet:portlet-classType"/>
<element name="init-param" type="portlet:init-paramType" minOccurs="0" maxOccurs="unbounded"/>
<element name="expiration-cache" type="portlet:expiration-cacheType" minOccurs="0"/>
<element name="cache-scope" type="portlet:cache-scopeType" minOccurs="0"/>
<element name="supports" type="portlet:supportsType" maxOccurs="unbounded"/>
<element name="supported-locale" type="portlet:supported-localeType" minOccurs="0" maxOccurs="unbounded"/>
<element name="resource-bundle" type="portlet:resource-bundleType" minOccurs="0"/>
<element name="portlet-info" type="portlet:portlet-infoType" minOccurs="0"/>
<element name="portlet-preferences" type="portlet:portlet-preferencesType" minOccurs="0"/>
<element name="security-role-ref" type="portlet:security-role-refType" minOccurs="0" maxOccurs="unbounded"/>
<element name="supported-processing-event" type="portlet:event-definition-referenceType" minOccurs="0" maxOccurs="unbounded"/>
<element name="supported-publishing-event" type="portlet:event-definition-referenceType" minOccurs="0" maxOccurs="unbounded"/>
<element name="supported-public-render-parameter" type="portlet:string" minOccurs="0" maxOccurs="unbounded"/>
<element name="container-runtime-option" type="portlet:container-runtime-optionType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="portlet:string" use="optional"/>
</complexType>
<simpleType name="portlet-classType">
<annotation>
<documentation>
The portlet-class element contains the fully
qualified class name of the portlet.
Used in: portlet
</documentation>
</annotation>
<restriction base="portlet:fully-qualified-classType"/>
</simpleType>
<complexType name="container-runtime-optionType">
<annotation>
<documentation>
The container-runtime-option element contains settings
for the portlet container that the portlet expects to be honored
at runtime. These settings may re-define default portlet container
behavior, like the javax.portlet.escapeXml setting that disables
XML encoding of URLs produced by the portlet tag library as
default.
Names with the javax.portlet prefix are reserved for the Java
Portlet Specification.
Used in: portlet-app, portlet
</documentation>
</annotation>
<sequence>
<element name="name" type="portlet:nameType"/>
<element name="value" type="portlet:valueType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="filter-mappingType">
<annotation>
<documentation>
Declaration of the filter mappings in this portlet
application is done by using filter-mappingType.
The container uses the filter-mapping
declarations to decide which filters to apply to a request,
and in what order. To determine which filters to
apply it matches filter-mapping declarations on the
portlet-name and the lifecyle phase defined in the
filter element. The order in which filters are invoked
is the order in which filter-mapping declarations
that match appear in the list of filter-mapping elements.
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="filter-name" type="portlet:filter-nameType"/>
<element name="portlet-name" type="portlet:portlet-nameType" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="filterType">
<annotation>
<documentation>
The filter element specifies a filter that can transform the
content of portlet requests and portlet responses.
Filters can access the initialization parameters declared in
the deployment descriptor at runtime via the FilterConfig
interface.
A filter can be restricted to one or more lifecycle phases
of the portlet. Valid entries for lifecycle are:
ACTION_PHASE, EVENT_PHASE, RENDER_PHASE,
RESOURCE_PHASE
Used in: portlet-app
</documentation>
</annotation>
<sequence>
<element name="description" type="portlet:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<element name="display-name" type="portlet:display-nameType" minOccurs="0" maxOccurs="unbounded"/>
<element name="filter-name" type="portlet:filter-nameType"/>
<element name="filter-class" type="portlet:fully-qualified-classType"/>
<element name="lifecycle" type="portlet:string" maxOccurs="unbounded"/>
<element name="init-param" type="portlet:init-paramType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="portlet-collectionType">
<annotation>
<documentation>
The portlet-collectionType is used to identify a subset
of portlets within a portlet application to which a
security constraint applies.
Used in: security-constraint
</documentation>
</annotation>
<sequence>
<element name="portlet-name" type="portlet:portlet-nameType" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="event-definitionType">
<annotation>
<documentation>
The event-definitionType is used to declare events the portlet can either
receive or emit.
The name must be unique and must be the one the
portlet is using in its code for referencing this event.
Used in: portlet-app
</documentation>
</annotation>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?