geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hcun...@apache.org
Subject svn commit: r580986 - in /geronimo/site/trunk/docs/xml/ns: j2ee/local-attribute.xsd j2ee/local-attributes-1.1.xsd local-attribute.xsd local-attributes-1.1.xsd
Date Mon, 01 Oct 2007 15:12:49 GMT
Author: hcunico
Date: Mon Oct  1 08:12:48 2007
New Revision: 580986

URL: http://svn.apache.org/viewvc?rev=580986&view=rev
Log:
reorganizing xml schemas

Added:
    geronimo/site/trunk/docs/xml/ns/local-attribute.xsd
    geronimo/site/trunk/docs/xml/ns/local-attributes-1.1.xsd
Removed:
    geronimo/site/trunk/docs/xml/ns/j2ee/local-attribute.xsd
    geronimo/site/trunk/docs/xml/ns/j2ee/local-attributes-1.1.xsd

Added: geronimo/site/trunk/docs/xml/ns/local-attribute.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/local-attribute.xsd?rev=580986&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/local-attribute.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/local-attribute.xsd Mon Oct  1 08:12:48 2007
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright 2004-2005 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.
+-->
+
+<xsd:schema
+    targetNamespace="http://geronimo.apache.org/xml/ns/attributes"
+    xmlns:atts="http://geronimo.apache.org/xml/ns/attributes"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    elementFormDefault="qualified"
+    attributeFormDefault="unqualified"
+    version="1.0">
+
+    <xsd:annotation>
+        <xsd:documentation>
+            <![CDATA[
+            The definition of the XML format for storing manageable attribute values.
+            Should look like this:
+
+            <attributes>
+              <configuration name="org/apache/geronimo/Server">
+                <gbean name="SomeJettyConnector">
+                  <attribute name="host">0.0.0.0</attribute>
+                  <attribute name="port">8080</attribute>
+                </gbean>
+              </configuration>
+            </attributes>
+            ]]>
+        </xsd:documentation>
+    </xsd:annotation>
+
+    <!--
+ temporary (I hope) individual elements while xmlbeans group handling is straightened out
+ -->
+
+    <xsd:element name="attributes" type="atts:attributesType"/>
+
+    <xsd:complexType name="attributesType">
+        <xsd:sequence>
+            <xsd:element name="configuration" type="atts:configurationType" minOccurs="0"
maxOccurs="unbounded" />
+        </xsd:sequence>
+    </xsd:complexType>
+
+    <xsd:complexType name="configurationType">
+        <xsd:sequence>
+            <xsd:element name="gbean" type="atts:gbeanType" minOccurs="0" maxOccurs="unbounded"
/>
+        </xsd:sequence>
+        <xsd:attribute name="name" type="xsd:string" use="required"/>
+        <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+    </xsd:complexType>
+
+    <xsd:complexType name="gbeanType">
+        <xsd:annotation>
+            <xsd:documentation>
+                <![CDATA[
+                  Note that the name attribute for a gbean element may hold
+                  either the full GBeanName, or only the value for the
+                  "name=" portion of the GBeanName.  If there are multiple
+                  GBeans in the configuration with manageable attributes and
+                  the same "name=" portion of the GBeanName, then all must be
+                  listed and all must be listed with a full GBeanName.
+                ]]>
+            </xsd:documentation>
+        </xsd:annotation>
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+            <xsd:element name="attribute" type="atts:attributeType"/>
+            <xsd:element name="reference" type="atts:referenceType"/>
+        </xsd:choice>
+        <xsd:attribute name="name" type="xsd:string" use="required"/>
+        <xsd:attribute name="gbeanInfo" type="xsd:string" use="optional"/>
+        <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+    </xsd:complexType>
+
+    <xsd:complexType name="attributeType">
+        <xsd:simpleContent>
+            <xsd:extension base="xsd:string">
+                <xsd:attribute name="name" use="required"/>
+            </xsd:extension>
+        </xsd:simpleContent>
+    </xsd:complexType>
+
+    <xsd:complexType name="referenceType">
+        <xsd:sequence>
+            <xsd:element name="pattern" minOccurs="1" maxOccurs="unbounded">
+              <xsd:complexType>
+                  <xsd:sequence>
+                      <xsd:element name="gbean-name" type="xsd:string"/>
+                  </xsd:sequence>
+              </xsd:complexType>
+            </xsd:element>
+        </xsd:sequence>
+        <xsd:attribute name="name" type="xsd:string"/>
+    </xsd:complexType>
+  </xsd:schema>
\ No newline at end of file

