< prev index next >

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

Print this page

      52  *   &lt;complexContent>
      53  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      54  *       &lt;sequence>
      55  *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
      56  *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
      57  *       &lt;/sequence>
      58  *     &lt;/restriction>
      59  *   &lt;/complexContent>
      60  * &lt;/complexType>
      61  * </pre>
      62  *
      63  *
      64  */
      65 /*@XmlAccessorType(XmlAccessType.FIELD)
      66 @XmlType(name = "ReportAnnotation", propOrder = {
      67     "name",
      68     "value"
      69 })*/
      70 public class COFReportAnnotation extends COFItem{
      71
      72 static LinkedHashMap xmlAttributes;
      73 static LinkedHashMap xmlElements;
      74
      75     static String xmlTagName;
      76
      77     static  {
      78                 xmlElements = new LinkedHashMap();
      79                 xmlElements.put("name", "name");
      80                 xmlElements.put("value","value");
      81                 xmlTagName = "annotation";
      82         }
      83     //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      84 //    protected List/*<String>*/ name;
      85     protected List/*<String>*/ name;
      86
      87         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      88     protected List/*<String>*/ value;
      89
      90         LinkedHashMap getItemAttributes() {
      91                 return xmlAttributes;
      92         }
      93
      94         LinkedHashMap getItemElements() {
      95                 return xmlElements;
      96         }
      97
      98         String getItemTagName() {
      99                 return xmlTagName;
     100         }
     101
     102         /**
     103      * Gets the value of the name property.
     104      *
     105      * <p>
     106      * This accessor method returns a reference to the live list,
     107      * not a snapshot. Therefore any modification you make to the
     108      * returned list will be present inside the JAXB object.
     109      * This is why there is not a <CODE>set</CODE> method for the name property.
     110      *
     111      * <p>
     112      * For example, to add a new item, do as follows:
     113      * <pre>
     114      *    getName().add(newItem);
     115      * </pre>
     116      *
     117      *
     118      * <p>
     119      * Objects of the following type(s) are allowed in the list
     120      * {@link String }
     121      *
     122      *
     123      */
     124     public List/*<String>*/ getName() {
     125         if (name == null) {
     126             name = new ArrayList/*<String>*/();
     127         }
     128         return this.name;
     129     }
     130
     131         /**
     132      * Gets the value of the value property.
     133      *
     134      * <p>
     135      * This accessor method returns a reference to the live list,
     136      * not a snapshot. Therefore any modification you make to the
     137      * returned list will be present inside the JAXB object.
     138      * This is why there is not a <CODE>set</CODE> method for the value property.
     139      *
     140      * <p>
     141      * For example, to add a new item, do as follows:
     142      * <pre>
     143      *    getValue().add(newItem);
     144      * </pre>
     145      *
     146      *
     147      * <p>
     148      * Objects of the following type(s) are allowed in the list
     149      * {@link String }
     150      *
     151      *
     152      */
     153     public List/*<String>*/ getValue() {
     154         if (value == null) {
     155             value = new ArrayList/*<String>*/();
     156         }
     157         return this.value;
     158     }
     159
     160 }
      52  *   &lt;complexContent>
      53  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      54  *       &lt;sequence>
      55  *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
      56  *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
      57  *       &lt;/sequence>
      58  *     &lt;/restriction>
      59  *   &lt;/complexContent>
      60  * &lt;/complexType>
      61  * </pre>
      62  *
      63  *
      64  */
      65 /*@XmlAccessorType(XmlAccessType.FIELD)
      66 @XmlType(name = "ReportAnnotation", propOrder = {
      67     "name",
      68     "value"
      69 })*/
      70 public class COFReportAnnotation extends COFItem{
      71
      72 static LinkedHashMap<String, String> xmlAttributes;
      73 static LinkedHashMap<String, String> xmlElements;
      74
      75     static String xmlTagName;
      76
      77     static  {
      78                 xmlElements = new LinkedHashMap<>();
      79                 xmlElements.put("name", "name");
      80                 xmlElements.put("value","value");
      81                 xmlTagName = "annotation";
      82         }
      83     //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      84     protected List<String> name;

      85
      86         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      87     protected List<String> value;
      88
      89         LinkedHashMap<String, String> getItemAttributes() {
      90                 return xmlAttributes;
      91         }
      92
      93         LinkedHashMap<String, String> getItemElements() {
      94                 return xmlElements;
      95         }
      96
      97         String getItemTagName() {
      98                 return xmlTagName;
      99         }
     100
     101         /**
     102      * Gets the value of the name property.
     103      *
     104      * <p>
     105      * This accessor method returns a reference to the live list,
     106      * not a snapshot. Therefore any modification you make to the
     107      * returned list will be present inside the JAXB object.
     108      * This is why there is not a <CODE>set</CODE> method for the name property.
     109      *
     110      * <p>
     111      * For example, to add a new item, do as follows:
     112      * <pre>
     113      *    getName().add(newItem);
     114      * </pre>
     115      *
     116      *
     117      * <p>
     118      * Objects of the following type(s) are allowed in the list
     119      * {@link String }
     120      *
     121      *
     122      */
     123     public List<String> getName() {
     124         if (name == null) {
     125             name = new ArrayList<>();
     126         }
     127         return this.name;
     128     }
     129
     130         /**
     131      * Gets the value of the value property.
     132      *
     133      * <p>
     134      * This accessor method returns a reference to the live list,
     135      * not a snapshot. Therefore any modification you make to the
     136      * returned list will be present inside the JAXB object.
     137      * This is why there is not a <CODE>set</CODE> method for the value property.
     138      *
     139      * <p>
     140      * For example, to add a new item, do as follows:
     141      * <pre>
     142      *    getValue().add(newItem);
     143      * </pre>
     144      *
     145      *
     146      * <p>
     147      * Objects of the following type(s) are allowed in the list
     148      * {@link String }
     149      *
     150      *
     151      */
     152     public List<String> getValue() {
     153         if (value == null) {
     154             value = new ArrayList<>();
     155         }
     156         return this.value;
     157     }
     158
     159 }

< prev index next >