scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- --> |
scottb@google.com | 1b420bf | 2008-09-16 00:43:25 +0000 | [diff] [blame] | 3 | <!-- Copyright 2008 Google Inc. --> |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 4 | <!-- Licensed under the Apache License, Version 2.0 (the "License"); you --> |
| 5 | <!-- may not use this file except in compliance with the License. You may --> |
| 6 | <!-- may obtain a copy of the License at --> |
| 7 | <!-- --> |
| 8 | <!-- http://www.apache.org/licenses/LICENSE-2.0 --> |
| 9 | <!-- --> |
| 10 | <!-- Unless required by applicable law or agreed to in writing, software --> |
| 11 | <!-- distributed under the License is distributed on an "AS IS" BASIS, --> |
| 12 | <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> |
| 13 | <!-- implied. License for the specific language governing permissions and --> |
| 14 | <!-- limitations under the License. --> |
| 15 | |
| 16 | <!-- The module root element --> |
| 17 | <!ELEMENT module (inherits | source | public | super-source | entry-point | |
| 18 | stylesheet | script | servlet | replace-with | generate-with | |
rice@google.com | 365c568 | 2009-06-17 19:30:44 +0000 | [diff] [blame] | 19 | define-property | extend-property | set-property | |
| 20 | clear-configuration-property | define-configuration-property | |
| 21 | extend-configuration-property | set-configuration-property | |
scottb@google.com | 1b420bf | 2008-09-16 00:43:25 +0000 | [diff] [blame] | 22 | property-provider | define-linker | add-linker)*> |
gwt.team.bobv | 99abf17 | 2008-03-21 21:11:08 +0000 | [diff] [blame] | 23 | <!ATTLIST module |
| 24 | rename-to CDATA #IMPLIED |
| 25 | > |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 26 | <!-- Inherit the contents of another module --> |
| 27 | <!ELEMENT inherits EMPTY> |
| 28 | <!ATTLIST inherits |
| 29 | name CDATA #REQUIRED |
| 30 | > |
| 31 | <!-- Specify the source path, relative to the classpath location of the module descriptor --> |
| 32 | <!ELEMENT source (include | exclude)*> |
| 33 | <!ATTLIST source |
| 34 | path CDATA #REQUIRED |
| 35 | includes CDATA #IMPLIED |
| 36 | excludes CDATA #IMPLIED |
scottb@google.com | 9de92df | 2008-06-03 21:07:45 +0000 | [diff] [blame] | 37 | defaultexcludes (yes | no) "yes" |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 38 | casesensitive (true | false) "true" |
| 39 | > |
| 40 | <!-- Specify the public resource path, relative to the classpath location of the module descriptor --> |
| 41 | <!ELEMENT public (include | exclude)*> |
| 42 | <!ATTLIST public |
| 43 | path CDATA #REQUIRED |
| 44 | includes CDATA #IMPLIED |
| 45 | excludes CDATA #IMPLIED |
scottb@google.com | 9de92df | 2008-06-03 21:07:45 +0000 | [diff] [blame] | 46 | defaultexcludes (yes | no) "yes" |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 47 | casesensitive (true | false) "true" |
| 48 | > |
| 49 | <!-- Specify a source path that rebases subpackages into the root namespace --> |
| 50 | <!ELEMENT super-source (include | exclude)*> |
| 51 | <!ATTLIST super-source |
| 52 | path CDATA #REQUIRED |
| 53 | includes CDATA #IMPLIED |
| 54 | excludes CDATA #IMPLIED |
scottb@google.com | 9de92df | 2008-06-03 21:07:45 +0000 | [diff] [blame] | 55 | defaultexcludes (yes | no) "yes" |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 56 | casesensitive (true | false) "true" |
| 57 | > |
| 58 | <!ELEMENT include EMPTY> |
| 59 | <!ATTLIST include |
| 60 | name CDATA #REQUIRED |
| 61 | > |
| 62 | <!ELEMENT exclude EMPTY> |
| 63 | <!ATTLIST exclude |
| 64 | name CDATA #REQUIRED |
gwt.team.bobv | 8cc661b | 2008-02-14 00:08:19 +0000 | [diff] [blame] | 65 | > |
| 66 | |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 67 | <!-- Define a module entry point --> |
| 68 | <!ELEMENT entry-point EMPTY> |
| 69 | <!ATTLIST entry-point |
| 70 | class CDATA #REQUIRED |
| 71 | > |
| 72 | |
| 73 | <!-- Preload a stylesheet before executing the GWT application --> |
| 74 | <!ELEMENT stylesheet EMPTY> |
| 75 | <!ATTLIST stylesheet |
| 76 | src CDATA #REQUIRED |
| 77 | > |
| 78 | <!-- Preload an external JavaScript file before executing the GWT application --> |
| 79 | <!ELEMENT script (#PCDATA)> |
| 80 | <!ATTLIST script |
| 81 | src CDATA #REQUIRED |
| 82 | > |
| 83 | <!-- Map a named servlet class to a module-relative path in hosted mode --> |
| 84 | <!ELEMENT servlet EMPTY> |
| 85 | <!ATTLIST servlet |
| 86 | path CDATA #REQUIRED |
| 87 | class CDATA #REQUIRED |
| 88 | > |
gwt.team.bobv | 8cc661b | 2008-02-14 00:08:19 +0000 | [diff] [blame] | 89 | |
gwt.team.bobv | 99abf17 | 2008-03-21 21:11:08 +0000 | [diff] [blame] | 90 | <!-- Adds a Linker to the compilation process --> |
| 91 | <!ELEMENT add-linker EMPTY> |
gwt.team.bobv | 8cc661b | 2008-02-14 00:08:19 +0000 | [diff] [blame] | 92 | <!-- A comma-separated list of linker names --> |
gwt.team.bobv | 99abf17 | 2008-03-21 21:11:08 +0000 | [diff] [blame] | 93 | <!ATTLIST add-linker |
scottb@google.com | 1b420bf | 2008-09-16 00:43:25 +0000 | [diff] [blame] | 94 | name CDATA #REQUIRED |
gwt.team.bobv | 8cc661b | 2008-02-14 00:08:19 +0000 | [diff] [blame] | 95 | > |
| 96 | |
| 97 | <!-- Defines a Linker type to package compiler output --> |
gwt.team.bobv | 99abf17 | 2008-03-21 21:11:08 +0000 | [diff] [blame] | 98 | <!ELEMENT define-linker EMPTY> |
| 99 | <!ATTLIST define-linker |
scottb@google.com | 1b420bf | 2008-09-16 00:43:25 +0000 | [diff] [blame] | 100 | class CDATA #REQUIRED |
| 101 | name CDATA #REQUIRED |
gwt.team.bobv | 8cc661b | 2008-02-14 00:08:19 +0000 | [diff] [blame] | 102 | > |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 103 | |
| 104 | <!-- ^^^ Commonly-used elements ^^^ --> |
| 105 | <!-- VVV Deferred binding elements VVV --> |
| 106 | |
| 107 | <!-- Define a property and allowable values (comma-separated identifiers) --> |
| 108 | <!ELEMENT define-property EMPTY> |
| 109 | <!ATTLIST define-property |
| 110 | name CDATA #REQUIRED |
| 111 | values CDATA #REQUIRED |
| 112 | > |
rice@google.com | 365c568 | 2009-06-17 19:30:44 +0000 | [diff] [blame] | 113 | <!-- Define a configuration property --> |
| 114 | <!ELEMENT define-configuration-property EMPTY> |
| 115 | <!ATTLIST define-configuration-property |
| 116 | name CDATA #REQUIRED |
| 117 | is-multi-valued CDATA #REQUIRED |
| 118 | > |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 119 | <!-- Set the value of a previously-defined property --> |
| 120 | <!ELEMENT set-property EMPTY> |
| 121 | <!ATTLIST set-property |
| 122 | name CDATA #REQUIRED |
| 123 | value CDATA #REQUIRED |
| 124 | > |
scottb@google.com | 1b420bf | 2008-09-16 00:43:25 +0000 | [diff] [blame] | 125 | <!-- Set the value of a configuration property --> |
| 126 | <!ELEMENT set-configuration-property EMPTY> |
| 127 | <!ATTLIST set-configuration-property |
| 128 | name CDATA #REQUIRED |
| 129 | value CDATA #REQUIRED |
| 130 | > |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 131 | <!-- Add additional allowable values to a property --> |
| 132 | <!ELEMENT extend-property EMPTY> |
| 133 | <!ATTLIST extend-property |
| 134 | name CDATA #REQUIRED |
| 135 | values CDATA #REQUIRED |
| 136 | > |
rice@google.com | 365c568 | 2009-06-17 19:30:44 +0000 | [diff] [blame] | 137 | <!-- Add additional allowable values to a configuration property --> |
| 138 | <!ELEMENT extend-configuration-property EMPTY> |
| 139 | <!ATTLIST extend-configuration-property |
| 140 | name CDATA #REQUIRED |
| 141 | value CDATA #REQUIRED |
| 142 | > |
| 143 | <!-- Remove all allowable values from a configuration property --> |
| 144 | <!ELEMENT clear-configuration-property EMPTY> |
| 145 | <!ATTLIST clear-configuration-property |
| 146 | name CDATA #REQUIRED |
| 147 | > |
scottb@google.com | 6876b70 | 2008-03-07 18:01:39 +0000 | [diff] [blame] | 148 | <!-- Define a JavaScript fragment that will return the value for the named property at runtime --> |
| 149 | <!ELEMENT property-provider (#PCDATA)> |
| 150 | <!ATTLIST property-provider |
| 151 | name CDATA #REQUIRED |
| 152 | > |
| 153 | <!-- All possible predicates --> |
| 154 | <!ENTITY % predicates "when-property-is | when-type-assignable | when-type-is | all | any | none"> |
| 155 | <!-- Deferred binding assignment to substitute a named class --> |
| 156 | <!ELEMENT replace-with (%predicates;)*> |
| 157 | <!ATTLIST replace-with |
| 158 | class CDATA #REQUIRED |
| 159 | > |
| 160 | <!-- Deferred binding assignment to substitute a generated class --> |
| 161 | <!ELEMENT generate-with (%predicates;)*> |
| 162 | <!ATTLIST generate-with |
| 163 | class CDATA #REQUIRED |
| 164 | > |
| 165 | <!-- Deferred binding predicate that is true when a named property has a given value--> |
| 166 | <!ELEMENT when-property-is EMPTY> |
| 167 | <!ATTLIST when-property-is |
| 168 | name CDATA #REQUIRED |
| 169 | value CDATA #REQUIRED |
| 170 | > |
| 171 | <!-- Deferred binding predicate that is true for types in the type system that are assignable to the specified type --> |
| 172 | <!ELEMENT when-type-assignable EMPTY> |
| 173 | <!ATTLIST when-type-assignable |
| 174 | class CDATA #REQUIRED |
| 175 | > |
| 176 | <!-- Deferred binding predicate that is true for exactly one type in the type system --> |
| 177 | <!ELEMENT when-type-is EMPTY> |
| 178 | <!ATTLIST when-type-is |
| 179 | class CDATA #REQUIRED |
| 180 | > |
| 181 | <!-- Predicate that ANDs all child conditions --> |
| 182 | <!ELEMENT all (%predicates;)*> |
| 183 | <!-- Predicate that ORs all child conditions --> |
| 184 | <!ELEMENT any (%predicates;)*> |
| 185 | <!-- Predicate that NANDs all child conditions --> |
| 186 | <!ELEMENT none (%predicates;)*> |