Added: geronimo/site/trunk/docs/xml/ns/local-attributes-1.1.xsd
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/docs/xml/ns/local-attributes-1.1.xsd?rev=580986&view=auto
==============================================================================
--- geronimo/site/trunk/docs/xml/ns/local-attributes-1.1.xsd (added)
+++ geronimo/site/trunk/docs/xml/ns/local-attributes-1.1.xsd Mon Oct  1 08:12:48 2007
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Copyright 2004-2005 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.
+-->
+
+<xsd:schema
+    targetNamespace="http://geronimo.apache.org/xml/ns/attributes-1.1"
+    xmlns:atts="http://geronimo.apache.org/xml/ns/attributes-1.1"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    elementFormDefault="qualified"
+    attributeFormDefault="unqualified"
+    >
+
+    <xsd:annotation>
+        <xsd:documentation>
+            <![CDATA[
+            The definition of the XML format for storing manageable attribute values.
+            Should look like this:
+
+            <attributes>
+              <configuration name="org/apache/geronimo/Server">
+                <gbean name="SomeJettyConnector">
+                  <attribute name="host">0.0.0.0</attribute>
+                  <attribute name="port">8080</attribute>
+                </gbean>
+              </configuration>
+            </attributes>
+            ]]>
+        </xsd:documentation>
+    </xsd:annotation>
+
+    <!-- Main element for the manageable attribute store configuration -->
+    <xsd:element name="attributes" type="atts:attributesType"/>
+
+    <!-- Element used by the plugin system to list individual GBeans -->
+    <xsd:element name="gbean" type="atts:gbeanType" />
+
+    <xsd:complexType name="attributesType">
+        <xsd:choice>
+            <xsd:element name="module" type="atts:configurationType" minOccurs="0" maxOccurs="unbounded"
/>
+
+            <!-- The config.xml file in 1.0 use configuration instead of module -->
+            <xsd:element name="configuration" type="atts:configurationType" minOccurs="0"
maxOccurs="unbounded" />
+        </xsd:choice>
+    </xsd:complexType>
+
+    <xsd:complexType name="configurationType">
+        <xsd:sequence>
+            <xsd:element name="gbean" type="atts:gbeanType" minOccurs="0" maxOccurs="unbounded"
/>
+        </xsd:sequence>
+        <xsd:attribute name="name" type="xsd:string" use="required"/>
+        <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+    </xsd:complexType>
+
+    <xsd:complexType name="gbeanType">
+        <xsd:annotation>
+            <xsd:documentation>
+                <![CDATA[
+                  Note that the name attribute for a gbean element may hold
+                  either the full GBeanName, or only the value for the
+                  "name=" portion of the GBeanName.  If there are multiple
+                  GBeans in the configuration with manageable attributes and
+                  the same "name=" portion of the GBeanName, then all must be
+                  listed and all must be listed with a full GBeanName.
+                ]]>
+            </xsd:documentation>
+        </xsd:annotation>
+        <xsd:choice minOccurs="0" maxOccurs="unbounded">
+            <xsd:element name="attribute" type="atts:attributeType"/>
+            <xsd:element name="reference" type="atts:referenceType"/>
+        </xsd:choice>
+        <xsd:attribute name="name" type="xsd:string" use="required"/>
+        <xsd:attribute name="gbeanInfo" type="xsd:string" use="optional"/>
+        <xsd:attribute name="load" type="xsd:boolean" use="optional" default="true"/>
+    </xsd:complexType>
+
+    <xsd:complexType name="attributeType">
+        <xsd:simpleContent>
+            <xsd:extension base="xsd:string">
+                <xsd:attribute name="name" use="required"/>
+                <xsd:attribute name="null" use="optional"/>
+                <xsd:attribute name="value" use="optional"/>
+            </xsd:extension>
+        </xsd:simpleContent>
+    </xsd:complexType>
+
+    <xsd:complexType name="referenceType">
+        <xsd:sequence>
+            <xsd:element name="pattern" minOccurs="0" maxOccurs="unbounded">
+              <xsd:complexType>
+                  <xsd:sequence>
+                      <xsd:element name="groupId" type="xsd:string" minOccurs="0"/>
+                      <xsd:element name="artifactId" type="xsd:string" minOccurs="0"/>
+                      <xsd:element name="version" type="xsd:string" minOccurs="0"/>
+                      <xsd:element name="type" type="xsd:string" minOccurs="0"/>
+                      <xsd:element name="module" type="xsd:string" minOccurs="0"/>
+                      <xsd:element name="name" type="xsd:string"/>
+                  </xsd:sequence>
+              </xsd:complexType>
+            </xsd:element>
+        </xsd:sequence>
+        <xsd:attribute name="name" type="xsd:string"/>
+    </xsd:complexType>
+  </xsd:schema>
\ No newline at end of file



Mime
View raw message