javaee_5.xsd
来自「java servlet2.5 源码,对于学习servlet机制的人大为有用.」· XSD 代码 · 共 2,097 行 · 第 1/5 页
XSD
2,097 行
Example: <env-entry-type>java.lang.Boolean</env-entry-type> ]]> </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"> <xsd:enumeration value="java.lang.Boolean"/> <xsd:enumeration value="java.lang.Byte"/> <xsd:enumeration value="java.lang.Character"/> <xsd:enumeration value="java.lang.String"/> <xsd:enumeration value="java.lang.Short"/> <xsd:enumeration value="java.lang.Integer"/> <xsd:enumeration value="java.lang.Long"/> <xsd:enumeration value="java.lang.Float"/> <xsd:enumeration value="java.lang.Double"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="env-entryType"> <xsd:annotation> <xsd:documentation> The env-entryType is used to declare an application's environment entry. The declaration consists of an optional description, the name of the environment entry, a type (optional if the value is injected, otherwise required), and an optional value. It also includes optional elements to define injection of the named resource into fields or JavaBeans properties. If a value is not specified and injection is requested, no injection will occur and no entry of the specified name will be created. This allows an initial value to be specified in the source code without being incorrectly changed when no override has been specified. If a value is not specified and no injection is requested, a value must be supplied during deployment. This type is used by env-entry elements. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="env-entry-name" type="javaee:jndi-nameType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The env-entry-name element contains the name of a Deployment Component's environment entry. The name is a JNDI name relative to the java:comp/env context. The name must be unique within a Deployment Component. The uniqueness constraints must be defined within the declared context. Example: <env-entry-name>minAmount</env-entry-name> ]]> </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="env-entry-type" type="javaee:env-entry-type-valuesType" minOccurs="0"> <xsd:annotation> <xsd:documentation> <![CDATA[ The env-entry-type element contains the Java language type of the environment entry. If an injection target is specified for the environment entry, the type may be omitted, or must match the type of the injection target. If no injection target is specified, the type is required. Example: <env-entry-type>java.lang.Integer</env-entry-type> ]]> </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="env-entry-value" type="javaee:xsdStringType" minOccurs="0"> <xsd:annotation> <xsd:documentation> <![CDATA[ The env-entry-value designates the value of a Deployment Component's environment entry. The value must be a String that is valid for the constructor of the specified type that takes a single String parameter, or for java.lang.Character, a single character. Example: <env-entry-value>100.00</env-entry-value> ]]> </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:group ref="javaee:resourceGroup"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="fully-qualified-classType"> <xsd:annotation> <xsd:documentation> The elements that use this type designate the name of a Java class or interface. The name is in the form of a "binary name", as defined in the JLS. This is the form of name used in Class.forName(). Tools that need the canonical name (the name used in source code) will need to convert this binary name to the canonical name. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="generic-booleanType"> <xsd:annotation> <xsd:documentation> This type defines four different values which can designate boolean values. This includes values yes and no which are not designated by xsd:boolean </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"> <xsd:enumeration value="true"/> <xsd:enumeration value="false"/> <xsd:enumeration value="yes"/> <xsd:enumeration value="no"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="homeType"> <xsd:annotation> <xsd:documentation> <![CDATA[ The homeType defines the fully-qualified name of an enterprise bean's home interface. Example: <home>com.aardvark.payroll.PayrollHome</home> ]]> </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:fully-qualified-classType"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="iconType"> <xsd:annotation> <xsd:documentation> The icon type contains small-icon and large-icon elements that specify the file names for small and large GIF, JPEG, or PNG icon images used to represent the parent element in a GUI tool. The xml:lang attribute defines the language that the icon file names are provided in. Its value is "en" (English) by default. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="small-icon" type="javaee:pathType" minOccurs="0"> <xsd:annotation> <xsd:documentation> <![CDATA[ The small-icon element contains the name of a file containing a small (16 x 16) icon image. The file name is a relative path within the Deployment Component's Deployment File. The image may be in the GIF, JPEG, or PNG format. The icon can be used by tools. Example: <small-icon>employee-service-icon16x16.jpg</small-icon> ]]> </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="large-icon" type="javaee:pathType" minOccurs="0"> <xsd:annotation> <xsd:documentation> <![CDATA[ The large-icon element contains the name of a file containing a large (32 x 32) icon image. The file name is a relative path within the Deployment Component's Deployment File. The image may be in the GIF, JPEG, or PNG format. The icon can be used by tools. Example: <large-icon>employee-service-icon32x32.jpg</large-icon> ]]> </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute ref="xml:lang"/> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="injection-targetType"> <xsd:annotation> <xsd:documentation> An injection target specifies a class and a name within that class into which a resource should be injected. The injection target class specifies the fully qualified class name that is the target of the injection. The Java EE specifications describe which classes can be an injection target. The injection target name specifies the target within the specified class. The target is first looked for as a JavaBeans property name. If not found, the target is looked for as a field name. The specified resource will be injected into the target during initialization of the class by either calling the set method for the target property or by setting a value into the named field. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="injection-target-class" type="javaee:fully-qualified-classType"/> <xsd:element name="injection-target-name" type="javaee:java-identifierType"/> </xsd:sequence> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="java-identifierType"> <xsd:annotation> <xsd:documentation> The java-identifierType defines a Java identifier. The users of this type should further verify that the content does not contain Java reserved keywords. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"> <xsd:pattern value="($|_|\p{L})(\p{L}|\p{Nd}|_|$)*"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="java-typeType"> <xsd:annotation> <xsd:documentation> This is a generic type that designates a Java primitive type or a fully qualified name of a Java interface/type, or an array of such types. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"> <xsd:pattern value="[^\p{Z}]*"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="jndi-nameType"> <xsd:annotation> <xsd:documentation> The jndi-nameType type designates a JNDI name in the Deployment Component's environment and is relative to the java:comp/env context. A JNDI name must be unique within the Deployment Component. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="javaee:string"/> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:group name="jndiEnvironmentRefsGroup"> <xsd:annotation> <xsd:documentation> This group keeps the usage of the contained JNDI environment reference elements consistent across Java EE deployment descriptors. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="env-entry" type="javaee:env-entryType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ejb-ref" type="javaee:ejb-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="ejb-local-ref" type="javaee:ejb-local-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:group ref="javaee:service-refGroup"/> <xsd:element name="resource-ref" type="javaee:resource-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="resource-env-ref" type="javaee:resource-env-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="message-destination-ref" type="javaee:message-destination-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="persistence-context-ref" type="javaee:persistence-context-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="persistence-unit-ref" type="javaee:persistence-unit-refType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="post-construct" type="javaee:lifecycle-callbackType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="pre-destroy" type="javaee:lifecycle-callbackType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:group><!-- **************************************************** --> <xsd:complexType name="lifecycle-callbackType"> <xsd:annotation> <xsd:documentation> The lifecycle-callback type specifies a method on a class to be called when a lifecycle event occurs. Note that each class may have only one lifecycle callback method for any given event and that the method may not be overloaded. If the lifefycle-callback-class element is missing then the class defining the callback is assumed to be the component class in scope at the place in the descriptor in which the callback definition appears.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?