djencks     2005/01/10 14:12:43

  Added:       modules/openejb-builder/src/schema geronimo-config.xsd
  Log:

  Partial implementation of GERONIMO-450. GBean names are (mostly) constructed 
like jsr-77 names and xml config usually only needs to specify namePart and 
optionally type
  
  Revision  Changes    Path
  1.1                  
openejb/modules/openejb-builder/src/schema/geronimo-config.xsd
  
  Index: geronimo-config.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!--
  
      Copyright 2004 The Apache Software Foundation
  
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
    
         http://www.apache.org/licenses/LICENSE-2.0
    
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  -->
    
  <xs:schema
      targetNamespace="http://geronimo.apache.org/xml/ns/deployment";
      xmlns:sys="http://geronimo.apache.org/xml/ns/deployment";
      xmlns:xs="http://www.w3.org/2001/XMLSchema";
      elementFormDefault="qualified"
      attributeFormDefault="unqualified"
      >
      <xs:annotation>
          <xs:documentation>
              Schema for Geronimo Services deployment plans.
              Instance documents should begin with the element:
  
              &gt;gbeans 
xmlns="http://geronimo.apache.org/xml/ns/deployment"&lt;
          </xs:documentation>
      </xs:annotation>
  
  <!--    <xs:include schemaLocation="geronimo-common.xsd"/>-->
  
      <xs:element name="configuration" type="sys:configurationType"/>
  
      <xs:complexType name="configurationType">
          <xs:sequence>
              <xs:element name="include" type="sys:dependencyType" 
minOccurs="0" maxOccurs="unbounded"/>
              <xs:element ref="sys:dependency" minOccurs="0" 
maxOccurs="unbounded"/>
              <xs:element ref="sys:gbean" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="configId" type="xs:string" use="required"/>
          <xs:attribute name="parentId" type="xs:string" use="optional"/>
      </xs:complexType>
  
      <xs:element name="dependency" type="sys:dependencyType"/>
      <xs:element name="gbean" type="sys:gbeanType"/>
  
      <xs:complexType name="dependencyType">
          <xs:choice>
              <xs:sequence>
                  <xs:element name="groupId" type="xs:string"/>
                  <xs:element name="artifactId" type="xs:string"/>
                  <xs:element name="version" type="xs:string"/>
              </xs:sequence>
              <xs:element name="uri" type="xs:string"/>
          </xs:choice>
      </xs:complexType>
  
      <xs:complexType name="gbeanType">
          <xs:choice minOccurs="0" maxOccurs="unbounded">
              <xs:element name="attribute" type="sys:attributeType"/>
              <xs:element name="reference" type="sys:referenceType"/>
              <xs:element name="references" type="sys:referencesType"/>
          </xs:choice>
          <xs:attribute name="name" type="xs:string"/>
          <xs:attribute name="class" type="xs:string"/>
      </xs:complexType>
  
      <xs:complexType name="attributeType">
          <xs:simpleContent>
              <xs:extension base="xs:string">
                  <xs:attribute name="name" type="xs:string"/>
                  <xs:attribute name="type" type="xs:string"/>
              </xs:extension>
          </xs:simpleContent>
      </xs:complexType>
  
      <xs:complexType name="referenceType">
          <xs:simpleContent>
              <xs:extension base="xs:string">
                  <xs:attribute name="name" type="xs:string"/>
              </xs:extension>
          </xs:simpleContent>
      </xs:complexType>
  
      <xs:complexType name="referencesType">
          <xs:sequence>
              <xs:element name="pattern" type="xs:string" minOccurs="1" 
maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="name" type="xs:string"/>
      </xs:complexType>
  
  </xs:schema>
  
  

Reply via email to