xml.schema/javahelp/org/netbeans/modules/xml/schema/schemaview/addingcomponents.html
author Milutin Kristofic <mkristofic@netbeans.org>
Tue, 31 Jan 2017 14:20:36 +0100
changeset 1584 ddcac47bfed1
parent 1241 f7c3471c4a3f
permissions -rw-r--r--
Added Missing license terms
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     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 <html>
    46 <head>
    47 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    48 <link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
    49 <title>XML Schema Editor: Adding XML Schema Components Using the Schema View</title>
    50 </head>
    51 <body>
    52 <h2>XML Schema Editor: Adding XML Schema Components Using the Schema View</h2>
    53 <p><small><a href="#seealso">See Also</a></small></p>
    54 <p>When you add XML schema components in the Schema view, a dialog box that lets you customize the new component may open automatically. The following table lists the main components that you can add in the Schema view.</p>
    55 <ul class="note">
    56 <li>For those schema components not listed in the following table, use this step as a starting point: In the Schema view, right-click the node of the schema component where you want to add the new component and choose Add&nbsp;&gt;&nbsp;<i>component</i> from the pop-up menu.</li>
    57 </ul>
    58 <table border="1" cellpadding="5" cellspacing="0">
    59 <tr valign="top">
    60 <th scope="col" align="left" nowrap>To add this schema component&nbsp;...</th>
    61 <th scope="col" align="left">Follow these instructions&nbsp;...</th>
    62 </tr>
    63 <tr valign="top">
    64 <td>Annotation</td>
    65 <td><a href="../tasks/addingannotation.html">Adding an <tt>annotation</tt> Component to an XML Schema File</a></td>
    66 </tr>
    67 <tr valign="top">
    68 <td>Attribute</td>
    69 <td><a href="../tasks/addingglobalattribute.html">Adding a Global <tt>attribute</tt> Component to an XML Schema File</a><br>
    70 -or-<br>
    71 <a href="../tasks/addinglocalattribute.html">Adding a Local <tt>attribute</tt> Component to an XML Schema File</a></td>
    72 </tr>
    73 <tr valign="top">
    74 <td>Attribute reference</td>
    75 <td><a href="../tasks/addingreference.html" title="Adding a Reference Component to an XML Schema File">Adding a Reference Component to an XML Schema File</a></td>
    76 </tr>
    77 <tr valign="top">
    78 <td>Attribute Group</td>
    79 <td><a href="../tasks/addingattributegroup.html">Adding an <tt>attributeGroup</tt> Component to an XML Schema File</a></td>
    80 </tr>
    81 <tr valign="top">
    82 <td>Attribute Group reference</td>
    83 <td><a href="../tasks/addingreference.html" title="Adding a Reference Component to an XML Schema File">Adding a Reference Component to an XML Schema File</a></td>
    84 </tr>
    85 <tr valign="top">
    86 <td>Complex Type</td>
    87 <td><a href="../tasks/addingglobalcomplextype.html" title="Adding a Global complexType Component to an XML Schema File">Adding a Global <tt>complexType</tt> Component to an XML Schema File</a><br>
    88 -or-<br>
    89 <a href="../tasks/addinglocalcomplextype.html" title="Adding a Local complexType Component to an XML Schema File">Adding a Local <tt>complexType</tt> Component to an XML Schema File</a></td>
    90 </tr>
    91 <tr valign="top">
    92 <td>Compositor</td>
    93 <td><a href="../tasks/addingcompositors.html" title="Adding a Compositor to an XML Schema File">Adding a Compositor to an XML Schema File</a></td>
    94 </tr>
    95 <tr valign="top">
    96 <td>Documentation</td>
    97 <td><a href="../tasks/addingdocumentation.html">Adding a <tt>documentation</tt> Component to an XML Schema File</a></td>
    98 </tr>
    99 <tr valign="top">
   100 <td>Element</td>
   101 <td><a href="../tasks/addingglobalelement.html">Adding a Global <tt>element</tt> Component to an XML Schema File</a><br>
   102 -or-<br>
   103 <a href="../tasks/addinglocalelement.html">Adding a Local <tt>element</tt> Component to an XML Schema File</a></td>
   104 </tr>
   105 <tr valign="top">
   106 <td>Element reference</td>
   107 <td><a href="../tasks/addingreference.html" title="Adding a Reference Component to an XML Schema File">Adding a Reference Component to an XML Schema File</a></td>
   108 </tr>
   109 <tr valign="top">
   110 <td>Enumeration</td>
   111 <td><a href="../tasks/addingenumeration.html" title="Adding an enumeration Constraint for a simpleType Component in an XML Schema File">Adding an <tt>enumeration</tt> Constraint for a <tt>simpleType</tt> Component in an XML Schema File</a></td>
   112 </tr>
   113 <tr valign="top">
   114 <td>External reference</td>
   115 <td><a href="../tasks/addingimport.html">Adding an <tt>import</tt> Component to an XML Schema File</a><br>
   116 -or-<br>
   117 <a href="../tasks/addinginclude.html">Adding an <tt>include</tt> Component to an XML Schema File</a><br>
   118 -or-<br>
   119 <a href="../tasks/addingredefine.html">Adding a <tt>redefine</tt> Component to an XML Schema File</a></td>
   120 </tr>
   121 <tr valign="top">
   122 <td>Group</td>
   123 <td><a href="../tasks/addinggroup.html">Adding a <tt>group</tt> Component to an XML Schema File</a></td>
   124 </tr>
   125 <tr valign="top">
   126 <td>Group reference</td>
   127 <td><a href="../tasks/addingreference.html" title="Adding a Reference Component to an XML Schema File">Adding a Reference Component to an XML Schema File</a></td>
   128 </tr>
   129 <tr valign="top">
   130 <td>Simple Type</td>
   131 <td><a href="../tasks/addingglobalsimpletype.html" title="Adding a Global simpleType Component to an XML Schema File">Adding a Global <tt>simpleType</tt> Component to an XML Schema File</a><br>
   132 -or-<br>
   133 <a href="../tasks/addinglocalsimpletype.html" title="Adding a Local simpleType Component to an XML Schema File">Adding a Local <tt>simpleType</tt> Component to an XML Schema File</a></td>
   134 </tr>
   135 </table>
   136 
   137 <dl>
   138 <dt><a name="seealso">See Also</a></dt>
   139 <dd><a href="editingcomponents.html">Editing XML Schema Components Using the Schema View</a></dd>
   140 <dd><a href="about.html" title="XML Schema Editor: About the Schema View">About the Schema View</a></dd>
   141 </dl>
   142 <hr>
   143 <small><a href="../credits.html">Legal Notices</a></small>
   144 <table cellpadding="150" border="0"> 
   145 <tr><td>&nbsp;</td></tr> 
   146 <tr><td>&nbsp;</td></tr> 
   147 <tr><td>&nbsp;</td></tr> 
   148 </table> 
   149 </body>
   150 </html>