jboss-as-naming_1_1.xsd 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:naming:1.1"
  25. xmlns="urn:jboss:domain:naming:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.1">
  29. <!-- The naming subsystem root element -->
  30. <xs:element name="subsystem" type="subsystemType"/>
  31. <xs:complexType name="subsystemType">
  32. <xs:annotation>
  33. <xs:documentation>
  34. Naming subsystem configurations
  35. </xs:documentation>
  36. </xs:annotation>
  37. <xs:all>
  38. <xs:element name="bindings" type="bindingsType" minOccurs="0" maxOccurs="1"/>
  39. </xs:all>
  40. </xs:complexType>
  41. <xs:complexType name="bindingsType">
  42. <xs:sequence>
  43. <xs:element name="simple" type="simpleType" minOccurs="0" maxOccurs="unbounded"/>
  44. <xs:element name="object-factory" type="objectFactoryType" minOccurs="0" maxOccurs="unbounded"/>
  45. <xs:element name="lookup" type="lookupType" minOccurs="0" maxOccurs="unbounded"/>
  46. </xs:sequence>
  47. </xs:complexType>
  48. <xs:complexType name="simpleType">
  49. <xs:attribute name="name" type="xs:token" use="required">
  50. <xs:annotation>
  51. <xs:documentation>
  52. The JNDI name to bind to
  53. </xs:documentation>
  54. </xs:annotation>
  55. </xs:attribute>
  56. <xs:attribute name="value" type="xs:string" use="required">
  57. <xs:annotation>
  58. <xs:documentation>
  59. The value to bind
  60. </xs:documentation>
  61. </xs:annotation>
  62. </xs:attribute>
  63. <xs:attribute name="type" type="xs:token" use="optional">
  64. <xs:annotation>
  65. <xs:documentation>
  66. The type of entry to bind. If not specified defaults to java.lang.String.
  67. </xs:documentation>
  68. </xs:annotation>
  69. </xs:attribute>
  70. </xs:complexType>
  71. <xs:complexType name="objectFactoryType">
  72. <xs:attribute name="name" type="xs:token" use="required">
  73. <xs:annotation>
  74. <xs:documentation>
  75. The JNDI name to bind to
  76. </xs:documentation>
  77. </xs:annotation>
  78. </xs:attribute>
  79. <xs:attribute name="module" type="xs:token" use="required">
  80. <xs:annotation>
  81. <xs:documentation>
  82. The module to load the JNDI entry from
  83. </xs:documentation>
  84. </xs:annotation>
  85. </xs:attribute>
  86. <xs:attribute name="class" type="xs:token" use="required">
  87. <xs:annotation>
  88. <xs:documentation>
  89. The javax.naming.spi.ObjectFactory that provides the value.
  90. Note that when getObjectInstance is invoked the first Object parameter
  91. will be equal to the JNDI name of this binding. All other parameters will
  92. be null.
  93. </xs:documentation>
  94. </xs:annotation>
  95. </xs:attribute>
  96. </xs:complexType>
  97. <xs:complexType name="lookupType">
  98. <xs:attribute name="name" type="xs:token" use="required">
  99. <xs:annotation>
  100. <xs:documentation>
  101. The JNDI name to bind to
  102. </xs:documentation>
  103. </xs:annotation>
  104. </xs:attribute>
  105. <xs:attribute name="lookup" type="xs:string" use="required">
  106. <xs:annotation>
  107. <xs:documentation>
  108. The JNDI location to lookup
  109. </xs:documentation>
  110. </xs:annotation>
  111. </xs:attribute>
  112. </xs:complexType>
  113. </xs:schema>