xml.schema/src/org/netbeans/modules/xml/schema/resources/bindingschema_1_0.dtd
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 47 0df50cd33223
permissions -rw-r--r--
Added Missing copyright information in source files
     1 <!--namespace prefix to namespace uri mappings-->
     2 <!--
     3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 
     5 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
     6 
     7 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
     8 Other names may be trademarks of their respective owners.
     9 
    10 The contents of this file are subject to the terms of either the GNU
    11 General Public License Version 2 only ("GPL") or the Common
    12 Development and Distribution License("CDDL") (collectively, the
    13 "License"). You may not use this file except in compliance with the
    14 License. You can obtain a copy of the License at
    15 http://www.netbeans.org/cddl-gplv2.html
    16 or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    17 specific language governing permissions and limitations under the
    18 License.  When distributing the software, include this License Header
    19 Notice in each file and include the License file at
    20 nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
    21 particular file as subject to the "Classpath" exception as provided
    22 by Oracle in the GPL Version 2 section of the License file that
    23 accompanied this code. If applicable, add the following below the
    24 License Header, with the fields enclosed by brackets [] replaced by
    25 your own identifying information:
    26 "Portions Copyrighted [year] [name of copyright owner]"
    27 
    28 Contributor(s):
    29 
    30 The Original Software is NetBeans. The Initial Developer of the Original
    31 Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
    32 Microsystems, Inc. All Rights Reserved.
    33 
    34 If you wish your version of this file to be governed by only the CDDL
    35 or only the GPL Version 2, indicate your decision by adding
    36 "[Contributor] elects to include this software in this distribution
    37 under the [CDDL or GPL Version 2] license." If you do not indicate a
    38 single choice of license, a recipient has the option to distribute
    39 your version of this file under either the CDDL, the GPL Version 2 or
    40 to extend the choice of license to its licensees as provided above.
    41 However, if you add GPL Version 2 code and therefore, elected the GPL
    42 Version 2 license, then the option applies only if the new code is
    43 made subject to such option by the copyright holder.
    44 -->
    45 <!ENTITY % jaxb_prefix "%jaxb;:">
    46 <!--namespaces attributes for root element-->
    47 <!ENTITY % documentElementAttributes " xmlns:%jaxb; CDATA #IMPLIED">
    48 <!--the declarations below should not be modified-->
    49 <!--element name mappings-->
    50 <!ENTITY % globalBindings "%jaxb_prefix;globalBindings">
    51 <!ENTITY % schemaBindings "%jaxb_prefix;schemaBindings">
    52 <!ENTITY % package "%jaxb_prefix;package">
    53 <!ENTITY % nameXmlTransform "%jaxb_prefix;nameXmlTransform">
    54 <!ENTITY % class "%jaxb_prefix;class">
    55 <!ENTITY % javadoc "%jaxb_prefix;javadoc">
    56 <!ENTITY % property "%jaxb_prefix;property">
    57 <!ENTITY % javadoc "%jaxb_prefix;javadoc">
    58 <!ENTITY % baseType "%jaxb_prefix;baseType">
    59 <!ENTITY % javaType "%jaxb_prefix;javaType">
    60 <!ENTITY % typesafeEnumClass "%jaxb_prefix;typesafeEnumClass">
    61 <!ENTITY % javadoc "%jaxb_prefix;javadoc">
    62 <!ENTITY % typesafeEnumMember "%jaxb_prefix;typesafeEnumMember">
    63 <!ENTITY % javadoc "%jaxb_prefix;javadoc">
    64 <!ENTITY % javadoc "%jaxb_prefix;javadoc">
    65 <!ENTITY % typeName "%jaxb_prefix;typeName">
    66 <!ENTITY % elementName "%jaxb_prefix;elementName">
    67 <!ENTITY % modelGroupName "%jaxb_prefix;modelGroupName">
    68 <!ENTITY % anonymousTypeName "%jaxb_prefix;anonymousTypeName">
    69 <!ENTITY % bindings "%jaxb_prefix;bindings">
    70 <!--element and attribute declarations-->
    71 <!--Customization values defined in global scope.-->
    72 <!ELEMENT %globalBindings; ((%javaType;)*)?>
    73 <!ATTLIST %globalBindings;
    74 	underscoreBinding (asWordSeparator | asCharInWord) "asWordSeparator"
    75 	typesafeEnumMemberName (generateName | generateError) "generateError"
    76 	typesafeEnumBase CDATA "xs:NCname"
    77 	collectionType (indexed) #IMPLIED
    78 	fixedAttributeAsConstantProperty NMTOKEN #IMPLIED
    79 	enableFailFastCheck NMTOKEN #IMPLIED
    80 	generateIsSetMethod NMTOKEN #IMPLIED
    81 	enableJavaNamingConventions NMTOKEN "true"
    82 	bindingStyle (elementBinding | modelGroupBinding) "elementBinding"
    83 	choiceContentProperty NMTOKEN "false"
    84 	%documentElementAttributes; 
    85 >
    86 <!--Customization values with schema scope-->
    87 <!ELEMENT %schemaBindings; ((%package;)?, (%nameXmlTransform;)?)>
    88 <!ATTLIST %schemaBindings;
    89 	%documentElementAttributes; 
    90 >
    91 <!ELEMENT %package; ((%javadoc;)?)>
    92 <!ATTLIST %package;
    93 	name CDATA #IMPLIED
    94 >
    95 <!ELEMENT %nameXmlTransform; ((%typeName;)?, (%elementName;)?, (%modelGroupName;)?, (%anonymousTypeName;)?)>
    96 <!--Customize interface and implementation class.-->
    97 <!ELEMENT %class; ((%javadoc;)?)>
    98 <!ATTLIST %class;
    99 	name CDATA #IMPLIED
   100 	implClass CDATA #IMPLIED
   101 	%documentElementAttributes; 
   102 >
   103 <!ELEMENT %javadoc; (#PCDATA)>
   104 <!--Customize property.-->
   105 <!ELEMENT %property; ((%javadoc;)?, (%baseType;)?)>
   106 <!ATTLIST %property;
   107 	name CDATA #IMPLIED
   108 	collectionType (indexed) #IMPLIED
   109 	fixedAttributeAsConstantProperty NMTOKEN #IMPLIED
   110 	enableFailFastCheck NMTOKEN #IMPLIED
   111 	generateIsSetMethod NMTOKEN #IMPLIED
   112 	%documentElementAttributes; 
   113 >
   114 <!ELEMENT %javadoc; (#PCDATA)>
   115 <!ELEMENT %baseType; ((%javaType;)?)>
   116 <!--Data type conversions;  overriding builtins-->
   117 <!ELEMENT %javaType; EMPTY>
   118 <!ATTLIST %javaType;
   119 	name CDATA #REQUIRED
   120 	xmlType CDATA #IMPLIED
   121 	parseMethod CDATA #IMPLIED
   122 	printMethod CDATA #IMPLIED
   123 	hasNsContext NMTOKEN "false"
   124 	%documentElementAttributes; 
   125 >
   126 <!-- Bind to a type safe enumeration class.-->
   127 <!ELEMENT %typesafeEnumClass; ((%javadoc;)?, (%typesafeEnumMember;)*)>
   128 <!ATTLIST %typesafeEnumClass;
   129 	name CDATA #IMPLIED
   130 	%documentElementAttributes; 
   131 >
   132 <!ELEMENT %javadoc; (#PCDATA)>
   133 <!-- Enumeration member name in a type safe enumeration class.-->
   134 <!ELEMENT %typesafeEnumMember; ((%javadoc;)?)>
   135 <!ATTLIST %typesafeEnumMember;
   136 	value CDATA #IMPLIED
   137 	name CDATA #REQUIRED
   138 	%documentElementAttributes; 
   139 >
   140 <!ELEMENT %javadoc; (#PCDATA)>
   141 <!ELEMENT %javadoc; (#PCDATA)>
   142 <!--Mapping rule for type definitions.-->
   143 <!ELEMENT %typeName; EMPTY>
   144 <!ATTLIST %typeName;
   145 	prefix CDATA #IMPLIED
   146 	suffix CDATA #IMPLIED
   147 >
   148 <!--Mapping rule for elements-->
   149 <!ELEMENT %elementName; EMPTY>
   150 <!ATTLIST %elementName;
   151 	prefix CDATA #IMPLIED
   152 	suffix CDATA #IMPLIED
   153 >
   154 <!--Mapping rule  for model group-->
   155 <!ELEMENT %modelGroupName; EMPTY>
   156 <!ATTLIST %modelGroupName;
   157 	prefix CDATA #IMPLIED
   158 	suffix CDATA #IMPLIED
   159 >
   160 <!--Mapping rule for class names generated for an anonymous type.-->
   161 <!ELEMENT %anonymousTypeName; EMPTY>
   162 <!ATTLIST %anonymousTypeName;
   163 	prefix CDATA #IMPLIED
   164 	suffix CDATA #IMPLIED
   165 >
   166 <!--
   167   Binding declaration(s) for a remote schema.
   168   If attribute node is set, the binding declaraions
   169   are associated with part of the remote schema
   170   designated by schemaLocation attribute. The node
   171   attribute identifies the node in the remote schema
   172   to associate the binding declaration(s) with.
   173     
   174       -->
   175 <!ELEMENT %bindings; ((%globalBindings; | %schemaBindings; | %class; | %property; | %typesafeEnumClass; | %typesafeEnumMember; | %javaType;)*)>
   176 <!ATTLIST %bindings;
   177 	schemaLocation CDATA #IMPLIED
   178 	node CDATA #IMPLIED
   179 	version CDATA #IMPLIED
   180 	jaxb:version CDATA #IMPLIED
   181 	%documentElementAttributes; 
   182 >