< prev index next >

## src/com/sun/javatest/cof/COFReportAnnotations.java

Print this page

      37  * <p>The following schema fragment specifies the expected content contained within this class.
      38  *
      39  * <pre>
      40  * &lt;complexType name="ReportAnnotations">
      41  *   &lt;complexContent>
      42  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      43  *       &lt;sequence>
      44  *         &lt;element name="annotation" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}ReportAnnotation" maxOccurs="unbounded" minOccurs="0"/>
      45  *       &lt;/sequence>
      46  *     &lt;/restriction>
      47  *   &lt;/complexContent>
      48  * &lt;/complexType>
      49  * </pre>
      50  */
      51 /*@XmlAccessorType(XmlAccessType.FIELD)
      52 @XmlType(name = "ReportAnnotations", propOrder = {
      53     "annotation"
      54 })*/
      55 public class COFReportAnnotations extends COFItem{
      56
      57 static LinkedHashMap xmlAttributes;
      58     static LinkedHashMap xmlElements;
      59
      60         static String xmlTagName;
      61
      62         static {
      63                 xmlElements = new LinkedHashMap();
      64                 xmlElements.put("annotation","annotation");
      65                 xmlTagName = "annotations";
      66         }
      67
      68         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      69     protected List/*<COFReportAnnotation>*/ annotation;
      70
      71         /**
      72      * Gets the value of the annotation property.
      73      *
      74      * <p>
      75      * This accessor method returns a reference to the live list,
      76      * not a snapshot. Therefore any modification you make to the
      77      * returned list will be present inside the JAXB object.
      78      * This is why there is not a <CODE>set</CODE> method for the annotation property.
      79      *
      80      * <p>
      81      * For example, to add a new item, do as follows:
      82      * <pre>
      83      *    getAnnotation().add(newItem);
      84      * </pre>
      85      *
      86      *
      87      * <p>
      88      * Objects of the following type(s) are allowed in the list
      89      * {@link COFReportAnnotation }
      90      *
      91      *
      92      */
      93     public List/*<COFReportAnnotation>*/ getAnnotation() {
      94         if (annotation == null) {
      95             annotation = new ArrayList/*<COFReportAnnotation>*/();
      96         }
      97         return this.annotation;
      98     }
      99
     100         LinkedHashMap getItemAttributes() {
     101                 return xmlAttributes;
     102         }
     103
     104     LinkedHashMap getItemElements() {
     105                 return xmlElements;
     106         }
     107
     108         String getItemTagName() {
     109                 return xmlTagName;
     110         }
     111
     112 }
      37  * <p>The following schema fragment specifies the expected content contained within this class.
      38  *
      39  * <pre>
      40  * &lt;complexType name="ReportAnnotations">
      41  *   &lt;complexContent>
      42  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      43  *       &lt;sequence>
      44  *         &lt;element name="annotation" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}ReportAnnotation" maxOccurs="unbounded" minOccurs="0"/>
      45  *       &lt;/sequence>
      46  *     &lt;/restriction>
      47  *   &lt;/complexContent>
      48  * &lt;/complexType>
      49  * </pre>
      50  */
      51 /*@XmlAccessorType(XmlAccessType.FIELD)
      52 @XmlType(name = "ReportAnnotations", propOrder = {
      53     "annotation"
      54 })*/
      55 public class COFReportAnnotations extends COFItem{
      56
      57 static LinkedHashMap<String, String> xmlAttributes;
      58     static LinkedHashMap<String, String> xmlElements;
      59
      60         static String xmlTagName;
      61
      62         static {
      63                 xmlElements = new LinkedHashMap<>();
      64                 xmlElements.put("annotation","annotation");
      65                 xmlTagName = "annotations";
      66         }
      67
      68         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      69     protected List<COFReportAnnotation> annotation;
      70
      71         /**
      72      * Gets the value of the annotation property.
      73      *
      74      * <p>
      75      * This accessor method returns a reference to the live list,
      76      * not a snapshot. Therefore any modification you make to the
      77      * returned list will be present inside the JAXB object.
      78      * This is why there is not a <CODE>set</CODE> method for the annotation property.
      79      *
      80      * <p>
      81      * For example, to add a new item, do as follows:
      82      * <pre>
      83      *    getAnnotation().add(newItem);
      84      * </pre>
      85      *
      86      *
      87      * <p>
      88      * Objects of the following type(s) are allowed in the list
      89      * {@link COFReportAnnotation }
      90      *
      91      *
      92      */
      93     public List<COFReportAnnotation> getAnnotation() {
      94         if (annotation == null) {
      95             annotation = new ArrayList<>();
      96         }
      97         return this.annotation;
      98     }
      99
     100         LinkedHashMap<String, String> getItemAttributes() {
     101                 return xmlAttributes;
     102         }
     103
     104     LinkedHashMap<String, String> getItemElements() {
     105                 return xmlElements;
     106         }
     107
     108         String getItemTagName() {
     109                 return xmlTagName;
     110         }
     111
     112 }

< prev index next >