diff options
Diffstat (limited to 'sandbox/lresende/das/xquery/src/main/resources/config.xsd')
-rw-r--r-- | sandbox/lresende/das/xquery/src/main/resources/config.xsd | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sandbox/lresende/das/xquery/src/main/resources/config.xsd b/sandbox/lresende/das/xquery/src/main/resources/config.xsd new file mode 100644 index 0000000000..c9ca53f54a --- /dev/null +++ b/sandbox/lresende/das/xquery/src/main/resources/config.xsd @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you 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 + xmlns:config="http:///org.apache.tuscany.das.xquery/config.xsd" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http:///org.apache.tuscany.das.xquery/config.xsd" + elementFormDefault="qualified"> + + <xsd:element name="Config" type="config:Config"/> + + <xsd:complexType name="Config"> + <xsd:sequence> + <xsd:element maxOccurs="1" minOccurs="0" name="ConnectionInfo" + type="config:ConnectionInfo"/> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="Command" + type="config:Command"/> + </xsd:sequence> + <xsd:attribute name="uri" type="xsd:string"/> + <xsd:attribute name="dataObjectModel" type="xsd:string"/> + </xsd:complexType> + + <xsd:complexType name="ConnectionInfo"> + <xsd:sequence> + <xsd:element maxOccurs="1" minOccurs="0" name="ConnectionProperties" type="config:ConnectionProperties"/> + </xsd:sequence> + <xsd:attribute name="dataSource" type="xsd:string"/> + <xsd:attribute name="dataSourceType" type="xsd:string" default="Database"/><!--FileSystem--> + <xsd:attribute name="managedtx" type="xsd:boolean" default="true"/> + </xsd:complexType> + + <xsd:complexType name="ConnectionProperties"> + <xsd:attribute name="driverClass" type="xsd:string"/> + <xsd:attribute name="databaseURL" type="xsd:string"/> + <xsd:attribute name="userName" type="xsd:string" default=""/> + <xsd:attribute name="password" type="xsd:string" default=""/> + <xsd:attribute name="loginTimeout" type="xsd:int" default="0"/> + </xsd:complexType> + + <xsd:complexType name="Command"> + <xsd:attribute name="name" type="xsd:string"/> + <xsd:attribute name="dataFileName" type="xsd:string"/> + <xsd:attribute name="queryString" type="xsd:string"/> + </xsd:complexType> + +</xsd:schema> |