< prev index next >

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

Print this page

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

< prev index next >