Made several small infrastructure changes (refactored a little too). BLD200301160100
authorcliffwd@netbeans.org
Wed, 15 Jan 2003 21:24:04 +0000
changeset 117033608a4bff4d
parent 1169 b690f1adfed3
child 1171 a7acab503ffc
Made several small infrastructure changes (refactored a little too).
Implement IZ#23173: proper generation of delgator classes.
Add support to name the delegator class in the mdd.
Handle the whitespace restriction while changing an attribute with that restriction.
Removed verify from BaseBean as it was never actually used and it didn't have the right signature
BaseBean now has validate.
Added defaultNamespace to BaseBean.
Added childBeans method that returns all active child beans. Very useful for recursing over the entire bean graph.
Updated MetaDD using pure javabeans.
Can generate a CommonBean interface.
If the DTD parser throws an IllegalStateException, then we retry the file as XML Schema; consequently, the user doesn't have to put -xmlschema on the command line any more.
Added -premium to mean that the user wants all of the currently available good options. The compatibility between one version's premium options and another is *not* guarenteed.
Pure java beans get 2 methods now: fetchPropertyByName & changePropertyByName, for working more reflectively.
Fixed up some of the restriction for some of the XML Schema built-in types (ie, positiveInteger now says it should be > 0).
Updated tests for new features.
schema2beans/build.xml
schema2beans/test/unit/src/TestMain.java
schema2beans/test/unit/src/data/TestPurchaseOrder.xsd
schema2beans/test/unit/src/data/TestWebAppDelegator.java
schema2beans/test/unit/src/data/TestWebAppDelegator.xml
schema2beans/test/unit/src/data/TestWebAppDelegator.xsd
schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.java
schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.xml
schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.xsd
schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegator.pass
schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass
     1.1 --- a/schema2beans/build.xml	Wed Jan 15 15:46:36 2003 +0000
     1.2 +++ b/schema2beans/build.xml	Wed Jan 15 21:24:04 2003 +0000
     1.3 @@ -120,4 +120,6 @@
     1.4    <target name="test" depends="jars">
     1.5      <ant dir="test" antfile="build.xml" />
     1.6    </target>
     1.7 +
     1.8 +  <target name="cleantest" depends="clean,jars,test"/>
     1.9  </project>
     2.1 --- a/schema2beans/test/unit/src/TestMain.java	Wed Jan 15 15:46:36 2003 +0000
     2.2 +++ b/schema2beans/test/unit/src/TestMain.java	Wed Jan 15 21:24:04 2003 +0000
     2.3 @@ -98,7 +98,22 @@
     2.4      public void testWebApp() throws IOException, Schema2BeansException, InterruptedException {
     2.5          generalTest("TestWebApp", true, true, true);
     2.6      }
     2.7 -    
     2.8 +
     2.9 +    public void testWebAppDelegator() throws IOException, Schema2BeansException, InterruptedException {
    2.10 +        GenBeans.Config config = new GenBeans.Config();
    2.11 +        config.buyPremium();
    2.12 +        config.setGenerateDelegator(true);
    2.13 +        generalTest("TestWebAppDelegator", true, config);
    2.14 +    }
    2.15 +
    2.16 +    public void testWebAppDelegatorBaseBean() throws IOException, Schema2BeansException, InterruptedException {
    2.17 +        GenBeans.Config config = new GenBeans.Config();
    2.18 +        config.buyPremium();
    2.19 +        config.setGenerateDelegator(true);
    2.20 +        config.setOutputType(GenBeans.Config.OUTPUT_TRADITIONAL_BASEBEAN);
    2.21 +        generalTest("TestWebAppDelegatorBaseBean", true, config);
    2.22 +    }
    2.23 +
    2.24      public void testApplication1_4() throws IOException, Schema2BeansException, InterruptedException {
    2.25          generalTest("TestApplication1_4", true, true, true);
    2.26      }
    2.27 @@ -106,9 +121,21 @@
    2.28      public void generalTest(String testName) throws IOException, Schema2BeansException, InterruptedException {
    2.29          generalTest(testName, false, false, false);
    2.30      }
    2.31 -    
    2.32 +
    2.33      public void generalTest(String testName, boolean xmlSchema,
    2.34                              boolean pureJavaBeans, boolean attrProp) throws IOException, Schema2BeansException, InterruptedException {
    2.35 +        GenBeans.Config config = new GenBeans.Config();
    2.36 +        if (pureJavaBeans) {
    2.37 +            config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
    2.38 +        }
    2.39 +        if (attrProp) {
    2.40 +            config.setAttributesAsProperties(true);
    2.41 +        }
    2.42 +        generalTest(testName, xmlSchema, config);
    2.43 +    }
    2.44 +
    2.45 +    public void generalTest(String testName, boolean xmlSchema,
    2.46 +                            GenBeans.Config config) throws IOException, Schema2BeansException, InterruptedException {
    2.47          String testOnly = System.getProperty("TestMain.testOnly");
    2.48          if (testOnly != null && !testOnly.equals(testName))
    2.49              return;
    2.50 @@ -121,7 +148,6 @@
    2.51              //cmdOut.write("ediff "+workDir.toString());
    2.52              //cmdOut.close();
    2.53  
    2.54 -            GenBeans.Config config = new GenBeans.Config();
    2.55              config.setAuto(true);
    2.56              config.setStandalone(false);
    2.57              //config.setTraceParse(true);
    2.58 @@ -149,12 +175,6 @@
    2.59              }
    2.60              config.setInputURI(schemaFile.toString());
    2.61              config.setRootDir(workDir.toString());
    2.62 -            if (attrProp) {
    2.63 -                config.setAttributesAsProperties(true);
    2.64 -            }
    2.65 -            if (pureJavaBeans) {
    2.66 -                config.setOutputType(GenBeans.Config.OUTPUT_JAVABEANS);
    2.67 -            }
    2.68              //config.setPackagePath();
    2.69              //config.setMessageOut(getRef());
    2.70              //if (testName.equals("TestBookXMLSchema")) {
     3.1 --- a/schema2beans/test/unit/src/data/TestPurchaseOrder.xsd	Wed Jan 15 15:46:36 2003 +0000
     3.2 +++ b/schema2beans/test/unit/src/data/TestPurchaseOrder.xsd	Wed Jan 15 21:24:04 2003 +0000
     3.3 @@ -27,7 +27,7 @@
     3.4  	<xsd:sequence>
     3.5  	  <xsd:element name="name"   type="xsd:string"/>
     3.6  	  <xsd:element name="street" type="xsd:string"/>
     3.7 -	  <xsd:element name="city"   type="xsd:string"/>
     3.8 +	  <xsd:element name="city"   type="xsd:token"/>
     3.9  	  <xsd:element name="state"  type="xsd:string"/>
    3.10  	  <xsd:element name="zip"    type="xsd:decimal"/>
    3.11  	</xsd:sequence>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegator.java	Wed Jan 15 21:24:04 2003 +0000
     4.3 @@ -0,0 +1,56 @@
     4.4 +/*
     4.5 + *	TestWebAppDelegator - test the basic features.
     4.6 + *
     4.7 + *	The following test assumes that we know the content of the
     4.8 + *	graph as we get elements, add and change them. Therefore, the TestWebAppDelegator.xml
     4.9 + *	file and this java test should be kept in sync.
    4.10 + *
    4.11 + * 	Test the following:
    4.12 + *
    4.13 + *	single String: get/set/remove/set/get
    4.14 + *	boolean (from true): get/set true/get/set false/get/set true/get
    4.15 + *	boolean (from false): get/set false/get/set true/get/set false/get
    4.16 + *	String[]: get/set (null & !null)/add/remove
    4.17 + *	Bean: remove/set(null)/create bean and graph of beans/set/add
    4.18 + *
    4.19 + */
    4.20 +
    4.21 +import java.io.*;
    4.22 +import java.util.*;
    4.23 +import org.w3c.dom.*;
    4.24 +
    4.25 +import webapp.*;
    4.26 +
    4.27 +
    4.28 +public class TestWebAppDelegator extends BaseTest {
    4.29 +    public static void main(String[] argv) {
    4.30 +        TestWebAppDelegator o = new TestWebAppDelegator();
    4.31 +        if (argv.length > 0)
    4.32 +            o.setDocumentDir(argv[0]);
    4.33 +        try {
    4.34 +            o.run();
    4.35 +        } catch (Exception e) {
    4.36 +            e.printStackTrace();
    4.37 +            System.exit(1);
    4.38 +        }
    4.39 +        System.exit(0);
    4.40 +    }
    4.41 +    
    4.42 +    public void run() throws Exception {
    4.43 +        WebAppDelegator webApp;
    4.44 +
    4.45 +        this.readDocument();
    4.46 +
    4.47 +        out("creating the bean graph");
    4.48 +        webApp = WebAppDelegator.read(doc);
    4.49 +
    4.50 +        //	Check that we can read the graph an it is complete
    4.51 +        out("bean graph created");
    4.52 +        webApp.write(out);
    4.53 +
    4.54 +        out("making some minor changes");
    4.55 +        webApp.setDescription(0, "Changed the description");
    4.56 +        webApp.getFilter(0).setFilterClass("foo");
    4.57 +        webApp.write(out);
    4.58 +    }
    4.59 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegator.xml	Wed Jan 15 21:24:04 2003 +0000
     5.3 @@ -0,0 +1,9 @@
     5.4 +<?xml version='1.0'?>
     5.5 +
     5.6 +<web-app>
     5.7 +  <description>This is my Web App</description>
     5.8 +  <display-name>MyWebApp</display-name>
     5.9 +  <filter>
    5.10 +	<filter-name>Bob</filter-name>
    5.11 +  </filter>
    5.12 +</web-app>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegator.xsd	Wed Jan 15 21:24:04 2003 +0000
     6.3 @@ -0,0 +1,1283 @@
     6.4 +<?xml version="1.0" encoding="UTF-8"?>
     6.5 +<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
     6.6 +     targetNamespace="http://java.sun.com/xml/ns/j2ee"
     6.7 +     xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
     6.8 +     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     6.9 +     elementFormDefault="qualified"
    6.10 +     attributeFormDefault="unqualified"
    6.11 +     version="2.4">
    6.12 +<xsd:annotation>
    6.13 +<xsd:documentation>
    6.14 +@(#)web-app_2_4.xsds	1.34 02/08/01
    6.15 +</xsd:documentation>
    6.16 +</xsd:annotation>
    6.17 +
    6.18 +<xsd:annotation>
    6.19 +<xsd:documentation>
    6.20 +
    6.21 +Copyright 2002 Sun Microsystems, Inc., 901 San Antonio
    6.22 +Road, Palo Alto, California 94303, U.S.A. All rights
    6.23 +reserved.
    6.24 +
    6.25 +Sun Microsystems, Inc. has intellectual property rights
    6.26 +relating to technology described in this document. In
    6.27 +particular, and without limitation, these intellectual
    6.28 +property rights may include one or more of the U.S. patents
    6.29 +listed at http://www.sun.com/patents and one or more
    6.30 +additional patents or pending patent applications in the
    6.31 +U.S. and other countries.
    6.32 +
    6.33 +This document and the technology which it describes are
    6.34 +distributed under licenses restricting their use, copying,
    6.35 +distribution, and decompilation. No part of this document
    6.36 +may be reproduced in any form by any means without prior
    6.37 +written authorization of Sun and its licensors, if any.
    6.38 +
    6.39 +Third-party software, including font technology, is
    6.40 +copyrighted and licensed from Sun suppliers.
    6.41 +
    6.42 +Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
    6.43 +JavaServer Pages, Enterprise JavaBeans and the Java Coffee
    6.44 +Cup logo are trademarks or registered trademarks of Sun
    6.45 +Microsystems, Inc. in the U.S. and other countries.
    6.46 +
    6.47 +Federal Acquisitions: Commercial Software - Government Users
    6.48 +Subject to Standard License Terms and Conditions.
    6.49 +
    6.50 +</xsd:documentation>
    6.51 +</xsd:annotation>
    6.52 +
    6.53 +<xsd:annotation>
    6.54 +<xsd:documentation>
    6.55 +
    6.56 +This is the XML Schema for the Servlet 2.4 deployment
    6.57 +descriptor.  All Servlet deployment descriptors must
    6.58 +indicate the web application schema by using the J2EE
    6.59 +namespace:
    6.60 +
    6.61 +http://java.sun.com/xml/ns/j2ee
    6.62 +
    6.63 +and by indicating the version of the schema by
    6.64 +using the version element as shown below:
    6.65 +
    6.66 +    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    6.67 +     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    6.68 +     xsi:schemaLocation="..."
    6.69 +     version="2.4">
    6.70 +    ...
    6.71 +    </web-app>
    6.72 +
    6.73 +The instance documents may indicate the published version of
    6.74 +the schema using the xsi:schemaLocation attribute for J2EE
    6.75 +namespace with the following location:
    6.76 +
    6.77 +http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
    6.78 +
    6.79 +</xsd:documentation>
    6.80 +</xsd:annotation>
    6.81 +
    6.82 +<xsd:annotation>
    6.83 +<xsd:documentation>
    6.84 +
    6.85 +The following conventions apply to all J2EE
    6.86 +deployment descriptor elements unless indicated otherwise.
    6.87 +
    6.88 +- In elements that specify a pathname to a file within the
    6.89 +  same JAR file, relative filenames (i.e., those not
    6.90 +  starting with "/") are considered relative to the root of
    6.91 +  the JAR file's namespace.  Absolute filenames (i.e., those
    6.92 +  starting with "/") also specify names in the root of the
    6.93 +  JAR file's namespace.  In general, relative names are
    6.94 +  preferred.  The exception is .war files where absolute
    6.95 +  names are preferred for consistency with the Servlet API.
    6.96 +
    6.97 +</xsd:documentation>
    6.98 +</xsd:annotation>
    6.99 +
   6.100 +<xsd:include schemaLocation="j2ee_1_4.xsd"/>
   6.101 +<xsd:include schemaLocation="jsp_2_0.xsd"/>
   6.102 +
   6.103 +
   6.104 +<!-- **************************************************** -->
   6.105 +
   6.106 +
   6.107 +<xsd:element name="web-app" type="j2ee:web-appType">
   6.108 +    <xsd:annotation>
   6.109 +    <xsd:documentation>
   6.110 +
   6.111 +    The web-app element is the root of the deployment
   6.112 +    descriptor for a web application.
   6.113 +
   6.114 +    </xsd:documentation>
   6.115 +    </xsd:annotation>
   6.116 +
   6.117 +    <xsd:unique name="servlet-name-uniqueness">
   6.118 +    <xsd:annotation>
   6.119 +    <xsd:documentation>
   6.120 +
   6.121 +    The servlet element contains the name of a servlet.
   6.122 +    The name must be unique within the web application.
   6.123 +
   6.124 +    </xsd:documentation>
   6.125 +    </xsd:annotation>
   6.126 +        <xsd:selector xpath="j2ee:servlet"/>
   6.127 +        <xsd:field    xpath="j2ee:servlet-name"/>
   6.128 +    </xsd:unique>
   6.129 +
   6.130 +    <xsd:unique name="filter-name-uniqueness">
   6.131 +    <xsd:annotation>
   6.132 +    <xsd:documentation>
   6.133 +
   6.134 +    The filter element contains the name of a filter.
   6.135 +    The name must be unique within the web application.
   6.136 +
   6.137 +    </xsd:documentation>
   6.138 +    </xsd:annotation>
   6.139 +        <xsd:selector xpath="j2ee:filter"/>
   6.140 +        <xsd:field    xpath="j2ee:filter-name"/>
   6.141 +    </xsd:unique>
   6.142 +
   6.143 +    <xsd:unique name="ejb-local-ref-name-uniqueness">
   6.144 +    <xsd:annotation>
   6.145 +    <xsd:documentation>
   6.146 +
   6.147 +    The ejb-local-ref-name element contains the name of an EJB
   6.148 +    reference. The EJB reference is an entry in the web
   6.149 +    application's environment and is relative to the
   6.150 +    java:comp/env context.  The name must be unique within
   6.151 +    the web application.
   6.152 +
   6.153 +    It is recommended that name is prefixed with "ejb/".
   6.154 +
   6.155 +    </xsd:documentation>
   6.156 +    </xsd:annotation>
   6.157 +        <xsd:selector xpath="j2ee:ejb-local-ref"/>
   6.158 +        <xsd:field    xpath="j2ee:ejb-ref-name"/>
   6.159 +    </xsd:unique>
   6.160 +
   6.161 +    <xsd:unique name="ejb-ref-name-uniqueness">
   6.162 +    <xsd:annotation>
   6.163 +    <xsd:documentation>
   6.164 +
   6.165 +    The ejb-ref-name element contains the name of an EJB
   6.166 +    reference. The EJB reference is an entry in the web
   6.167 +    application's environment and is relative to the
   6.168 +    java:comp/env context.  The name must be unique within
   6.169 +    the web application.
   6.170 +
   6.171 +    It is recommended that name is prefixed with "ejb/".
   6.172 +
   6.173 +    </xsd:documentation>
   6.174 +    </xsd:annotation>
   6.175 +        <xsd:selector xpath="j2ee:ejb-ref"/>
   6.176 +        <xsd:field    xpath="j2ee:ejb-ref-name"/>
   6.177 +    </xsd:unique>
   6.178 +
   6.179 +    <xsd:unique name="resource-env-ref-uniqueness">
   6.180 +    <xsd:annotation>
   6.181 +    <xsd:documentation>
   6.182 +
   6.183 +    The resource-env-ref-name element specifies the name of
   6.184 +    a resource environment reference; its value is the
   6.185 +    environment entry name used in the web application code.
   6.186 +    The name is a JNDI name relative to the java:comp/env
   6.187 +    context and must be unique within a web application.
   6.188 +
   6.189 +    </xsd:documentation>
   6.190 +    </xsd:annotation>
   6.191 +        <xsd:selector xpath="j2ee:resource-env-ref"/>
   6.192 +        <xsd:field    xpath="j2ee:resource-env-ref-name"/>
   6.193 +    </xsd:unique>
   6.194 +
   6.195 +    <xsd:unique name="message-destination-ref-uniqueness">
   6.196 +    <xsd:annotation>
   6.197 +    <xsd:documentation>
   6.198 +
   6.199 +    The message-destination-ref-name element specifies the name of
   6.200 +    a message destination reference; its value is the
   6.201 +    environment entry name used in the web application code.
   6.202 +    The name is a JNDI name relative to the java:comp/env
   6.203 +    context and must be unique within a web application.
   6.204 +
   6.205 +    </xsd:documentation>
   6.206 +    </xsd:annotation>
   6.207 +        <xsd:selector xpath="j2ee:message-destination-ref"/>
   6.208 +        <xsd:field    xpath="j2ee:message-destination-ref-name"/>
   6.209 +    </xsd:unique>
   6.210 +
   6.211 +    <xsd:unique name="res-ref-name-uniqueness">
   6.212 +    <xsd:annotation>
   6.213 +    <xsd:documentation>
   6.214 +
   6.215 +    The res-ref-name element specifies the name of a
   6.216 +    resource manager connection factory reference.  The name
   6.217 +    is a JNDI name relative to the java:comp/env context.
   6.218 +    The name must be unique within a web application.
   6.219 +
   6.220 +    </xsd:documentation>
   6.221 +    </xsd:annotation>
   6.222 +        <xsd:selector xpath="j2ee:resource-ref"/>
   6.223 +        <xsd:field    xpath="j2ee:res-ref-name"/>
   6.224 +    </xsd:unique>
   6.225 +
   6.226 +    <xsd:unique name="env-entry-name-uniqueness">
   6.227 +    <xsd:annotation>
   6.228 +    <xsd:documentation>
   6.229 +
   6.230 +    The env-entry-name element contains the name of a web
   6.231 +    application's environment entry.  The name is a JNDI
   6.232 +    name relative to the java:comp/env context.  The name
   6.233 +    must be unique within a web application.
   6.234 +
   6.235 +    </xsd:documentation>
   6.236 +    </xsd:annotation>
   6.237 +
   6.238 +        <xsd:selector xpath="j2ee:env-entry"/>
   6.239 +        <xsd:field    xpath="j2ee:env-entry-name"/>
   6.240 +        </xsd:unique>
   6.241 +
   6.242 +    <xsd:key name="role-name-key">
   6.243 +    <xsd:annotation>
   6.244 +    <xsd:documentation>
   6.245 +
   6.246 +    A role-name-key is specified to allow the references
   6.247 +    from the security-role-refs.
   6.248 +
   6.249 +    </xsd:documentation>
   6.250 +    </xsd:annotation>
   6.251 +        <xsd:selector xpath="j2ee:security-role"/>
   6.252 +        <xsd:field    xpath="j2ee:role-name"/>
   6.253 +    </xsd:key>
   6.254 +
   6.255 +    <xsd:keyref name="role-name-references"
   6.256 +            refer="j2ee:role-name-key">
   6.257 +    <xsd:annotation>
   6.258 +    <xsd:documentation>
   6.259 +
   6.260 +    The keyref indicates the references from
   6.261 +    security-role-ref to a specified role-name.
   6.262 +
   6.263 +    </xsd:documentation>
   6.264 +    </xsd:annotation>
   6.265 +        <xsd:selector xpath="j2ee:servlet/j2ee:security-role-ref"/>
   6.266 +        <xsd:field    xpath="j2ee:role-link"/>
   6.267 +    </xsd:keyref>
   6.268 +
   6.269 +</xsd:element>
   6.270 +
   6.271 +
   6.272 +<!-- **************************************************** -->
   6.273 +
   6.274 +<xsd:complexType name="auth-constraintType">
   6.275 +<xsd:annotation>
   6.276 +<xsd:documentation>
   6.277 +
   6.278 +The auth-constraintType indicates the user roles that
   6.279 +should be permitted access to this resource
   6.280 +collection. The role-name used here must either correspond
   6.281 +to the role-name of one of the security-role elements
   6.282 +defined for this web application, or be the specially
   6.283 +reserved role-name "*" that is a compact syntax for
   6.284 +indicating all roles in the web application. If both "*"
   6.285 +and rolenames appear, the container interprets this as all
   6.286 +roles.  If no roles are defined, no user is allowed access
   6.287 +to the portion of the web application described by the
   6.288 +containing security-constraint.  The container matches
   6.289 +role names case sensitively when determining access.
   6.290 +
   6.291 +</xsd:documentation>
   6.292 +</xsd:annotation>
   6.293 +
   6.294 +    <xsd:sequence>
   6.295 +        <xsd:element name="description"
   6.296 +                 type="j2ee:descriptionType"
   6.297 +                 minOccurs="0" maxOccurs="unbounded"/>
   6.298 +        <xsd:element name="role-name"
   6.299 +                 type="j2ee:role-nameType"
   6.300 +                 minOccurs="0" maxOccurs="unbounded"/>
   6.301 +    </xsd:sequence>
   6.302 +
   6.303 +</xsd:complexType>
   6.304 +
   6.305 +<!-- **************************************************** -->
   6.306 +
   6.307 +<xsd:simpleType name="auth-methodType">
   6.308 +<xsd:annotation>
   6.309 +<xsd:documentation>
   6.310 +
   6.311 +The auth-methodType is used to configure the authentication
   6.312 +mechanism for the web application. As a prerequisite to
   6.313 +gaining access to any web resources which are protected by
   6.314 +an authorization constraint, a user must have authenticated
   6.315 +using the configured mechanism. Legal values are "BASIC",
   6.316 +"DIGEST", "FORM", or "CLIENT-CERT".
   6.317 +
   6.318 +Used in: login-config
   6.319 +
   6.320 +</xsd:documentation>
   6.321 +</xsd:annotation>
   6.322 +
   6.323 +    <xsd:restriction base="j2ee:string">
   6.324 +        <xsd:enumeration value="BASIC"/>
   6.325 +        <xsd:enumeration value="DIGEST"/>
   6.326 +        <xsd:enumeration value="FORM"/>
   6.327 +        <xsd:enumeration value="CLIENT-CERT"/>
   6.328 +    </xsd:restriction>
   6.329 +
   6.330 +</xsd:simpleType>
   6.331 +
   6.332 +<!-- **************************************************** -->
   6.333 +
   6.334 +<xsd:simpleType name="dispatcherType">
   6.335 +<xsd:annotation>
   6.336 +<xsd:documentation>
   6.337 +
   6.338 +The dispatcher has three legal values, FORWARD and REQUEST
   6.339 +and INCLUDE. A value of FORWARD means the Filter
   6.340 +will be applied under RequestDispatcher.forward() calls.
   6.341 +A value of REQUEST means the Filter will be applied
   6.342 +under ordinary client calls to the path or servlet. A value of
   6.343 +INCLUDE means the Filter will be applied under
   6.344 +RequestDispatcher.include() calls.
   6.345 +The absence of any dispatcher elements in a
   6.346 +filter-mapping indicates a default of applying
   6.347 +filters only under ordinary client calls to the path or servlet.
   6.348 +
   6.349 +</xsd:documentation>
   6.350 +</xsd:annotation>
   6.351 +
   6.352 +    <xsd:restriction base="j2ee:string">
   6.353 +        <xsd:enumeration value="FORWARD"/>
   6.354 +    <xsd:enumeration value="INCLUDE"/>
   6.355 +    <xsd:enumeration value="REQUEST"/>
   6.356 +
   6.357 +    </xsd:restriction>
   6.358 +
   6.359 +</xsd:simpleType>
   6.360 +
   6.361 +<!-- **************************************************** -->
   6.362 +
   6.363 +<xsd:simpleType name="error-codeType">
   6.364 +<xsd:annotation>
   6.365 +<xsd:documentation>
   6.366 +
   6.367 +The error-code contains an HTTP error code, ex: 404
   6.368 +
   6.369 +Used in: error-page
   6.370 +
   6.371 +</xsd:documentation>
   6.372 +</xsd:annotation>
   6.373 +
   6.374 +    <xsd:restriction base="positiveInteger"/>
   6.375 +
   6.376 +</xsd:simpleType>
   6.377 +
   6.378 +<!-- **************************************************** -->
   6.379 +
   6.380 +<xsd:complexType name="error-pageType">
   6.381 +<xsd:annotation>
   6.382 +<xsd:documentation>
   6.383 +
   6.384 +The error-pageType contains a mapping between an error code
   6.385 +or exception type to the path of a resource in the web
   6.386 +application.
   6.387 +
   6.388 +Used in: web-app
   6.389 +
   6.390 +</xsd:documentation>
   6.391 +</xsd:annotation>
   6.392 +
   6.393 +    <xsd:sequence>
   6.394 +        <choice>
   6.395 +        <xsd:element name="error-code"
   6.396 +                     type="j2ee:error-codeType"/>
   6.397 +
   6.398 +        <xsd:element name="exception-type"
   6.399 +                     type="j2ee:fully-qualified-classType">
   6.400 +        <xsd:annotation>
   6.401 +        <xsd:documentation>
   6.402 +
   6.403 +        The exception-type contains a fully qualified class
   6.404 +        name of a Java exception type.
   6.405 +
   6.406 +        </xsd:documentation>
   6.407 +        </xsd:annotation>
   6.408 +        </xsd:element>
   6.409 +        </choice>
   6.410 +
   6.411 +        <xsd:element name="location"
   6.412 +                     type="j2ee:pathType">
   6.413 +        <xsd:annotation>
   6.414 +        <xsd:documentation>
   6.415 +
   6.416 +        The location element contains the location of the
   6.417 +        resource in the web application relative to the root of
   6.418 +        the web application. The value of the location must have
   6.419 +        a leading `/'.
   6.420 +
   6.421 +        </xsd:documentation>
   6.422 +        </xsd:annotation>
   6.423 +        </xsd:element>
   6.424 +    </xsd:sequence>
   6.425 +
   6.426 +</xsd:complexType>
   6.427 +
   6.428 +<!-- **************************************************** -->
   6.429 +
   6.430 +<xsd:complexType name="filter-mappingType">
   6.431 +<xsd:annotation>
   6.432 +<xsd:documentation>
   6.433 +
   6.434 +Declaration of the filter mappings in this web
   6.435 +application is done by using filter-mappingType.
   6.436 +The container uses the filter-mapping
   6.437 +declarations to decide which filters to apply to a request,
   6.438 +and in what order. The container matches the request URI to
   6.439 +a Servlet in the normal way. To determine which filters to
   6.440 +apply it matches filter-mapping declarations either on
   6.441 +servlet-name, or on url-pattern for each filter-mapping
   6.442 +element, depending on which style is used. The order in
   6.443 +which filters are invoked is the order in which
   6.444 +filter-mapping declarations that match a request URI for a
   6.445 +servlet appear in the list of filter-mapping elements.The
   6.446 +filter-name value must be the value of the filter-name
   6.447 +sub-elements of one of the filter declarations in the
   6.448 +deployment descriptor.
   6.449 +
   6.450 +</xsd:documentation>
   6.451 +</xsd:annotation>
   6.452 +
   6.453 +    <xsd:sequence>
   6.454 +        <xsd:element name="filter-name"
   6.455 +                 type="j2ee:filter-nameType"/>
   6.456 +        <choice>
   6.457 +            <xsd:element name="url-pattern"
   6.458 +                     type="j2ee:url-patternType"/>
   6.459 +            <xsd:element name="servlet-name"
   6.460 +                     type="j2ee:servlet-nameType"/>
   6.461 +        </choice>
   6.462 +        <xsd:element name="dispatcher"
   6.463 +                     type="j2ee:dispatcherType"
   6.464 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.465 +    </xsd:sequence>
   6.466 +
   6.467 +</xsd:complexType>
   6.468 +
   6.469 +<!-- **************************************************** -->
   6.470 +
   6.471 +<xsd:simpleType name="filter-nameType">
   6.472 +<xsd:annotation>
   6.473 +<xsd:documentation>
   6.474 +
   6.475 +The logical name of the filter is declare
   6.476 +by using filter-nameType. This name is used to map the
   6.477 +filter.  Each filter name is unique within the web
   6.478 +application.
   6.479 +
   6.480 +Used in: filter, filter-mapping
   6.481 +
   6.482 +</xsd:documentation>
   6.483 +</xsd:annotation>
   6.484 +
   6.485 +    <xsd:restriction base="j2ee:string"/>
   6.486 +
   6.487 +</xsd:simpleType>
   6.488 +
   6.489 +<!-- **************************************************** -->
   6.490 +
   6.491 +<xsd:complexType name="filterType">
   6.492 +<xsd:annotation>
   6.493 +<xsd:documentation>
   6.494 +
   6.495 +The filterType is used to declare a filter in the web
   6.496 +application. The filter is mapped to either a servlet or a
   6.497 +URL pattern in the filter-mapping element, using the
   6.498 +filter-name value to reference. Filters can access the
   6.499 +initialization parameters declared in the deployment
   6.500 +descriptor at runtime via the FilterConfig interface.
   6.501 +
   6.502 +Used in: web-app
   6.503 +
   6.504 +</xsd:documentation>
   6.505 +</xsd:annotation>
   6.506 +
   6.507 +    <xsd:sequence>
   6.508 +        <xsd:element name="description"
   6.509 +                     type="j2ee:descriptionType"
   6.510 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.511 +        <xsd:element name="display-name"
   6.512 +                     type="j2ee:display-nameType"
   6.513 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.514 +        <xsd:element name="icon"
   6.515 +                     type="j2ee:iconType"
   6.516 +                     minOccurs="0"
   6.517 +                     maxOccurs="unbounded"/>
   6.518 +        <xsd:element name="filter-name"
   6.519 +                     type="j2ee:filter-nameType"/>
   6.520 +        <xsd:element name="filter-class"
   6.521 +                     type="j2ee:fully-qualified-classType">
   6.522 +        <xsd:annotation>
   6.523 +        <xsd:documentation>
   6.524 +
   6.525 +        The fully qualified classname of the filter.
   6.526 +
   6.527 +        </xsd:documentation>
   6.528 +        </xsd:annotation>
   6.529 +        </xsd:element>
   6.530 +
   6.531 +        <xsd:element name="init-param"
   6.532 +                     type="j2ee:param-valueType"
   6.533 +                     minOccurs="0" maxOccurs="unbounded">
   6.534 +        <xsd:annotation>
   6.535 +        <xsd:documentation>
   6.536 +
   6.537 +        The init-param element contains a name/value pair as
   6.538 +        an initialization param of a servlet filter
   6.539 +
   6.540 +        </xsd:documentation>
   6.541 +        </xsd:annotation>
   6.542 +        </xsd:element>
   6.543 +    </xsd:sequence>
   6.544 +
   6.545 +</xsd:complexType>
   6.546 +
   6.547 +<!-- **************************************************** -->
   6.548 +
   6.549 +<xsd:complexType name="form-login-configType">
   6.550 +<xsd:annotation>
   6.551 +<xsd:documentation>
   6.552 +
   6.553 +The form-login-configType specifies the login and error
   6.554 +pages that should be used in form based login. If form based
   6.555 +authentication is not used, these elements are ignored.
   6.556 +
   6.557 +Used in: login-config
   6.558 +
   6.559 +</xsd:documentation>
   6.560 +</xsd:annotation>
   6.561 +
   6.562 +    <xsd:sequence>
   6.563 +
   6.564 +        <xsd:element name="form-login-page"
   6.565 +                 type="j2ee:war-pathType">
   6.566 +        <xsd:annotation>
   6.567 +        <xsd:documentation>
   6.568 +
   6.569 +        The form-login-page element defines the location in the web app
   6.570 +        where the page that can be used for login can be found.
   6.571 +        The path begins with a leading / and is
   6.572 +        interpreted relative to the root of the WAR.
   6.573 +
   6.574 +        </xsd:documentation>
   6.575 +        </xsd:annotation>
   6.576 +        </xsd:element>
   6.577 +
   6.578 +        <xsd:element name="form-error-page"
   6.579 +                 type="j2ee:war-pathType">
   6.580 +        <xsd:annotation>
   6.581 +        <xsd:documentation>
   6.582 +
   6.583 +        The form-error-page element defines the location in
   6.584 +        the web app where the error page that is displayed
   6.585 +        when login is not successful can be found.
   6.586 +        The path begins with a leading / and is interpreted
   6.587 +        relative to the root of the WAR.
   6.588 +
   6.589 +        </xsd:documentation>
   6.590 +        </xsd:annotation>
   6.591 +        </xsd:element>
   6.592 +
   6.593 +    </xsd:sequence>
   6.594 +
   6.595 +</xsd:complexType>
   6.596 +
   6.597 +<!-- **************************************************** -->
   6.598 +
   6.599 +<xsd:simpleType name="http-methodType">
   6.600 +<xsd:annotation>
   6.601 +
   6.602 +<xsd:documentation>
   6.603 +The http-method contains an HTTP method recognized by the web-app, i.e.
   6.604 +(GET | POST |...).
   6.605 +
   6.606 +</xsd:documentation>
   6.607 +</xsd:annotation>
   6.608 +
   6.609 +    <xsd:restriction base="j2ee:string">
   6.610 +        <xsd:enumeration value="GET"/>
   6.611 +        <xsd:enumeration value="POST"/>
   6.612 +        <xsd:enumeration value="PUT"/>
   6.613 +        <xsd:enumeration value="DELETE"/>
   6.614 +        <xsd:enumeration value="HEAD"/>
   6.615 +        <xsd:enumeration value="OPTIONS"/>
   6.616 +        <xsd:enumeration value="TRACE"/>
   6.617 +    </xsd:restriction>
   6.618 +
   6.619 +</xsd:simpleType>
   6.620 +
   6.621 +<!-- **************************************************** -->
   6.622 +
   6.623 +<xsd:complexType name="listenerType">
   6.624 +<xsd:annotation>
   6.625 +<xsd:documentation>
   6.626 +
   6.627 +The listenerType indicates the deployment properties for a web
   6.628 +application listener bean.
   6.629 +
   6.630 +Used in: web-app:listenerType
   6.631 +
   6.632 +</xsd:documentation>
   6.633 +</xsd:annotation>
   6.634 +
   6.635 +    <xsd:sequence>
   6.636 +        <xsd:element name="description"
   6.637 +                     type="j2ee:descriptionType"
   6.638 +                     minOccurs="0"
   6.639 +                     maxOccurs="unbounded"/>
   6.640 +        <xsd:element name="display-name"
   6.641 +                     type="j2ee:display-nameType"
   6.642 +                     minOccurs="0"
   6.643 +                     maxOccurs="unbounded"/>
   6.644 +        <xsd:element name="icon"
   6.645 +                     type="j2ee:iconType"
   6.646 +                     minOccurs="0"
   6.647 +                     maxOccurs="unbounded"/>
   6.648 +        <xsd:element name="listener-class"
   6.649 +                     type="j2ee:fully-qualified-classType">
   6.650 +        <xsd:annotation>
   6.651 +        <xsd:documentation>
   6.652 +
   6.653 +        The listener-class element declares a class in the
   6.654 +        application must be registered as a web
   6.655 +        application listener bean. The value is the fully
   6.656 +        qualified classname of the listener class.
   6.657 +
   6.658 +        </xsd:documentation>
   6.659 +        </xsd:annotation>
   6.660 +        </xsd:element>
   6.661 +    </xsd:sequence>
   6.662 +
   6.663 +</xsd:complexType>
   6.664 +
   6.665 +<!-- **************************************************** -->
   6.666 +
   6.667 +<xsd:complexType name="locale-encoding-mapping-listType">
   6.668 +<xsd:annotation>
   6.669 +<xsd:documentation>
   6.670 +
   6.671 +The locale-encoding-mapping-list contains one or more
   6.672 +locale-encoding-mapping(s).
   6.673 +
   6.674 +</xsd:documentation>
   6.675 +</xsd:annotation>
   6.676 +
   6.677 +<xsd:sequence>
   6.678 +    <xsd:element name="locale-encoding-mapping"
   6.679 +        type="j2ee:locale-encoding-mappingType"
   6.680 +        maxOccurs="unbounded"/>
   6.681 +</xsd:sequence>
   6.682 +</xsd:complexType>
   6.683 +
   6.684 +<!-- **************************************************** -->
   6.685 +
   6.686 +<xsd:complexType name="locale-encoding-mappingType">
   6.687 +<xsd:annotation>
   6.688 +<xsd:documentation>
   6.689 +
   6.690 +The locale-encoding-mapping contains locale name and
   6.691 +encoding name. The locale name must be either "Language-code",
   6.692 +such as "ja", defined by ISO-639 or "Language-code_Country-code",
   6.693 +such as "ja_JP".  "Country code" is defined by ISO-3166.
   6.694 +
   6.695 +</xsd:documentation>
   6.696 +</xsd:annotation>
   6.697 +
   6.698 +<xsd:sequence>
   6.699 +    <xsd:element name="locale"
   6.700 +        type="j2ee:string"/>
   6.701 +    <xsd:element name="encoding"
   6.702 +        type="j2ee:string"/>
   6.703 +</xsd:sequence>
   6.704 +</xsd:complexType>
   6.705 +
   6.706 +<!-- **************************************************** -->
   6.707 +
   6.708 +<xsd:complexType name="login-configType">
   6.709 +<xsd:annotation>
   6.710 +<xsd:documentation>
   6.711 +
   6.712 +The login-configType is used to configure the authentication
   6.713 +method that should be used, the realm name that should be
   6.714 +used for this application, and the attributes that are
   6.715 +needed by the form login mechanism.
   6.716 +
   6.717 +Used in: web-app
   6.718 +
   6.719 +</xsd:documentation>
   6.720 +</xsd:annotation>
   6.721 +
   6.722 +    <xsd:sequence>
   6.723 +        <xsd:element name="auth-method"
   6.724 +                     type="j2ee:auth-methodType"
   6.725 +                     minOccurs="0"/>
   6.726 +        <xsd:element name="realm-name"
   6.727 +                     type="j2ee:string" minOccurs="0">
   6.728 +        <xsd:annotation>
   6.729 +        <xsd:documentation>
   6.730 +
   6.731 +        The realm name element specifies the realm name to
   6.732 +        use in HTTP Basic authorization.
   6.733 +
   6.734 +        </xsd:documentation>
   6.735 +        </xsd:annotation>
   6.736 +        </xsd:element>
   6.737 +        <xsd:element name="form-login-config"
   6.738 +                     type="j2ee:form-login-configType"
   6.739 +                     minOccurs="0"/>
   6.740 +    </xsd:sequence>
   6.741 +
   6.742 +</xsd:complexType>
   6.743 +
   6.744 +<!-- **************************************************** -->
   6.745 +
   6.746 +<xsd:complexType name="mime-mappingType">
   6.747 +<xsd:annotation>
   6.748 +<xsd:documentation>
   6.749 +
   6.750 +The mime-mappingType defines a mapping between an extension
   6.751 +and a mime type.
   6.752 +
   6.753 +Used in: web-app
   6.754 +
   6.755 +</xsd:documentation>
   6.756 +</xsd:annotation>
   6.757 +
   6.758 +    <xsd:sequence>
   6.759 +        <xsd:annotation>
   6.760 +        <xsd:documentation>
   6.761 +
   6.762 +        The extension element contains a string describing an
   6.763 +        extension. example: "txt"
   6.764 +
   6.765 +        </xsd:documentation>
   6.766 +        </xsd:annotation>
   6.767 +
   6.768 +        <xsd:element name="extension"
   6.769 +                     type="j2ee:string"/>
   6.770 +        <xsd:element name="mime-type"
   6.771 +                     type="j2ee:mime-typeType"/>
   6.772 +    </xsd:sequence>
   6.773 +
   6.774 +</xsd:complexType>
   6.775 +
   6.776 +<!-- **************************************************** -->
   6.777 +
   6.778 +<xsd:simpleType name="mime-typeType">
   6.779 +<xsd:annotation>
   6.780 +<xsd:documentation>
   6.781 +
   6.782 +The mime-typeType is used to indicate a defined mime type.
   6.783 +
   6.784 +Example:
   6.785 +"text/plain"
   6.786 +
   6.787 +Used in: mime-mapping
   6.788 +
   6.789 +</xsd:documentation>
   6.790 +</xsd:annotation>
   6.791 +
   6.792 +    <xsd:restriction base="j2ee:string">
   6.793 +        <xsd:pattern value="[\p{L}\-\p{Nd}]+/[\p{L}\-\p{Nd}\.]+"/>
   6.794 +    </xsd:restriction>
   6.795 +
   6.796 +</xsd:simpleType>
   6.797 +
   6.798 +<!-- **************************************************** -->
   6.799 +
   6.800 +<xsd:complexType name="security-constraintType">
   6.801 +<xsd:annotation>
   6.802 +<xsd:documentation>
   6.803 +
   6.804 +The security-constraintType is used to associate
   6.805 +security constraints with one or more web resource
   6.806 +collections
   6.807 +
   6.808 +Used in: web-app
   6.809 +
   6.810 +</xsd:documentation>
   6.811 +</xsd:annotation>
   6.812 +
   6.813 +    <xsd:sequence>
   6.814 +        <xsd:element name="display-name"
   6.815 +                     type="j2ee:display-nameType"
   6.816 +                     minOccurs="0"
   6.817 +                     maxOccurs="unbounded"/>
   6.818 +        <xsd:element name="web-resource-collection"
   6.819 +                     type="j2ee:web-resource-collectionType"
   6.820 +                     maxOccurs="unbounded"/>
   6.821 +        <xsd:element name="auth-constraint"
   6.822 +                     type="j2ee:auth-constraintType"
   6.823 +                     minOccurs="0"/>
   6.824 +        <xsd:element name="user-data-constraint"
   6.825 +                     type="j2ee:user-data-constraintType"
   6.826 +                     minOccurs="0"/>
   6.827 +    </xsd:sequence>
   6.828 +
   6.829 +</xsd:complexType>
   6.830 +
   6.831 +<!-- **************************************************** -->
   6.832 +
   6.833 +<xsd:complexType name="servlet-mappingType">
   6.834 +<xsd:annotation>
   6.835 +<xsd:documentation>
   6.836 +
   6.837 +The servlet-mappingType defines a mapping between a
   6.838 +servlet and a url pattern.
   6.839 +
   6.840 +Used in: web-app
   6.841 +
   6.842 +</xsd:documentation>
   6.843 +</xsd:annotation>
   6.844 +
   6.845 +    <xsd:sequence>
   6.846 +        <xsd:element name="servlet-name"
   6.847 +                     type="j2ee:servlet-nameType"/>
   6.848 +        <xsd:element name="url-pattern"
   6.849 +                     type="j2ee:url-patternType"/>
   6.850 +    </xsd:sequence>
   6.851 +
   6.852 +</xsd:complexType>
   6.853 +
   6.854 +<!-- **************************************************** -->
   6.855 +
   6.856 +<xsd:simpleType name="servlet-nameType">
   6.857 +<xsd:annotation>
   6.858 +<xsd:documentation>
   6.859 +
   6.860 +The servlet-name element contains the canonical name of the
   6.861 +servlet. Each servlet name is unique within the web
   6.862 +application.
   6.863 +
   6.864 +</xsd:documentation>
   6.865 +</xsd:annotation>
   6.866 +
   6.867 +    <xsd:restriction base="j2ee:string"/>
   6.868 +
   6.869 +</xsd:simpleType>
   6.870 +
   6.871 +<!-- **************************************************** -->
   6.872 +
   6.873 +<xsd:complexType name="servletType">
   6.874 +<xsd:annotation>
   6.875 +<xsd:documentation>
   6.876 +
   6.877 +The servletType is used to declare a servlet.
   6.878 +It contains the declarative data of a
   6.879 +servlet. If a jsp-file is specified and the load-on-startup
   6.880 +element is present, then the JSP should be precompiled and
   6.881 +loaded.
   6.882 +
   6.883 +Used in: web-app
   6.884 +
   6.885 +</xsd:documentation>
   6.886 +</xsd:annotation>
   6.887 +
   6.888 +    <xsd:sequence>
   6.889 +        <xsd:element name="description"
   6.890 +                     type="j2ee:descriptionType"
   6.891 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.892 +        <xsd:element name="display-name"
   6.893 +                     type="j2ee:display-nameType"
   6.894 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.895 +        <xsd:element name="icon"
   6.896 +                     type="j2ee:iconType"
   6.897 +                     minOccurs="0"
   6.898 +                     maxOccurs="unbounded"/>
   6.899 +        <xsd:element name="servlet-name"
   6.900 +                     type="j2ee:servlet-nameType"/>
   6.901 +        <choice>
   6.902 +            <xsd:element name="servlet-class"
   6.903 +                         type="j2ee:fully-qualified-classType">
   6.904 +            <xsd:annotation>
   6.905 +            <xsd:documentation>
   6.906 +
   6.907 +            The servlet-class element contains the fully
   6.908 +            qualified class name of the servlet.
   6.909 +
   6.910 +            </xsd:documentation>
   6.911 +            </xsd:annotation>
   6.912 +            </xsd:element>
   6.913 +
   6.914 +            <xsd:element name="jsp-file"
   6.915 +                         type="j2ee:jsp-fileType"/>
   6.916 +
   6.917 +        </choice>
   6.918 +
   6.919 +        <xsd:element name="init-param"
   6.920 +                     type="j2ee:param-valueType"
   6.921 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.922 +        <xsd:element name="load-on-startup"
   6.923 +                     type="xsd:integer"
   6.924 +                     minOccurs="0">
   6.925 +        <xsd:annotation>
   6.926 +        <xsd:documentation>
   6.927 +
   6.928 +        The load-on-startup element indicates that this
   6.929 +        servlet should be loaded (instantiated and have
   6.930 +        its init() called) on the startup of the web
   6.931 +        application. The optional contents of these
   6.932 +        element must be an integer indicating the order in
   6.933 +        which the servlet should be loaded. If the value
   6.934 +        is a negative integer, or the element is not
   6.935 +        present, the container is free to load the servlet
   6.936 +        whenever it chooses. If the value is a positive
   6.937 +        integer or 0, the container must load and
   6.938 +        initialize the servlet as the application is
   6.939 +        deployed. The container must guarantee that
   6.940 +        servlets marked with lower integers are loaded
   6.941 +        before servlets marked with higher integers. The
   6.942 +        container may choose the order of loading of
   6.943 +        servlets with the same load-on-start-up value.
   6.944 +
   6.945 +        </xsd:documentation>
   6.946 +        </xsd:annotation>
   6.947 +        </xsd:element>
   6.948 +        <xsd:element name="run-as"
   6.949 +                     type="j2ee:run-asType"
   6.950 +                     minOccurs="0"/>
   6.951 +        <xsd:element name="security-role-ref"
   6.952 +                     type="j2ee:security-role-refType"
   6.953 +                     minOccurs="0" maxOccurs="unbounded"/>                     
   6.954 +        <xsd:element name="deployment-extension"
   6.955 +                     type="j2ee:deployment-extensionType"
   6.956 +                     minOccurs="0" maxOccurs="unbounded"/>
   6.957 +    </xsd:sequence>
   6.958 +</xsd:complexType>
   6.959 +
   6.960 +<!-- **************************************************** -->
   6.961 +
   6.962 +<xsd:complexType name="session-configType">
   6.963 +<xsd:annotation>
   6.964 +<xsd:documentation>
   6.965 +
   6.966 +The session-configType defines the session parameters
   6.967 +for this web application.
   6.968 +
   6.969 +Used in: web-app
   6.970 +
   6.971 +</xsd:documentation>
   6.972 +</xsd:annotation>
   6.973 +
   6.974 +    <xsd:sequence>
   6.975 +        <xsd:element name="session-timeout"
   6.976 +                 type="xsd:nonNegativeInteger"
   6.977 +                 minOccurs="0">
   6.978 +        <xsd:annotation>
   6.979 +        <xsd:documentation>
   6.980 +
   6.981 +        The session-timeout element defines the default
   6.982 +        session timeout interval for all sessions created
   6.983 +        in this web application. The specified timeout
   6.984 +        must be expressed in a whole number of minutes.
   6.985 +        If the timeout is 0 or less, the container ensures
   6.986 +        the default behaviour of sessions is never to time
   6.987 +        out. If this element is not specified, the container
   6.988 +        must set its default timeout period.
   6.989 +
   6.990 +        </xsd:documentation>
   6.991 +        </xsd:annotation>
   6.992 +        </xsd:element>
   6.993 +    </xsd:sequence>
   6.994 +
   6.995 +</xsd:complexType>
   6.996 +
   6.997 +<!-- **************************************************** -->
   6.998 +
   6.999 +<xsd:simpleType name="transport-guaranteeType">
  6.1000 +<xsd:annotation>
  6.1001 +<xsd:documentation>
  6.1002 +
  6.1003 +The transport-guaranteeType specifies that the communication
  6.1004 +between client and server should be NONE, INTEGRAL, or
  6.1005 +CONFIDENTIAL. NONE means that the application does not
  6.1006 +require any transport guarantees. A value of INTEGRAL means
  6.1007 +that the application requires that the data sent between the
  6.1008 +client and server be sent in such a way that it can't be
  6.1009 +changed in transit. CONFIDENTIAL means that the application
  6.1010 +requires that the data be transmitted in a fashion that
  6.1011 +prevents other entities from observing the contents of the
  6.1012 +transmission. In most cases, the presence of the INTEGRAL or
  6.1013 +CONFIDENTIAL flag will indicate that the use of SSL is
  6.1014 +required.
  6.1015 +
  6.1016 +Used in: user-data-constraint
  6.1017 +
  6.1018 +</xsd:documentation>
  6.1019 +</xsd:annotation>
  6.1020 +
  6.1021 +    <xsd:restriction base="j2ee:string">
  6.1022 +        <xsd:enumeration value="NONE"/>
  6.1023 +        <xsd:enumeration value="INTEGRAL"/>
  6.1024 +        <xsd:enumeration value="CONFIDENTIAL"/>
  6.1025 +    </xsd:restriction>
  6.1026 +
  6.1027 +</xsd:simpleType>
  6.1028 +
  6.1029 +<!-- **************************************************** -->
  6.1030 +
  6.1031 +<xsd:complexType name="user-data-constraintType">
  6.1032 +<xsd:annotation>
  6.1033 +<xsd:documentation>
  6.1034 +
  6.1035 +The user-data-constraintType is used to indicate how
  6.1036 +data communicated between the client and container should be
  6.1037 +protected.
  6.1038 +
  6.1039 +Used in: security-constraint
  6.1040 +
  6.1041 +</xsd:documentation>
  6.1042 +</xsd:annotation>
  6.1043 +
  6.1044 +    <xsd:sequence>
  6.1045 +        <xsd:element name="description"
  6.1046 +                     type="j2ee:descriptionType"
  6.1047 +                     minOccurs="0"
  6.1048 +                     maxOccurs="unbounded"/>
  6.1049 +        <xsd:element name="transport-guarantee"
  6.1050 +                     type="j2ee:transport-guaranteeType"/>
  6.1051 +    </xsd:sequence>
  6.1052 +
  6.1053 +</xsd:complexType>
  6.1054 +
  6.1055 +<!-- **************************************************** -->
  6.1056 +
  6.1057 +<xsd:simpleType name="web-app-versionType">
  6.1058 +<xsd:annotation>
  6.1059 +<xsd:documentation>
  6.1060 +
  6.1061 +This type contains the recognized versions of
  6.1062 +web-application supported. It is used to designate the
  6.1063 +version of the web application.
  6.1064 +
  6.1065 +Example:
  6.1066 +
  6.1067 +<web-app>
  6.1068 +    <version>2.4</version>
  6.1069 +...
  6.1070 +</web-app>
  6.1071 +
  6.1072 +</xsd:documentation>
  6.1073 +</xsd:annotation>
  6.1074 +
  6.1075 +    <xsd:restriction base="j2ee:string">
  6.1076 +        <xsd:enumeration value="2.4"/>
  6.1077 +    </xsd:restriction>
  6.1078 +
  6.1079 +</xsd:simpleType>
  6.1080 +
  6.1081 +<!-- **************************************************** -->
  6.1082 +
  6.1083 +<xsd:complexType name="web-appType">
  6.1084 +
  6.1085 +    <xsd:sequence>
  6.1086 +        <xsd:element name="description"
  6.1087 +                     type="j2ee:descriptionType"
  6.1088 +                     minOccurs="0"
  6.1089 +                     maxOccurs="unbounded"/>
  6.1090 +        <xsd:element name="display-name"
  6.1091 +                     type="j2ee:display-nameType"
  6.1092 +                     minOccurs="0"
  6.1093 +                     maxOccurs="unbounded"/>
  6.1094 +        <xsd:element name="icon"
  6.1095 +                     type="j2ee:iconType"
  6.1096 +                     minOccurs="0"
  6.1097 +                     maxOccurs="unbounded"/>
  6.1098 +        <xsd:element name="distributable"
  6.1099 +                     type="j2ee:emptyType"
  6.1100 +                     minOccurs="0"/>
  6.1101 +        <xsd:element name="context-param"
  6.1102 +                     type="j2ee:param-valueType"
  6.1103 +                     minOccurs="0" maxOccurs="unbounded">
  6.1104 +        <xsd:annotation>
  6.1105 +        <xsd:documentation>
  6.1106 +
  6.1107 +        The context-param element contains the declaration
  6.1108 +        of a web application's servlet context
  6.1109 +        initialization parameters.
  6.1110 +
  6.1111 +        </xsd:documentation>
  6.1112 +        </xsd:annotation>
  6.1113 +        </xsd:element>
  6.1114 +
  6.1115 +        <xsd:element name="filter"
  6.1116 +                     type="j2ee:filterType"
  6.1117 +                     minOccurs="0" maxOccurs="unbounded">
  6.1118 + 		   <xsd:key name="param-key">
  6.1119 + 		      <xsd:selector xpath="init-param"/>
  6.1120 + 		      <xsd:field xpath="param-name"/>
  6.1121 + 		  </xsd:key>
  6.1122 + 		</xsd:element>
  6.1123 +        <xsd:element name="filter-mapping"
  6.1124 +                     type="j2ee:filter-mappingType"
  6.1125 +                     minOccurs="0"
  6.1126 +                     maxOccurs="unbounded"/>
  6.1127 +        <xsd:element name="listener"
  6.1128 +                     type="j2ee:listenerType"
  6.1129 +                     minOccurs="0"
  6.1130 +                     maxOccurs="unbounded"/>
  6.1131 +        <xsd:element name="servlet"
  6.1132 +                     type="j2ee:servletType"
  6.1133 +                     minOccurs="0"
  6.1134 +                     maxOccurs="unbounded"/>
  6.1135 +        <xsd:element name="servlet-mapping"
  6.1136 +                     type="j2ee:servlet-mappingType"
  6.1137 +                     minOccurs="0"
  6.1138 +                     maxOccurs="unbounded"/>
  6.1139 +        <xsd:element name="session-config"
  6.1140 +                     type="j2ee:session-configType"
  6.1141 +                     minOccurs="0"/>
  6.1142 +        <xsd:element name="mime-mapping"
  6.1143 +                     type="j2ee:mime-mappingType"
  6.1144 +                     minOccurs="0"
  6.1145 +                     maxOccurs="unbounded"/>
  6.1146 +        <xsd:element name="welcome-file-list"
  6.1147 +                     type="j2ee:welcome-file-listType"
  6.1148 +                     minOccurs="0"/>
  6.1149 +        <xsd:element name="error-page"
  6.1150 +                     type="j2ee:error-pageType"
  6.1151 +                     minOccurs="0"
  6.1152 +                     maxOccurs="unbounded"/>
  6.1153 +        <xsd:element name="jsp-config"
  6.1154 +                     type="j2ee:jsp-configType"
  6.1155 +                     minOccurs="0"/>
  6.1156 +        <xsd:element name="resource-env-ref"
  6.1157 +                     type="j2ee:resource-env-refType"
  6.1158 +                     minOccurs="0"
  6.1159 +                     maxOccurs="unbounded"/>
  6.1160 +        <xsd:element name="message-destination-ref"
  6.1161 +                     type="j2ee:message-destination-refType"
  6.1162 +                     minOccurs="0"
  6.1163 +                     maxOccurs="unbounded"/>
  6.1164 +        <xsd:element name="resource-ref"
  6.1165 +                     type="j2ee:resource-refType"
  6.1166 +                     minOccurs="0"
  6.1167 +                     maxOccurs="unbounded"/>
  6.1168 +        <xsd:element name="security-constraint"
  6.1169 +                     type="j2ee:security-constraintType"
  6.1170 +                     minOccurs="0"
  6.1171 +                     maxOccurs="unbounded"/>
  6.1172 +        <xsd:element name="login-config"
  6.1173 +                     type="j2ee:login-configType"
  6.1174 +                     minOccurs="0"/>
  6.1175 +        <xsd:element name="security-role"
  6.1176 +                     type="j2ee:security-roleType"
  6.1177 +                     minOccurs="0"
  6.1178 +                     maxOccurs="unbounded"/>
  6.1179 +        <xsd:element name="env-entry"
  6.1180 +                     type="j2ee:env-entryType"
  6.1181 +                     minOccurs="0"
  6.1182 +                     maxOccurs="unbounded"/>
  6.1183 +        <xsd:element name="ejb-ref"
  6.1184 +                     type="j2ee:ejb-refType"
  6.1185 +                     minOccurs="0"
  6.1186 +                     maxOccurs="unbounded"/>
  6.1187 +        <xsd:element name="ejb-local-ref"
  6.1188 +                     type="j2ee:ejb-local-refType"
  6.1189 +                     minOccurs="0"
  6.1190 +                     maxOccurs="unbounded"/>
  6.1191 +        <xsd:element name="message-destination"
  6.1192 +                     type="j2ee:message-destinationType"
  6.1193 +                     minOccurs="0"
  6.1194 +                     maxOccurs="unbounded"/>
  6.1195 +        <xsd:element name="locale-encoding-mapping-list"
  6.1196 +                     type="j2ee:locale-encoding-mapping-listType"
  6.1197 +                     minOccurs="0"
  6.1198 +                     maxOccurs="1"/>                     
  6.1199 +        <xsd:element name="deployment-extension"
  6.1200 +                     type="j2ee:deployment-extensionType"
  6.1201 +                     minOccurs="0"
  6.1202 +                     maxOccurs="unbounded"/>
  6.1203 +    </xsd:sequence>
  6.1204 +
  6.1205 +    <xsd:attribute name="version"
  6.1206 +                   type="j2ee:web-app-versionType"
  6.1207 +                   use="required"/>
  6.1208 +
  6.1209 +</xsd:complexType>
  6.1210 +
  6.1211 +<!-- **************************************************** -->
  6.1212 +
  6.1213 +<xsd:complexType name="web-resource-collectionType">
  6.1214 +<xsd:annotation>
  6.1215 +<xsd:documentation>
  6.1216 +
  6.1217 +The web-resource-collectionType is used to identify a subset
  6.1218 +of the resources and HTTP methods on those resources within
  6.1219 +a web application to which a security constraint applies. If
  6.1220 +no HTTP methods are specified, then the security constraint
  6.1221 +applies to all HTTP methods.
  6.1222 +
  6.1223 +Used in: security-constraint
  6.1224 +
  6.1225 +</xsd:documentation>
  6.1226 +</xsd:annotation>
  6.1227 +
  6.1228 +    <xsd:sequence>
  6.1229 +        <xsd:element name="web-resource-name"
  6.1230 +                     type="j2ee:string">
  6.1231 +        <xsd:annotation>
  6.1232 +        <xsd:documentation>
  6.1233 +
  6.1234 +        The web-resource-name contains the name of this web
  6.1235 +        resource collection.
  6.1236 +
  6.1237 +        </xsd:documentation>
  6.1238 +        </xsd:annotation>
  6.1239 +        </xsd:element>
  6.1240 +        <xsd:element name="description"
  6.1241 +                     type="j2ee:descriptionType"
  6.1242 +                     minOccurs="0"
  6.1243 +                     maxOccurs="unbounded"/>
  6.1244 +        <xsd:element name="url-pattern"
  6.1245 +                     type="j2ee:url-patternType"
  6.1246 +                     maxOccurs="unbounded"/>
  6.1247 +        <xsd:element name="http-method"
  6.1248 +                     type="j2ee:http-methodType"
  6.1249 +                     minOccurs="0" maxOccurs="unbounded"/>
  6.1250 +    </xsd:sequence>
  6.1251 +
  6.1252 +</xsd:complexType>
  6.1253 +
  6.1254 +<!-- **************************************************** -->
  6.1255 +
  6.1256 +<xsd:complexType name="welcome-file-listType">
  6.1257 +<xsd:annotation>
  6.1258 +<xsd:documentation>
  6.1259 +
  6.1260 +The welcome-file-list contains an ordered list of welcome
  6.1261 +files elements.
  6.1262 +
  6.1263 +Used in: web-app
  6.1264 +
  6.1265 +</xsd:documentation>
  6.1266 +</xsd:annotation>
  6.1267 +
  6.1268 +    <xsd:sequence>
  6.1269 +        <xsd:element name="welcome-file"
  6.1270 +                     type="j2ee:string"
  6.1271 +                     maxOccurs="unbounded">
  6.1272 +        <xsd:annotation>
  6.1273 +        <xsd:documentation>
  6.1274 +
  6.1275 +        The welcome-file element contains file name to use
  6.1276 +        as a default welcome file, such as index.html
  6.1277 +
  6.1278 +        </xsd:documentation>
  6.1279 +        </xsd:annotation>
  6.1280 +        </xsd:element>
  6.1281 +    </xsd:sequence>
  6.1282 +
  6.1283 +</xsd:complexType>
  6.1284 +
  6.1285 +</xsd:schema>
  6.1286 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.java	Wed Jan 15 21:24:04 2003 +0000
     7.3 @@ -0,0 +1,56 @@
     7.4 +/*
     7.5 + *	TestWebAppDelegatorBaseBean - test the basic features.
     7.6 + *
     7.7 + *	The following test assumes that we know the content of the
     7.8 + *	graph as we get elements, add and change them. Therefore, the TestWebAppDelegatorBaseBean.xml
     7.9 + *	file and this java test should be kept in sync.
    7.10 + *
    7.11 + * 	Test the following:
    7.12 + *
    7.13 + *	single String: get/set/remove/set/get
    7.14 + *	boolean (from true): get/set true/get/set false/get/set true/get
    7.15 + *	boolean (from false): get/set false/get/set true/get/set false/get
    7.16 + *	String[]: get/set (null & !null)/add/remove
    7.17 + *	Bean: remove/set(null)/create bean and graph of beans/set/add
    7.18 + *
    7.19 + */
    7.20 +
    7.21 +import java.io.*;
    7.22 +import java.util.*;
    7.23 +import org.w3c.dom.*;
    7.24 +
    7.25 +import webapp.*;
    7.26 +
    7.27 +
    7.28 +public class TestWebAppDelegatorBaseBean extends BaseTest {
    7.29 +    public static void main(String[] argv) {
    7.30 +        TestWebAppDelegatorBaseBean o = new TestWebAppDelegatorBaseBean();
    7.31 +        if (argv.length > 0)
    7.32 +            o.setDocumentDir(argv[0]);
    7.33 +        try {
    7.34 +            o.run();
    7.35 +        } catch (Exception e) {
    7.36 +            e.printStackTrace();
    7.37 +            System.exit(1);
    7.38 +        }
    7.39 +        System.exit(0);
    7.40 +    }
    7.41 +    
    7.42 +    public void run() throws Exception {
    7.43 +        WebAppDelegator webApp;
    7.44 +
    7.45 +        this.readDocument();
    7.46 +
    7.47 +        out("creating the bean graph");
    7.48 +        webApp = WebAppDelegator.createGraph(doc);
    7.49 +
    7.50 +        //	Check that we can read the graph and it is complete
    7.51 +        out("bean graph created");
    7.52 +        webApp.write(out);
    7.53 +
    7.54 +        out("making some minor changes");
    7.55 +        webApp.setDescription(0, "Changed the description");
    7.56 +        webApp.getFilter(0).setFilterClass("foo");
    7.57 +        webApp.write(out);
    7.58 +    }
    7.59 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.xml	Wed Jan 15 21:24:04 2003 +0000
     8.3 @@ -0,0 +1,9 @@
     8.4 +<?xml version='1.0'?>
     8.5 +
     8.6 +<web-app>
     8.7 +  <description>This is my Web App</description>
     8.8 +  <display-name>MyWebApp</display-name>
     8.9 +  <filter>
    8.10 +	<filter-name>Bob</filter-name>
    8.11 +  </filter>
    8.12 +</web-app>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/schema2beans/test/unit/src/data/TestWebAppDelegatorBaseBean.xsd	Wed Jan 15 21:24:04 2003 +0000
     9.3 @@ -0,0 +1,1283 @@
     9.4 +<?xml version="1.0" encoding="UTF-8"?>
     9.5 +<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
     9.6 +     targetNamespace="http://java.sun.com/xml/ns/j2ee"
     9.7 +     xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
     9.8 +     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     9.9 +     elementFormDefault="qualified"
    9.10 +     attributeFormDefault="unqualified"
    9.11 +     version="2.4">
    9.12 +<xsd:annotation>
    9.13 +<xsd:documentation>
    9.14 +@(#)web-app_2_4.xsds	1.34 02/08/01
    9.15 +</xsd:documentation>
    9.16 +</xsd:annotation>
    9.17 +
    9.18 +<xsd:annotation>
    9.19 +<xsd:documentation>
    9.20 +
    9.21 +Copyright 2002 Sun Microsystems, Inc., 901 San Antonio
    9.22 +Road, Palo Alto, California 94303, U.S.A. All rights
    9.23 +reserved.
    9.24 +
    9.25 +Sun Microsystems, Inc. has intellectual property rights
    9.26 +relating to technology described in this document. In
    9.27 +particular, and without limitation, these intellectual
    9.28 +property rights may include one or more of the U.S. patents
    9.29 +listed at http://www.sun.com/patents and one or more
    9.30 +additional patents or pending patent applications in the
    9.31 +U.S. and other countries.
    9.32 +
    9.33 +This document and the technology which it describes are
    9.34 +distributed under licenses restricting their use, copying,
    9.35 +distribution, and decompilation. No part of this document
    9.36 +may be reproduced in any form by any means without prior
    9.37 +written authorization of Sun and its licensors, if any.
    9.38 +
    9.39 +Third-party software, including font technology, is
    9.40 +copyrighted and licensed from Sun suppliers.
    9.41 +
    9.42 +Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
    9.43 +JavaServer Pages, Enterprise JavaBeans and the Java Coffee
    9.44 +Cup logo are trademarks or registered trademarks of Sun
    9.45 +Microsystems, Inc. in the U.S. and other countries.
    9.46 +
    9.47 +Federal Acquisitions: Commercial Software - Government Users
    9.48 +Subject to Standard License Terms and Conditions.
    9.49 +
    9.50 +</xsd:documentation>
    9.51 +</xsd:annotation>
    9.52 +
    9.53 +<xsd:annotation>
    9.54 +<xsd:documentation>
    9.55 +
    9.56 +This is the XML Schema for the Servlet 2.4 deployment
    9.57 +descriptor.  All Servlet deployment descriptors must
    9.58 +indicate the web application schema by using the J2EE
    9.59 +namespace:
    9.60 +
    9.61 +http://java.sun.com/xml/ns/j2ee
    9.62 +
    9.63 +and by indicating the version of the schema by
    9.64 +using the version element as shown below:
    9.65 +
    9.66 +    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    9.67 +     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    9.68 +     xsi:schemaLocation="..."
    9.69 +     version="2.4">
    9.70 +    ...
    9.71 +    </web-app>
    9.72 +
    9.73 +The instance documents may indicate the published version of
    9.74 +the schema using the xsi:schemaLocation attribute for J2EE
    9.75 +namespace with the following location:
    9.76 +
    9.77 +http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
    9.78 +
    9.79 +</xsd:documentation>
    9.80 +</xsd:annotation>
    9.81 +
    9.82 +<xsd:annotation>
    9.83 +<xsd:documentation>
    9.84 +
    9.85 +The following conventions apply to all J2EE
    9.86 +deployment descriptor elements unless indicated otherwise.
    9.87 +
    9.88 +- In elements that specify a pathname to a file within the
    9.89 +  same JAR file, relative filenames (i.e., those not
    9.90 +  starting with "/") are considered relative to the root of
    9.91 +  the JAR file's namespace.  Absolute filenames (i.e., those
    9.92 +  starting with "/") also specify names in the root of the
    9.93 +  JAR file's namespace.  In general, relative names are
    9.94 +  preferred.  The exception is .war files where absolute
    9.95 +  names are preferred for consistency with the Servlet API.
    9.96 +
    9.97 +</xsd:documentation>
    9.98 +</xsd:annotation>
    9.99 +
   9.100 +<xsd:include schemaLocation="j2ee_1_4.xsd"/>
   9.101 +<xsd:include schemaLocation="jsp_2_0.xsd"/>
   9.102 +
   9.103 +
   9.104 +<!-- **************************************************** -->
   9.105 +
   9.106 +
   9.107 +<xsd:element name="web-app" type="j2ee:web-appType">
   9.108 +    <xsd:annotation>
   9.109 +    <xsd:documentation>
   9.110 +
   9.111 +    The web-app element is the root of the deployment
   9.112 +    descriptor for a web application.
   9.113 +
   9.114 +    </xsd:documentation>
   9.115 +    </xsd:annotation>
   9.116 +
   9.117 +    <xsd:unique name="servlet-name-uniqueness">
   9.118 +    <xsd:annotation>
   9.119 +    <xsd:documentation>
   9.120 +
   9.121 +    The servlet element contains the name of a servlet.
   9.122 +    The name must be unique within the web application.
   9.123 +
   9.124 +    </xsd:documentation>
   9.125 +    </xsd:annotation>
   9.126 +        <xsd:selector xpath="j2ee:servlet"/>
   9.127 +        <xsd:field    xpath="j2ee:servlet-name"/>
   9.128 +    </xsd:unique>
   9.129 +
   9.130 +    <xsd:unique name="filter-name-uniqueness">
   9.131 +    <xsd:annotation>
   9.132 +    <xsd:documentation>
   9.133 +
   9.134 +    The filter element contains the name of a filter.
   9.135 +    The name must be unique within the web application.
   9.136 +
   9.137 +    </xsd:documentation>
   9.138 +    </xsd:annotation>
   9.139 +        <xsd:selector xpath="j2ee:filter"/>
   9.140 +        <xsd:field    xpath="j2ee:filter-name"/>
   9.141 +    </xsd:unique>
   9.142 +
   9.143 +    <xsd:unique name="ejb-local-ref-name-uniqueness">
   9.144 +    <xsd:annotation>
   9.145 +    <xsd:documentation>
   9.146 +
   9.147 +    The ejb-local-ref-name element contains the name of an EJB
   9.148 +    reference. The EJB reference is an entry in the web
   9.149 +    application's environment and is relative to the
   9.150 +    java:comp/env context.  The name must be unique within
   9.151 +    the web application.
   9.152 +
   9.153 +    It is recommended that name is prefixed with "ejb/".
   9.154 +
   9.155 +    </xsd:documentation>
   9.156 +    </xsd:annotation>
   9.157 +        <xsd:selector xpath="j2ee:ejb-local-ref"/>
   9.158 +        <xsd:field    xpath="j2ee:ejb-ref-name"/>
   9.159 +    </xsd:unique>
   9.160 +
   9.161 +    <xsd:unique name="ejb-ref-name-uniqueness">
   9.162 +    <xsd:annotation>
   9.163 +    <xsd:documentation>
   9.164 +
   9.165 +    The ejb-ref-name element contains the name of an EJB
   9.166 +    reference. The EJB reference is an entry in the web
   9.167 +    application's environment and is relative to the
   9.168 +    java:comp/env context.  The name must be unique within
   9.169 +    the web application.
   9.170 +
   9.171 +    It is recommended that name is prefixed with "ejb/".
   9.172 +
   9.173 +    </xsd:documentation>
   9.174 +    </xsd:annotation>
   9.175 +        <xsd:selector xpath="j2ee:ejb-ref"/>
   9.176 +        <xsd:field    xpath="j2ee:ejb-ref-name"/>
   9.177 +    </xsd:unique>
   9.178 +
   9.179 +    <xsd:unique name="resource-env-ref-uniqueness">
   9.180 +    <xsd:annotation>
   9.181 +    <xsd:documentation>
   9.182 +
   9.183 +    The resource-env-ref-name element specifies the name of
   9.184 +    a resource environment reference; its value is the
   9.185 +    environment entry name used in the web application code.
   9.186 +    The name is a JNDI name relative to the java:comp/env
   9.187 +    context and must be unique within a web application.
   9.188 +
   9.189 +    </xsd:documentation>
   9.190 +    </xsd:annotation>
   9.191 +        <xsd:selector xpath="j2ee:resource-env-ref"/>
   9.192 +        <xsd:field    xpath="j2ee:resource-env-ref-name"/>
   9.193 +    </xsd:unique>
   9.194 +
   9.195 +    <xsd:unique name="message-destination-ref-uniqueness">
   9.196 +    <xsd:annotation>
   9.197 +    <xsd:documentation>
   9.198 +
   9.199 +    The message-destination-ref-name element specifies the name of
   9.200 +    a message destination reference; its value is the
   9.201 +    environment entry name used in the web application code.
   9.202 +    The name is a JNDI name relative to the java:comp/env
   9.203 +    context and must be unique within a web application.
   9.204 +
   9.205 +    </xsd:documentation>
   9.206 +    </xsd:annotation>
   9.207 +        <xsd:selector xpath="j2ee:message-destination-ref"/>
   9.208 +        <xsd:field    xpath="j2ee:message-destination-ref-name"/>
   9.209 +    </xsd:unique>
   9.210 +
   9.211 +    <xsd:unique name="res-ref-name-uniqueness">
   9.212 +    <xsd:annotation>
   9.213 +    <xsd:documentation>
   9.214 +
   9.215 +    The res-ref-name element specifies the name of a
   9.216 +    resource manager connection factory reference.  The name
   9.217 +    is a JNDI name relative to the java:comp/env context.
   9.218 +    The name must be unique within a web application.
   9.219 +
   9.220 +    </xsd:documentation>
   9.221 +    </xsd:annotation>
   9.222 +        <xsd:selector xpath="j2ee:resource-ref"/>
   9.223 +        <xsd:field    xpath="j2ee:res-ref-name"/>
   9.224 +    </xsd:unique>
   9.225 +
   9.226 +    <xsd:unique name="env-entry-name-uniqueness">
   9.227 +    <xsd:annotation>
   9.228 +    <xsd:documentation>
   9.229 +
   9.230 +    The env-entry-name element contains the name of a web
   9.231 +    application's environment entry.  The name is a JNDI
   9.232 +    name relative to the java:comp/env context.  The name
   9.233 +    must be unique within a web application.
   9.234 +
   9.235 +    </xsd:documentation>
   9.236 +    </xsd:annotation>
   9.237 +
   9.238 +        <xsd:selector xpath="j2ee:env-entry"/>
   9.239 +        <xsd:field    xpath="j2ee:env-entry-name"/>
   9.240 +        </xsd:unique>
   9.241 +
   9.242 +    <xsd:key name="role-name-key">
   9.243 +    <xsd:annotation>
   9.244 +    <xsd:documentation>
   9.245 +
   9.246 +    A role-name-key is specified to allow the references
   9.247 +    from the security-role-refs.
   9.248 +
   9.249 +    </xsd:documentation>
   9.250 +    </xsd:annotation>
   9.251 +        <xsd:selector xpath="j2ee:security-role"/>
   9.252 +        <xsd:field    xpath="j2ee:role-name"/>
   9.253 +    </xsd:key>
   9.254 +
   9.255 +    <xsd:keyref name="role-name-references"
   9.256 +            refer="j2ee:role-name-key">
   9.257 +    <xsd:annotation>
   9.258 +    <xsd:documentation>
   9.259 +
   9.260 +    The keyref indicates the references from
   9.261 +    security-role-ref to a specified role-name.
   9.262 +
   9.263 +    </xsd:documentation>
   9.264 +    </xsd:annotation>
   9.265 +        <xsd:selector xpath="j2ee:servlet/j2ee:security-role-ref"/>
   9.266 +        <xsd:field    xpath="j2ee:role-link"/>
   9.267 +    </xsd:keyref>
   9.268 +
   9.269 +</xsd:element>
   9.270 +
   9.271 +
   9.272 +<!-- **************************************************** -->
   9.273 +
   9.274 +<xsd:complexType name="auth-constraintType">
   9.275 +<xsd:annotation>
   9.276 +<xsd:documentation>
   9.277 +
   9.278 +The auth-constraintType indicates the user roles that
   9.279 +should be permitted access to this resource
   9.280 +collection. The role-name used here must either correspond
   9.281 +to the role-name of one of the security-role elements
   9.282 +defined for this web application, or be the specially
   9.283 +reserved role-name "*" that is a compact syntax for
   9.284 +indicating all roles in the web application. If both "*"
   9.285 +and rolenames appear, the container interprets this as all
   9.286 +roles.  If no roles are defined, no user is allowed access
   9.287 +to the portion of the web application described by the
   9.288 +containing security-constraint.  The container matches
   9.289 +role names case sensitively when determining access.
   9.290 +
   9.291 +</xsd:documentation>
   9.292 +</xsd:annotation>
   9.293 +
   9.294 +    <xsd:sequence>
   9.295 +        <xsd:element name="description"
   9.296 +                 type="j2ee:descriptionType"
   9.297 +                 minOccurs="0" maxOccurs="unbounded"/>
   9.298 +        <xsd:element name="role-name"
   9.299 +                 type="j2ee:role-nameType"
   9.300 +                 minOccurs="0" maxOccurs="unbounded"/>
   9.301 +    </xsd:sequence>
   9.302 +
   9.303 +</xsd:complexType>
   9.304 +
   9.305 +<!-- **************************************************** -->
   9.306 +
   9.307 +<xsd:simpleType name="auth-methodType">
   9.308 +<xsd:annotation>
   9.309 +<xsd:documentation>
   9.310 +
   9.311 +The auth-methodType is used to configure the authentication
   9.312 +mechanism for the web application. As a prerequisite to
   9.313 +gaining access to any web resources which are protected by
   9.314 +an authorization constraint, a user must have authenticated
   9.315 +using the configured mechanism. Legal values are "BASIC",
   9.316 +"DIGEST", "FORM", or "CLIENT-CERT".
   9.317 +
   9.318 +Used in: login-config
   9.319 +
   9.320 +</xsd:documentation>
   9.321 +</xsd:annotation>
   9.322 +
   9.323 +    <xsd:restriction base="j2ee:string">
   9.324 +        <xsd:enumeration value="BASIC"/>
   9.325 +        <xsd:enumeration value="DIGEST"/>
   9.326 +        <xsd:enumeration value="FORM"/>
   9.327 +        <xsd:enumeration value="CLIENT-CERT"/>
   9.328 +    </xsd:restriction>
   9.329 +
   9.330 +</xsd:simpleType>
   9.331 +
   9.332 +<!-- **************************************************** -->
   9.333 +
   9.334 +<xsd:simpleType name="dispatcherType">
   9.335 +<xsd:annotation>
   9.336 +<xsd:documentation>
   9.337 +
   9.338 +The dispatcher has three legal values, FORWARD and REQUEST
   9.339 +and INCLUDE. A value of FORWARD means the Filter
   9.340 +will be applied under RequestDispatcher.forward() calls.
   9.341 +A value of REQUEST means the Filter will be applied
   9.342 +under ordinary client calls to the path or servlet. A value of
   9.343 +INCLUDE means the Filter will be applied under
   9.344 +RequestDispatcher.include() calls.
   9.345 +The absence of any dispatcher elements in a
   9.346 +filter-mapping indicates a default of applying
   9.347 +filters only under ordinary client calls to the path or servlet.
   9.348 +
   9.349 +</xsd:documentation>
   9.350 +</xsd:annotation>
   9.351 +
   9.352 +    <xsd:restriction base="j2ee:string">
   9.353 +        <xsd:enumeration value="FORWARD"/>
   9.354 +    <xsd:enumeration value="INCLUDE"/>
   9.355 +    <xsd:enumeration value="REQUEST"/>
   9.356 +
   9.357 +    </xsd:restriction>
   9.358 +
   9.359 +</xsd:simpleType>
   9.360 +
   9.361 +<!-- **************************************************** -->
   9.362 +
   9.363 +<xsd:simpleType name="error-codeType">
   9.364 +<xsd:annotation>
   9.365 +<xsd:documentation>
   9.366 +
   9.367 +The error-code contains an HTTP error code, ex: 404
   9.368 +
   9.369 +Used in: error-page
   9.370 +
   9.371 +</xsd:documentation>
   9.372 +</xsd:annotation>
   9.373 +
   9.374 +    <xsd:restriction base="positiveInteger"/>
   9.375 +
   9.376 +</xsd:simpleType>
   9.377 +
   9.378 +<!-- **************************************************** -->
   9.379 +
   9.380 +<xsd:complexType name="error-pageType">
   9.381 +<xsd:annotation>
   9.382 +<xsd:documentation>
   9.383 +
   9.384 +The error-pageType contains a mapping between an error code
   9.385 +or exception type to the path of a resource in the web
   9.386 +application.
   9.387 +
   9.388 +Used in: web-app
   9.389 +
   9.390 +</xsd:documentation>
   9.391 +</xsd:annotation>
   9.392 +
   9.393 +    <xsd:sequence>
   9.394 +        <choice>
   9.395 +        <xsd:element name="error-code"
   9.396 +                     type="j2ee:error-codeType"/>
   9.397 +
   9.398 +        <xsd:element name="exception-type"
   9.399 +                     type="j2ee:fully-qualified-classType">
   9.400 +        <xsd:annotation>
   9.401 +        <xsd:documentation>
   9.402 +
   9.403 +        The exception-type contains a fully qualified class
   9.404 +        name of a Java exception type.
   9.405 +
   9.406 +        </xsd:documentation>
   9.407 +        </xsd:annotation>
   9.408 +        </xsd:element>
   9.409 +        </choice>
   9.410 +
   9.411 +        <xsd:element name="location"
   9.412 +                     type="j2ee:pathType">
   9.413 +        <xsd:annotation>
   9.414 +        <xsd:documentation>
   9.415 +
   9.416 +        The location element contains the location of the
   9.417 +        resource in the web application relative to the root of
   9.418 +        the web application. The value of the location must have
   9.419 +        a leading `/'.
   9.420 +
   9.421 +        </xsd:documentation>
   9.422 +        </xsd:annotation>
   9.423 +        </xsd:element>
   9.424 +    </xsd:sequence>
   9.425 +
   9.426 +</xsd:complexType>
   9.427 +
   9.428 +<!-- **************************************************** -->
   9.429 +
   9.430 +<xsd:complexType name="filter-mappingType">
   9.431 +<xsd:annotation>
   9.432 +<xsd:documentation>
   9.433 +
   9.434 +Declaration of the filter mappings in this web
   9.435 +application is done by using filter-mappingType.
   9.436 +The container uses the filter-mapping
   9.437 +declarations to decide which filters to apply to a request,
   9.438 +and in what order. The container matches the request URI to
   9.439 +a Servlet in the normal way. To determine which filters to
   9.440 +apply it matches filter-mapping declarations either on
   9.441 +servlet-name, or on url-pattern for each filter-mapping
   9.442 +element, depending on which style is used. The order in
   9.443 +which filters are invoked is the order in which
   9.444 +filter-mapping declarations that match a request URI for a
   9.445 +servlet appear in the list of filter-mapping elements.The
   9.446 +filter-name value must be the value of the filter-name
   9.447 +sub-elements of one of the filter declarations in the
   9.448 +deployment descriptor.
   9.449 +
   9.450 +</xsd:documentation>
   9.451 +</xsd:annotation>
   9.452 +
   9.453 +    <xsd:sequence>
   9.454 +        <xsd:element name="filter-name"
   9.455 +                 type="j2ee:filter-nameType"/>
   9.456 +        <choice>
   9.457 +            <xsd:element name="url-pattern"
   9.458 +                     type="j2ee:url-patternType"/>
   9.459 +            <xsd:element name="servlet-name"
   9.460 +                     type="j2ee:servlet-nameType"/>
   9.461 +        </choice>
   9.462 +        <xsd:element name="dispatcher"
   9.463 +                     type="j2ee:dispatcherType"
   9.464 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.465 +    </xsd:sequence>
   9.466 +
   9.467 +</xsd:complexType>
   9.468 +
   9.469 +<!-- **************************************************** -->
   9.470 +
   9.471 +<xsd:simpleType name="filter-nameType">
   9.472 +<xsd:annotation>
   9.473 +<xsd:documentation>
   9.474 +
   9.475 +The logical name of the filter is declare
   9.476 +by using filter-nameType. This name is used to map the
   9.477 +filter.  Each filter name is unique within the web
   9.478 +application.
   9.479 +
   9.480 +Used in: filter, filter-mapping
   9.481 +
   9.482 +</xsd:documentation>
   9.483 +</xsd:annotation>
   9.484 +
   9.485 +    <xsd:restriction base="j2ee:string"/>
   9.486 +
   9.487 +</xsd:simpleType>
   9.488 +
   9.489 +<!-- **************************************************** -->
   9.490 +
   9.491 +<xsd:complexType name="filterType">
   9.492 +<xsd:annotation>
   9.493 +<xsd:documentation>
   9.494 +
   9.495 +The filterType is used to declare a filter in the web
   9.496 +application. The filter is mapped to either a servlet or a
   9.497 +URL pattern in the filter-mapping element, using the
   9.498 +filter-name value to reference. Filters can access the
   9.499 +initialization parameters declared in the deployment
   9.500 +descriptor at runtime via the FilterConfig interface.
   9.501 +
   9.502 +Used in: web-app
   9.503 +
   9.504 +</xsd:documentation>
   9.505 +</xsd:annotation>
   9.506 +
   9.507 +    <xsd:sequence>
   9.508 +        <xsd:element name="description"
   9.509 +                     type="j2ee:descriptionType"
   9.510 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.511 +        <xsd:element name="display-name"
   9.512 +                     type="j2ee:display-nameType"
   9.513 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.514 +        <xsd:element name="icon"
   9.515 +                     type="j2ee:iconType"
   9.516 +                     minOccurs="0"
   9.517 +                     maxOccurs="unbounded"/>
   9.518 +        <xsd:element name="filter-name"
   9.519 +                     type="j2ee:filter-nameType"/>
   9.520 +        <xsd:element name="filter-class"
   9.521 +                     type="j2ee:fully-qualified-classType">
   9.522 +        <xsd:annotation>
   9.523 +        <xsd:documentation>
   9.524 +
   9.525 +        The fully qualified classname of the filter.
   9.526 +
   9.527 +        </xsd:documentation>
   9.528 +        </xsd:annotation>
   9.529 +        </xsd:element>
   9.530 +
   9.531 +        <xsd:element name="init-param"
   9.532 +                     type="j2ee:param-valueType"
   9.533 +                     minOccurs="0" maxOccurs="unbounded">
   9.534 +        <xsd:annotation>
   9.535 +        <xsd:documentation>
   9.536 +
   9.537 +        The init-param element contains a name/value pair as
   9.538 +        an initialization param of a servlet filter
   9.539 +
   9.540 +        </xsd:documentation>
   9.541 +        </xsd:annotation>
   9.542 +        </xsd:element>
   9.543 +    </xsd:sequence>
   9.544 +
   9.545 +</xsd:complexType>
   9.546 +
   9.547 +<!-- **************************************************** -->
   9.548 +
   9.549 +<xsd:complexType name="form-login-configType">
   9.550 +<xsd:annotation>
   9.551 +<xsd:documentation>
   9.552 +
   9.553 +The form-login-configType specifies the login and error
   9.554 +pages that should be used in form based login. If form based
   9.555 +authentication is not used, these elements are ignored.
   9.556 +
   9.557 +Used in: login-config
   9.558 +
   9.559 +</xsd:documentation>
   9.560 +</xsd:annotation>
   9.561 +
   9.562 +    <xsd:sequence>
   9.563 +
   9.564 +        <xsd:element name="form-login-page"
   9.565 +                 type="j2ee:war-pathType">
   9.566 +        <xsd:annotation>
   9.567 +        <xsd:documentation>
   9.568 +
   9.569 +        The form-login-page element defines the location in the web app
   9.570 +        where the page that can be used for login can be found.
   9.571 +        The path begins with a leading / and is
   9.572 +        interpreted relative to the root of the WAR.
   9.573 +
   9.574 +        </xsd:documentation>
   9.575 +        </xsd:annotation>
   9.576 +        </xsd:element>
   9.577 +
   9.578 +        <xsd:element name="form-error-page"
   9.579 +                 type="j2ee:war-pathType">
   9.580 +        <xsd:annotation>
   9.581 +        <xsd:documentation>
   9.582 +
   9.583 +        The form-error-page element defines the location in
   9.584 +        the web app where the error page that is displayed
   9.585 +        when login is not successful can be found.
   9.586 +        The path begins with a leading / and is interpreted
   9.587 +        relative to the root of the WAR.
   9.588 +
   9.589 +        </xsd:documentation>
   9.590 +        </xsd:annotation>
   9.591 +        </xsd:element>
   9.592 +
   9.593 +    </xsd:sequence>
   9.594 +
   9.595 +</xsd:complexType>
   9.596 +
   9.597 +<!-- **************************************************** -->
   9.598 +
   9.599 +<xsd:simpleType name="http-methodType">
   9.600 +<xsd:annotation>
   9.601 +
   9.602 +<xsd:documentation>
   9.603 +The http-method contains an HTTP method recognized by the web-app, i.e.
   9.604 +(GET | POST |...).
   9.605 +
   9.606 +</xsd:documentation>
   9.607 +</xsd:annotation>
   9.608 +
   9.609 +    <xsd:restriction base="j2ee:string">
   9.610 +        <xsd:enumeration value="GET"/>
   9.611 +        <xsd:enumeration value="POST"/>
   9.612 +        <xsd:enumeration value="PUT"/>
   9.613 +        <xsd:enumeration value="DELETE"/>
   9.614 +        <xsd:enumeration value="HEAD"/>
   9.615 +        <xsd:enumeration value="OPTIONS"/>
   9.616 +        <xsd:enumeration value="TRACE"/>
   9.617 +    </xsd:restriction>
   9.618 +
   9.619 +</xsd:simpleType>
   9.620 +
   9.621 +<!-- **************************************************** -->
   9.622 +
   9.623 +<xsd:complexType name="listenerType">
   9.624 +<xsd:annotation>
   9.625 +<xsd:documentation>
   9.626 +
   9.627 +The listenerType indicates the deployment properties for a web
   9.628 +application listener bean.
   9.629 +
   9.630 +Used in: web-app:listenerType
   9.631 +
   9.632 +</xsd:documentation>
   9.633 +</xsd:annotation>
   9.634 +
   9.635 +    <xsd:sequence>
   9.636 +        <xsd:element name="description"
   9.637 +                     type="j2ee:descriptionType"
   9.638 +                     minOccurs="0"
   9.639 +                     maxOccurs="unbounded"/>
   9.640 +        <xsd:element name="display-name"
   9.641 +                     type="j2ee:display-nameType"
   9.642 +                     minOccurs="0"
   9.643 +                     maxOccurs="unbounded"/>
   9.644 +        <xsd:element name="icon"
   9.645 +                     type="j2ee:iconType"
   9.646 +                     minOccurs="0"
   9.647 +                     maxOccurs="unbounded"/>
   9.648 +        <xsd:element name="listener-class"
   9.649 +                     type="j2ee:fully-qualified-classType">
   9.650 +        <xsd:annotation>
   9.651 +        <xsd:documentation>
   9.652 +
   9.653 +        The listener-class element declares a class in the
   9.654 +        application must be registered as a web
   9.655 +        application listener bean. The value is the fully
   9.656 +        qualified classname of the listener class.
   9.657 +
   9.658 +        </xsd:documentation>
   9.659 +        </xsd:annotation>
   9.660 +        </xsd:element>
   9.661 +    </xsd:sequence>
   9.662 +
   9.663 +</xsd:complexType>
   9.664 +
   9.665 +<!-- **************************************************** -->
   9.666 +
   9.667 +<xsd:complexType name="locale-encoding-mapping-listType">
   9.668 +<xsd:annotation>
   9.669 +<xsd:documentation>
   9.670 +
   9.671 +The locale-encoding-mapping-list contains one or more
   9.672 +locale-encoding-mapping(s).
   9.673 +
   9.674 +</xsd:documentation>
   9.675 +</xsd:annotation>
   9.676 +
   9.677 +<xsd:sequence>
   9.678 +    <xsd:element name="locale-encoding-mapping"
   9.679 +        type="j2ee:locale-encoding-mappingType"
   9.680 +        maxOccurs="unbounded"/>
   9.681 +</xsd:sequence>
   9.682 +</xsd:complexType>
   9.683 +
   9.684 +<!-- **************************************************** -->
   9.685 +
   9.686 +<xsd:complexType name="locale-encoding-mappingType">
   9.687 +<xsd:annotation>
   9.688 +<xsd:documentation>
   9.689 +
   9.690 +The locale-encoding-mapping contains locale name and
   9.691 +encoding name. The locale name must be either "Language-code",
   9.692 +such as "ja", defined by ISO-639 or "Language-code_Country-code",
   9.693 +such as "ja_JP".  "Country code" is defined by ISO-3166.
   9.694 +
   9.695 +</xsd:documentation>
   9.696 +</xsd:annotation>
   9.697 +
   9.698 +<xsd:sequence>
   9.699 +    <xsd:element name="locale"
   9.700 +        type="j2ee:string"/>
   9.701 +    <xsd:element name="encoding"
   9.702 +        type="j2ee:string"/>
   9.703 +</xsd:sequence>
   9.704 +</xsd:complexType>
   9.705 +
   9.706 +<!-- **************************************************** -->
   9.707 +
   9.708 +<xsd:complexType name="login-configType">
   9.709 +<xsd:annotation>
   9.710 +<xsd:documentation>
   9.711 +
   9.712 +The login-configType is used to configure the authentication
   9.713 +method that should be used, the realm name that should be
   9.714 +used for this application, and the attributes that are
   9.715 +needed by the form login mechanism.
   9.716 +
   9.717 +Used in: web-app
   9.718 +
   9.719 +</xsd:documentation>
   9.720 +</xsd:annotation>
   9.721 +
   9.722 +    <xsd:sequence>
   9.723 +        <xsd:element name="auth-method"
   9.724 +                     type="j2ee:auth-methodType"
   9.725 +                     minOccurs="0"/>
   9.726 +        <xsd:element name="realm-name"
   9.727 +                     type="j2ee:string" minOccurs="0">
   9.728 +        <xsd:annotation>
   9.729 +        <xsd:documentation>
   9.730 +
   9.731 +        The realm name element specifies the realm name to
   9.732 +        use in HTTP Basic authorization.
   9.733 +
   9.734 +        </xsd:documentation>
   9.735 +        </xsd:annotation>
   9.736 +        </xsd:element>
   9.737 +        <xsd:element name="form-login-config"
   9.738 +                     type="j2ee:form-login-configType"
   9.739 +                     minOccurs="0"/>
   9.740 +    </xsd:sequence>
   9.741 +
   9.742 +</xsd:complexType>
   9.743 +
   9.744 +<!-- **************************************************** -->
   9.745 +
   9.746 +<xsd:complexType name="mime-mappingType">
   9.747 +<xsd:annotation>
   9.748 +<xsd:documentation>
   9.749 +
   9.750 +The mime-mappingType defines a mapping between an extension
   9.751 +and a mime type.
   9.752 +
   9.753 +Used in: web-app
   9.754 +
   9.755 +</xsd:documentation>
   9.756 +</xsd:annotation>
   9.757 +
   9.758 +    <xsd:sequence>
   9.759 +        <xsd:annotation>
   9.760 +        <xsd:documentation>
   9.761 +
   9.762 +        The extension element contains a string describing an
   9.763 +        extension. example: "txt"
   9.764 +
   9.765 +        </xsd:documentation>
   9.766 +        </xsd:annotation>
   9.767 +
   9.768 +        <xsd:element name="extension"
   9.769 +                     type="j2ee:string"/>
   9.770 +        <xsd:element name="mime-type"
   9.771 +                     type="j2ee:mime-typeType"/>
   9.772 +    </xsd:sequence>
   9.773 +
   9.774 +</xsd:complexType>
   9.775 +
   9.776 +<!-- **************************************************** -->
   9.777 +
   9.778 +<xsd:simpleType name="mime-typeType">
   9.779 +<xsd:annotation>
   9.780 +<xsd:documentation>
   9.781 +
   9.782 +The mime-typeType is used to indicate a defined mime type.
   9.783 +
   9.784 +Example:
   9.785 +"text/plain"
   9.786 +
   9.787 +Used in: mime-mapping
   9.788 +
   9.789 +</xsd:documentation>
   9.790 +</xsd:annotation>
   9.791 +
   9.792 +    <xsd:restriction base="j2ee:string">
   9.793 +        <xsd:pattern value="[\p{L}\-\p{Nd}]+/[\p{L}\-\p{Nd}\.]+"/>
   9.794 +    </xsd:restriction>
   9.795 +
   9.796 +</xsd:simpleType>
   9.797 +
   9.798 +<!-- **************************************************** -->
   9.799 +
   9.800 +<xsd:complexType name="security-constraintType">
   9.801 +<xsd:annotation>
   9.802 +<xsd:documentation>
   9.803 +
   9.804 +The security-constraintType is used to associate
   9.805 +security constraints with one or more web resource
   9.806 +collections
   9.807 +
   9.808 +Used in: web-app
   9.809 +
   9.810 +</xsd:documentation>
   9.811 +</xsd:annotation>
   9.812 +
   9.813 +    <xsd:sequence>
   9.814 +        <xsd:element name="display-name"
   9.815 +                     type="j2ee:display-nameType"
   9.816 +                     minOccurs="0"
   9.817 +                     maxOccurs="unbounded"/>
   9.818 +        <xsd:element name="web-resource-collection"
   9.819 +                     type="j2ee:web-resource-collectionType"
   9.820 +                     maxOccurs="unbounded"/>
   9.821 +        <xsd:element name="auth-constraint"
   9.822 +                     type="j2ee:auth-constraintType"
   9.823 +                     minOccurs="0"/>
   9.824 +        <xsd:element name="user-data-constraint"
   9.825 +                     type="j2ee:user-data-constraintType"
   9.826 +                     minOccurs="0"/>
   9.827 +    </xsd:sequence>
   9.828 +
   9.829 +</xsd:complexType>
   9.830 +
   9.831 +<!-- **************************************************** -->
   9.832 +
   9.833 +<xsd:complexType name="servlet-mappingType">
   9.834 +<xsd:annotation>
   9.835 +<xsd:documentation>
   9.836 +
   9.837 +The servlet-mappingType defines a mapping between a
   9.838 +servlet and a url pattern.
   9.839 +
   9.840 +Used in: web-app
   9.841 +
   9.842 +</xsd:documentation>
   9.843 +</xsd:annotation>
   9.844 +
   9.845 +    <xsd:sequence>
   9.846 +        <xsd:element name="servlet-name"
   9.847 +                     type="j2ee:servlet-nameType"/>
   9.848 +        <xsd:element name="url-pattern"
   9.849 +                     type="j2ee:url-patternType"/>
   9.850 +    </xsd:sequence>
   9.851 +
   9.852 +</xsd:complexType>
   9.853 +
   9.854 +<!-- **************************************************** -->
   9.855 +
   9.856 +<xsd:simpleType name="servlet-nameType">
   9.857 +<xsd:annotation>
   9.858 +<xsd:documentation>
   9.859 +
   9.860 +The servlet-name element contains the canonical name of the
   9.861 +servlet. Each servlet name is unique within the web
   9.862 +application.
   9.863 +
   9.864 +</xsd:documentation>
   9.865 +</xsd:annotation>
   9.866 +
   9.867 +    <xsd:restriction base="j2ee:string"/>
   9.868 +
   9.869 +</xsd:simpleType>
   9.870 +
   9.871 +<!-- **************************************************** -->
   9.872 +
   9.873 +<xsd:complexType name="servletType">
   9.874 +<xsd:annotation>
   9.875 +<xsd:documentation>
   9.876 +
   9.877 +The servletType is used to declare a servlet.
   9.878 +It contains the declarative data of a
   9.879 +servlet. If a jsp-file is specified and the load-on-startup
   9.880 +element is present, then the JSP should be precompiled and
   9.881 +loaded.
   9.882 +
   9.883 +Used in: web-app
   9.884 +
   9.885 +</xsd:documentation>
   9.886 +</xsd:annotation>
   9.887 +
   9.888 +    <xsd:sequence>
   9.889 +        <xsd:element name="description"
   9.890 +                     type="j2ee:descriptionType"
   9.891 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.892 +        <xsd:element name="display-name"
   9.893 +                     type="j2ee:display-nameType"
   9.894 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.895 +        <xsd:element name="icon"
   9.896 +                     type="j2ee:iconType"
   9.897 +                     minOccurs="0"
   9.898 +                     maxOccurs="unbounded"/>
   9.899 +        <xsd:element name="servlet-name"
   9.900 +                     type="j2ee:servlet-nameType"/>
   9.901 +        <choice>
   9.902 +            <xsd:element name="servlet-class"
   9.903 +                         type="j2ee:fully-qualified-classType">
   9.904 +            <xsd:annotation>
   9.905 +            <xsd:documentation>
   9.906 +
   9.907 +            The servlet-class element contains the fully
   9.908 +            qualified class name of the servlet.
   9.909 +
   9.910 +            </xsd:documentation>
   9.911 +            </xsd:annotation>
   9.912 +            </xsd:element>
   9.913 +
   9.914 +            <xsd:element name="jsp-file"
   9.915 +                         type="j2ee:jsp-fileType"/>
   9.916 +
   9.917 +        </choice>
   9.918 +
   9.919 +        <xsd:element name="init-param"
   9.920 +                     type="j2ee:param-valueType"
   9.921 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.922 +        <xsd:element name="load-on-startup"
   9.923 +                     type="xsd:integer"
   9.924 +                     minOccurs="0">
   9.925 +        <xsd:annotation>
   9.926 +        <xsd:documentation>
   9.927 +
   9.928 +        The load-on-startup element indicates that this
   9.929 +        servlet should be loaded (instantiated and have
   9.930 +        its init() called) on the startup of the web
   9.931 +        application. The optional contents of these
   9.932 +        element must be an integer indicating the order in
   9.933 +        which the servlet should be loaded. If the value
   9.934 +        is a negative integer, or the element is not
   9.935 +        present, the container is free to load the servlet
   9.936 +        whenever it chooses. If the value is a positive
   9.937 +        integer or 0, the container must load and
   9.938 +        initialize the servlet as the application is
   9.939 +        deployed. The container must guarantee that
   9.940 +        servlets marked with lower integers are loaded
   9.941 +        before servlets marked with higher integers. The
   9.942 +        container may choose the order of loading of
   9.943 +        servlets with the same load-on-start-up value.
   9.944 +
   9.945 +        </xsd:documentation>
   9.946 +        </xsd:annotation>
   9.947 +        </xsd:element>
   9.948 +        <xsd:element name="run-as"
   9.949 +                     type="j2ee:run-asType"
   9.950 +                     minOccurs="0"/>
   9.951 +        <xsd:element name="security-role-ref"
   9.952 +                     type="j2ee:security-role-refType"
   9.953 +                     minOccurs="0" maxOccurs="unbounded"/>                     
   9.954 +        <xsd:element name="deployment-extension"
   9.955 +                     type="j2ee:deployment-extensionType"
   9.956 +                     minOccurs="0" maxOccurs="unbounded"/>
   9.957 +    </xsd:sequence>
   9.958 +</xsd:complexType>
   9.959 +
   9.960 +<!-- **************************************************** -->
   9.961 +
   9.962 +<xsd:complexType name="session-configType">
   9.963 +<xsd:annotation>
   9.964 +<xsd:documentation>
   9.965 +
   9.966 +The session-configType defines the session parameters
   9.967 +for this web application.
   9.968 +
   9.969 +Used in: web-app
   9.970 +
   9.971 +</xsd:documentation>
   9.972 +</xsd:annotation>
   9.973 +
   9.974 +    <xsd:sequence>
   9.975 +        <xsd:element name="session-timeout"
   9.976 +                 type="xsd:nonNegativeInteger"
   9.977 +                 minOccurs="0">
   9.978 +        <xsd:annotation>
   9.979 +        <xsd:documentation>
   9.980 +
   9.981 +        The session-timeout element defines the default
   9.982 +        session timeout interval for all sessions created
   9.983 +        in this web application. The specified timeout
   9.984 +        must be expressed in a whole number of minutes.
   9.985 +        If the timeout is 0 or less, the container ensures
   9.986 +        the default behaviour of sessions is never to time
   9.987 +        out. If this element is not specified, the container
   9.988 +        must set its default timeout period.
   9.989 +
   9.990 +        </xsd:documentation>
   9.991 +        </xsd:annotation>
   9.992 +        </xsd:element>
   9.993 +    </xsd:sequence>
   9.994 +
   9.995 +</xsd:complexType>
   9.996 +
   9.997 +<!-- **************************************************** -->
   9.998 +
   9.999 +<xsd:simpleType name="transport-guaranteeType">
  9.1000 +<xsd:annotation>
  9.1001 +<xsd:documentation>
  9.1002 +
  9.1003 +The transport-guaranteeType specifies that the communication
  9.1004 +between client and server should be NONE, INTEGRAL, or
  9.1005 +CONFIDENTIAL. NONE means that the application does not
  9.1006 +require any transport guarantees. A value of INTEGRAL means
  9.1007 +that the application requires that the data sent between the
  9.1008 +client and server be sent in such a way that it can't be
  9.1009 +changed in transit. CONFIDENTIAL means that the application
  9.1010 +requires that the data be transmitted in a fashion that
  9.1011 +prevents other entities from observing the contents of the
  9.1012 +transmission. In most cases, the presence of the INTEGRAL or
  9.1013 +CONFIDENTIAL flag will indicate that the use of SSL is
  9.1014 +required.
  9.1015 +
  9.1016 +Used in: user-data-constraint
  9.1017 +
  9.1018 +</xsd:documentation>
  9.1019 +</xsd:annotation>
  9.1020 +
  9.1021 +    <xsd:restriction base="j2ee:string">
  9.1022 +        <xsd:enumeration value="NONE"/>
  9.1023 +        <xsd:enumeration value="INTEGRAL"/>
  9.1024 +        <xsd:enumeration value="CONFIDENTIAL"/>
  9.1025 +    </xsd:restriction>
  9.1026 +
  9.1027 +</xsd:simpleType>
  9.1028 +
  9.1029 +<!-- **************************************************** -->
  9.1030 +
  9.1031 +<xsd:complexType name="user-data-constraintType">
  9.1032 +<xsd:annotation>
  9.1033 +<xsd:documentation>
  9.1034 +
  9.1035 +The user-data-constraintType is used to indicate how
  9.1036 +data communicated between the client and container should be
  9.1037 +protected.
  9.1038 +
  9.1039 +Used in: security-constraint
  9.1040 +
  9.1041 +</xsd:documentation>
  9.1042 +</xsd:annotation>
  9.1043 +
  9.1044 +    <xsd:sequence>
  9.1045 +        <xsd:element name="description"
  9.1046 +                     type="j2ee:descriptionType"
  9.1047 +                     minOccurs="0"
  9.1048 +                     maxOccurs="unbounded"/>
  9.1049 +        <xsd:element name="transport-guarantee"
  9.1050 +                     type="j2ee:transport-guaranteeType"/>
  9.1051 +    </xsd:sequence>
  9.1052 +
  9.1053 +</xsd:complexType>
  9.1054 +
  9.1055 +<!-- **************************************************** -->
  9.1056 +
  9.1057 +<xsd:simpleType name="web-app-versionType">
  9.1058 +<xsd:annotation>
  9.1059 +<xsd:documentation>
  9.1060 +
  9.1061 +This type contains the recognized versions of
  9.1062 +web-application supported. It is used to designate the
  9.1063 +version of the web application.
  9.1064 +
  9.1065 +Example:
  9.1066 +
  9.1067 +<web-app>
  9.1068 +    <version>2.4</version>
  9.1069 +...
  9.1070 +</web-app>
  9.1071 +
  9.1072 +</xsd:documentation>
  9.1073 +</xsd:annotation>
  9.1074 +
  9.1075 +    <xsd:restriction base="j2ee:string">
  9.1076 +        <xsd:enumeration value="2.4"/>
  9.1077 +    </xsd:restriction>
  9.1078 +
  9.1079 +</xsd:simpleType>
  9.1080 +
  9.1081 +<!-- **************************************************** -->
  9.1082 +
  9.1083 +<xsd:complexType name="web-appType">
  9.1084 +
  9.1085 +    <xsd:sequence>
  9.1086 +        <xsd:element name="description"
  9.1087 +                     type="j2ee:descriptionType"
  9.1088 +                     minOccurs="0"
  9.1089 +                     maxOccurs="unbounded"/>
  9.1090 +        <xsd:element name="display-name"
  9.1091 +                     type="j2ee:display-nameType"
  9.1092 +                     minOccurs="0"
  9.1093 +                     maxOccurs="unbounded"/>
  9.1094 +        <xsd:element name="icon"
  9.1095 +                     type="j2ee:iconType"
  9.1096 +                     minOccurs="0"
  9.1097 +                     maxOccurs="unbounded"/>
  9.1098 +        <xsd:element name="distributable"
  9.1099 +                     type="j2ee:emptyType"
  9.1100 +                     minOccurs="0"/>
  9.1101 +        <xsd:element name="context-param"
  9.1102 +                     type="j2ee:param-valueType"
  9.1103 +                     minOccurs="0" maxOccurs="unbounded">
  9.1104 +        <xsd:annotation>
  9.1105 +        <xsd:documentation>
  9.1106 +
  9.1107 +        The context-param element contains the declaration
  9.1108 +        of a web application's servlet context
  9.1109 +        initialization parameters.
  9.1110 +
  9.1111 +        </xsd:documentation>
  9.1112 +        </xsd:annotation>
  9.1113 +        </xsd:element>
  9.1114 +
  9.1115 +        <xsd:element name="filter"
  9.1116 +                     type="j2ee:filterType"
  9.1117 +                     minOccurs="0" maxOccurs="unbounded">
  9.1118 + 		   <xsd:key name="param-key">
  9.1119 + 		      <xsd:selector xpath="init-param"/>
  9.1120 + 		      <xsd:field xpath="param-name"/>
  9.1121 + 		  </xsd:key>
  9.1122 + 		</xsd:element>
  9.1123 +        <xsd:element name="filter-mapping"
  9.1124 +                     type="j2ee:filter-mappingType"
  9.1125 +                     minOccurs="0"
  9.1126 +                     maxOccurs="unbounded"/>
  9.1127 +        <xsd:element name="listener"
  9.1128 +                     type="j2ee:listenerType"
  9.1129 +                     minOccurs="0"
  9.1130 +                     maxOccurs="unbounded"/>
  9.1131 +        <xsd:element name="servlet"
  9.1132 +                     type="j2ee:servletType"
  9.1133 +                     minOccurs="0"
  9.1134 +                     maxOccurs="unbounded"/>
  9.1135 +        <xsd:element name="servlet-mapping"
  9.1136 +                     type="j2ee:servlet-mappingType"
  9.1137 +                     minOccurs="0"
  9.1138 +                     maxOccurs="unbounded"/>
  9.1139 +        <xsd:element name="session-config"
  9.1140 +                     type="j2ee:session-configType"
  9.1141 +                     minOccurs="0"/>
  9.1142 +        <xsd:element name="mime-mapping"
  9.1143 +                     type="j2ee:mime-mappingType"
  9.1144 +                     minOccurs="0"
  9.1145 +                     maxOccurs="unbounded"/>
  9.1146 +        <xsd:element name="welcome-file-list"
  9.1147 +                     type="j2ee:welcome-file-listType"
  9.1148 +                     minOccurs="0"/>
  9.1149 +        <xsd:element name="error-page"
  9.1150 +                     type="j2ee:error-pageType"
  9.1151 +                     minOccurs="0"
  9.1152 +                     maxOccurs="unbounded"/>
  9.1153 +        <xsd:element name="jsp-config"
  9.1154 +                     type="j2ee:jsp-configType"
  9.1155 +                     minOccurs="0"/>
  9.1156 +        <xsd:element name="resource-env-ref"
  9.1157 +                     type="j2ee:resource-env-refType"
  9.1158 +                     minOccurs="0"
  9.1159 +                     maxOccurs="unbounded"/>
  9.1160 +        <xsd:element name="message-destination-ref"
  9.1161 +                     type="j2ee:message-destination-refType"
  9.1162 +                     minOccurs="0"
  9.1163 +                     maxOccurs="unbounded"/>
  9.1164 +        <xsd:element name="resource-ref"
  9.1165 +                     type="j2ee:resource-refType"
  9.1166 +                     minOccurs="0"
  9.1167 +                     maxOccurs="unbounded"/>
  9.1168 +        <xsd:element name="security-constraint"
  9.1169 +                     type="j2ee:security-constraintType"
  9.1170 +                     minOccurs="0"
  9.1171 +                     maxOccurs="unbounded"/>
  9.1172 +        <xsd:element name="login-config"
  9.1173 +                     type="j2ee:login-configType"
  9.1174 +                     minOccurs="0"/>
  9.1175 +        <xsd:element name="security-role"
  9.1176 +                     type="j2ee:security-roleType"
  9.1177 +                     minOccurs="0"
  9.1178 +                     maxOccurs="unbounded"/>
  9.1179 +        <xsd:element name="env-entry"
  9.1180 +                     type="j2ee:env-entryType"
  9.1181 +                     minOccurs="0"
  9.1182 +                     maxOccurs="unbounded"/>
  9.1183 +        <xsd:element name="ejb-ref"
  9.1184 +                     type="j2ee:ejb-refType"
  9.1185 +                     minOccurs="0"
  9.1186 +                     maxOccurs="unbounded"/>
  9.1187 +        <xsd:element name="ejb-local-ref"
  9.1188 +                     type="j2ee:ejb-local-refType"
  9.1189 +                     minOccurs="0"
  9.1190 +                     maxOccurs="unbounded"/>
  9.1191 +        <xsd:element name="message-destination"
  9.1192 +                     type="j2ee:message-destinationType"
  9.1193 +                     minOccurs="0"
  9.1194 +                     maxOccurs="unbounded"/>
  9.1195 +        <xsd:element name="locale-encoding-mapping-list"
  9.1196 +                     type="j2ee:locale-encoding-mapping-listType"
  9.1197 +                     minOccurs="0"
  9.1198 +                     maxOccurs="1"/>                     
  9.1199 +        <xsd:element name="deployment-extension"
  9.1200 +                     type="j2ee:deployment-extensionType"
  9.1201 +                     minOccurs="0"
  9.1202 +                     maxOccurs="unbounded"/>
  9.1203 +    </xsd:sequence>
  9.1204 +
  9.1205 +    <xsd:attribute name="version"
  9.1206 +                   type="j2ee:web-app-versionType"
  9.1207 +                   use="required"/>
  9.1208 +
  9.1209 +</xsd:complexType>
  9.1210 +
  9.1211 +<!-- **************************************************** -->
  9.1212 +
  9.1213 +<xsd:complexType name="web-resource-collectionType">
  9.1214 +<xsd:annotation>
  9.1215 +<xsd:documentation>
  9.1216 +
  9.1217 +The web-resource-collectionType is used to identify a subset
  9.1218 +of the resources and HTTP methods on those resources within
  9.1219 +a web application to which a security constraint applies. If
  9.1220 +no HTTP methods are specified, then the security constraint
  9.1221 +applies to all HTTP methods.
  9.1222 +
  9.1223 +Used in: security-constraint
  9.1224 +
  9.1225 +</xsd:documentation>
  9.1226 +</xsd:annotation>
  9.1227 +
  9.1228 +    <xsd:sequence>
  9.1229 +        <xsd:element name="web-resource-name"
  9.1230 +                     type="j2ee:string">
  9.1231 +        <xsd:annotation>
  9.1232 +        <xsd:documentation>
  9.1233 +
  9.1234 +        The web-resource-name contains the name of this web
  9.1235 +        resource collection.
  9.1236 +
  9.1237 +        </xsd:documentation>
  9.1238 +        </xsd:annotation>
  9.1239 +        </xsd:element>
  9.1240 +        <xsd:element name="description"
  9.1241 +                     type="j2ee:descriptionType"
  9.1242 +                     minOccurs="0"
  9.1243 +                     maxOccurs="unbounded"/>
  9.1244 +        <xsd:element name="url-pattern"
  9.1245 +                     type="j2ee:url-patternType"
  9.1246 +                     maxOccurs="unbounded"/>
  9.1247 +        <xsd:element name="http-method"
  9.1248 +                     type="j2ee:http-methodType"
  9.1249 +                     minOccurs="0" maxOccurs="unbounded"/>
  9.1250 +    </xsd:sequence>
  9.1251 +
  9.1252 +</xsd:complexType>
  9.1253 +
  9.1254 +<!-- **************************************************** -->
  9.1255 +
  9.1256 +<xsd:complexType name="welcome-file-listType">
  9.1257 +<xsd:annotation>
  9.1258 +<xsd:documentation>
  9.1259 +
  9.1260 +The welcome-file-list contains an ordered list of welcome
  9.1261 +files elements.
  9.1262 +
  9.1263 +Used in: web-app
  9.1264 +
  9.1265 +</xsd:documentation>
  9.1266 +</xsd:annotation>
  9.1267 +
  9.1268 +    <xsd:sequence>
  9.1269 +        <xsd:element name="welcome-file"
  9.1270 +                     type="j2ee:string"
  9.1271 +                     maxOccurs="unbounded">
  9.1272 +        <xsd:annotation>
  9.1273 +        <xsd:documentation>
  9.1274 +
  9.1275 +        The welcome-file element contains file name to use
  9.1276 +        as a default welcome file, such as index.html
  9.1277 +
  9.1278 +        </xsd:documentation>
  9.1279 +        </xsd:annotation>
  9.1280 +        </xsd:element>
  9.1281 +    </xsd:sequence>
  9.1282 +
  9.1283 +</xsd:complexType>
  9.1284 +
  9.1285 +</xsd:schema>
  9.1286 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegator.pass	Wed Jan 15 21:24:04 2003 +0000
    10.3 @@ -0,0 +1,26 @@
    10.4 +Calling GenBeans.doIt
    10.5 +Compiling
    10.6 +Finished compiling: 0
    10.7 +out: TestWebAppDelegator - creating the DOM document
    10.8 +out: TestWebAppDelegator - creating the bean graph
    10.9 +out: TestWebAppDelegator - bean graph created
   10.10 +out: <?xml version='1.0' encoding='UTF-8' ?>
   10.11 +out: <web-app xmlns='http://java.sun.com/xml/ns/j2ee' version='2.4'>
   10.12 +out: 	<description>This is my Web App</description>
   10.13 +out: 	<display-name>MyWebApp</display-name>
   10.14 +out: 	<filter>
   10.15 +out: 		<filter-name>Bob</filter-name>
   10.16 +out: 		<filter-class></filter-class>
   10.17 +out: 	</filter>
   10.18 +out: </web-app>
   10.19 +out: TestWebAppDelegator - making some minor changes
   10.20 +out: <?xml version='1.0' encoding='UTF-8' ?>
   10.21 +out: <web-app xmlns='http://java.sun.com/xml/ns/j2ee' version='2.4'>
   10.22 +out: 	<description>Changed the description</description>
   10.23 +out: 	<display-name>MyWebApp</display-name>
   10.24 +out: 	<filter>
   10.25 +out: 		<filter-name>Bob</filter-name>
   10.26 +out: 		<filter-class>foo</filter-class>
   10.27 +out: 	</filter>
   10.28 +out: </web-app>
   10.29 +Finished running TestWebAppDelegator: 0
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/schema2beans/test/unit/src/data/goldenfiles/TestMain/testWebAppDelegatorBaseBean.pass	Wed Jan 15 21:24:04 2003 +0000
    11.3 @@ -0,0 +1,25 @@
    11.4 +Calling GenBeans.doIt
    11.5 +Compiling
    11.6 +Finished compiling: 0
    11.7 +out: TestWebAppDelegatorBaseBean - creating the DOM document
    11.8 +out: TestWebAppDelegatorBaseBean - creating the bean graph
    11.9 +out: TestWebAppDelegatorBaseBean - bean graph created
   11.10 +out: <?xml version="1.0" encoding="UTF-8"?>
   11.11 +out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
   11.12 +out:   <description>This is my Web App</description>
   11.13 +out:   <display-name>MyWebApp</display-name>
   11.14 +out:   <filter>
   11.15 +out:     <filter-name>Bob</filter-name>
   11.16 +out:   </filter>
   11.17 +out: </web-app>
   11.18 +out: TestWebAppDelegatorBaseBean - making some minor changes
   11.19 +out: <?xml version="1.0" encoding="UTF-8"?>
   11.20 +out: <web-app xmlns="http://java.sun.com/xml/ns/j2ee">
   11.21 +out:   <description>Changed the description</description>
   11.22 +out:   <display-name>MyWebApp</display-name>
   11.23 +out:   <filter>
   11.24 +out:     <filter-name>Bob</filter-name>
   11.25 +out:     <filter-class>foo</filter-class>
   11.26 +out:   </filter>
   11.27 +out: </web-app>
   11.28 +Finished running TestWebAppDelegatorBaseBean: 0