Clement Escoffier | f58887c | 2008-09-09 14:21:15 +0000 | [diff] [blame^] | 1 | <!-- |
| 2 | Licensed to the Apache Software Foundation (ASF) under one |
| 3 | or more contributor license agreements. See the NOTICE file |
| 4 | distributed with this work for additional information |
| 5 | regarding copyright ownership. The ASF licenses this file |
| 6 | to you under the Apache License, Version 2.0 (the |
| 7 | "License"); you may not use this file except in compliance |
| 8 | with the License. You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, |
| 13 | software distributed under the License is distributed on an |
| 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | KIND, either express or implied. See the License for the |
| 16 | specific language governing permissions and limitations |
| 17 | under the License. |
| 18 | --> |
| 19 | <xs:schema targetNamespace="org.apache.felix.ipojo.handlers.jmx" |
| 20 | xmlns="org.apache.felix.ipojo.handlers.jmx" |
| 21 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 22 | elementFormDefault="qualified"> |
| 23 | <xs:element name="config" type="JMXType"></xs:element> |
| 24 | |
| 25 | <xs:complexType name="JMXType"> |
| 26 | |
| 27 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 28 | <xs:element name="method" type="JMXMethod"></xs:element> |
| 29 | <xs:element name="property" type="JMXProperty"></xs:element> |
| 30 | </xs:choice> |
| 31 | <xs:attribute name="usesMOSGi" type="xs:boolean" |
| 32 | use="optional"> |
| 33 | </xs:attribute> |
| 34 | <xs:attribute name="objectName" type="xs:string" |
| 35 | use="optional"> |
| 36 | </xs:attribute> |
| 37 | <xs:attribute name="domain" type="xs:string" use="optional"></xs:attribute> |
| 38 | <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute> |
| 39 | |
| 40 | </xs:complexType> |
| 41 | |
| 42 | <xs:complexType name="JMXProperty"> |
| 43 | <xs:attribute name="field" type="xs:string" use="required"></xs:attribute> |
| 44 | <xs:attribute name="name" type="xs:string" use="optional"></xs:attribute> |
| 45 | <xs:attribute name="rights" use="optional"> |
| 46 | <xs:simpleType> |
| 47 | <xs:restriction base="xs:string"> |
| 48 | <xs:enumeration value="r"></xs:enumeration> |
| 49 | <xs:enumeration value="w"></xs:enumeration> |
| 50 | </xs:restriction> |
| 51 | </xs:simpleType> |
| 52 | </xs:attribute> |
| 53 | <xs:attribute name="notification" type="xs:boolean" use="optional"></xs:attribute> |
| 54 | </xs:complexType> |
| 55 | |
| 56 | <xs:complexType name="JMXMethod"> |
| 57 | <xs:attribute name="name" type="xs:string" use="required"></xs:attribute> |
| 58 | <xs:attribute name="description" type="xs:string" use="optional"></xs:attribute> |
| 59 | </xs:complexType> |
| 60 | </xs:schema> |