< prev index next >

src/java.xml.bind/share/classes/javax/xml/bind/annotation/package.html

Print this page




 233           <b>mapping annotation:</b>A JAXB 2.0 defined program
 234           annotation based on the JSR 175 programming annotation
 235           facility.
 236          <h3>Common Usage Constraints</h3>
 237           <p>The following usage constraints are defined here since
 238           they apply to more than annotation:
 239           <ul>
 240             <li> For a property, a given annotation can be applied to
 241                  either read or write property but not both. </li>
 242     
 243             <li> A property name must be different from any other
 244                  property name in any of the super classes of the
 245                  class being mapped. </li>
 246  
 247             <li> A mapped field name or the decapitalized name of a
 248                  mapped property must be unique within a class. </li>
 249           </ul>
 250          <h3>Notations</h3>
 251          <b>Namespace prefixes</b> 
 252          <p>The following namespace prefixes are used in the XML Schema
 253            fragments in this package.<p>
 254     
 255         <table border="1" cellpadding="4" cellspacing="3">
 256           <tbody>
 257             <tr>
 258               <td><b>Prefix</b></td>
 259               <td><b>Namespace</b></td>
 260               <td><b>Notes</b></td>
 261            </tr>
 262  
 263            <tr valign="top">
 264              <td>xs</td>
 265              <td>http://www.w3.org/2001/XMLSchema</td>
 266              <td>Namespace of XML Schema namespace</td>
 267            </tr>
 268            <tr valign="top">
 269              <td>ref</td>
 270              <td>http://ws-i.org/profiles/basic/1.1/xsd</td>
 271              <td>Namespace for swaref schema component</td>
 272            </tr>
 273            <tr valign="top">


 233           <b>mapping annotation:</b>A JAXB 2.0 defined program
 234           annotation based on the JSR 175 programming annotation
 235           facility.
 236          <h3>Common Usage Constraints</h3>
 237           <p>The following usage constraints are defined here since
 238           they apply to more than annotation:
 239           <ul>
 240             <li> For a property, a given annotation can be applied to
 241                  either read or write property but not both. </li>
 242 
 243             <li> A property name must be different from any other
 244                  property name in any of the super classes of the
 245                  class being mapped. </li>
 246  
 247             <li> A mapped field name or the decapitalized name of a
 248                  mapped property must be unique within a class. </li>
 249           </ul>
 250          <h3>Notations</h3>
 251          <b>Namespace prefixes</b> 
 252          <p>The following namespace prefixes are used in the XML Schema
 253            fragments in this package.
 254 
 255         <table border="1" cellpadding="4" cellspacing="3">
 256           <tbody>
 257             <tr>
 258               <td><b>Prefix</b></td>
 259               <td><b>Namespace</b></td>
 260               <td><b>Notes</b></td>
 261            </tr>
 262  
 263            <tr valign="top">
 264              <td>xs</td>
 265              <td>http://www.w3.org/2001/XMLSchema</td>
 266              <td>Namespace of XML Schema namespace</td>
 267            </tr>
 268            <tr valign="top">
 269              <td>ref</td>
 270              <td>http://ws-i.org/profiles/basic/1.1/xsd</td>
 271              <td>Namespace for swaref schema component</td>
 272            </tr>
 273            <tr valign="top">
< prev index next >