< prev index next >

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

Print this page

      38  * <p>Java class for Environments complex type.
      39  *
      40  * <p>The following schema fragment specifies the expected content contained within this class.
      41  *
      42  * <pre>
      43  * &lt;complexType name="Environments">
      44  *   &lt;complexContent>
      45  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      46  *       &lt;sequence>
      47  *         &lt;element name="environment" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}Environment" maxOccurs="unbounded"/>
      48  *       &lt;/sequence>
      49  *     &lt;/restriction>
      50  *   &lt;/complexContent>
      51  * &lt;/complexType>
      52  * </pre>
      53  *
      54  *
      55  */
      56 public class COFEnvironments extends COFItem {
      57
      58 static LinkedHashMap xmlAttributes;
      59
      60         static LinkedHashMap xmlElements;
      61
      62         static String xmlTagName;
      63
      64         static {
      65         xmlElements = new LinkedHashMap();
      66         xmlElements.put("environment", "environment");
      67         xmlTagName = "environments";
      68     }
      69
      70         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      71     protected List/*<Environment>*/ environment;
      72
      73         /**
      74      * Gets the value of the environment property.
      75      *
      76      * <p>
      77      * This accessor method returns a reference to the live list,
      78      * not a snapshot. Therefore any modification you make to the
      79      * returned list will be present inside the JAXB object.
      80      * This is why there is not a <CODE>set</CODE> method for the environment property.
      81      *
      82      * <p>
      83      * For example, to add a new item, do as follows:
      84      * <pre>
      85      *    getEnvironment().add(newItem);
      86      * </pre>
      87      *
      88      *
      89      * <p>
      90      * Objects of the following type(s) are allowed in the list
      91      * {@link Environment }
      92      *
      93      *
      94      */
      95     public List/*<Environment>*/ getEnvironment() {
      96         if (environment == null) {
      97             environment = new ArrayList/*<Environment>*/();
      98         }
      99         return this.environment;
     100     }
     101
     102         LinkedHashMap getItemAttributes() {
     103                 return xmlAttributes;
     104         }
     105
     106         LinkedHashMap getItemElements() {
     107                 return xmlElements;
     108         }
     109
     110
     111     String getItemTagName() {
     112                 return xmlTagName;
     113         }
     114
     115
     116         /* (non-Javadoc)
     117          * @see com.sun.javatest.cof.COFItem#write(com.sun.javatest.util.XMLWriter)
     118          */
     119         void write(XMLWriter out) throws IOException {
     120                 out.newLine();
     121                 super.write(out);
     122         }
     123
     124 }
      38  * <p>Java class for Environments complex type.
      39  *
      40  * <p>The following schema fragment specifies the expected content contained within this class.
      41  *
      42  * <pre>
      43  * &lt;complexType name="Environments">
      44  *   &lt;complexContent>
      45  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      46  *       &lt;sequence>
      47  *         &lt;element name="environment" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}Environment" maxOccurs="unbounded"/>
      48  *       &lt;/sequence>
      49  *     &lt;/restriction>
      50  *   &lt;/complexContent>
      51  * &lt;/complexType>
      52  * </pre>
      53  *
      54  *
      55  */
      56 public class COFEnvironments extends COFItem {
      57
      58 static LinkedHashMap<String, String> xmlAttributes;
      59
      60         static LinkedHashMap<String, String> xmlElements;
      61
      62         static String xmlTagName;
      63
      64         static {
      65         xmlElements = new LinkedHashMap<>();
      66         xmlElements.put("environment", "environment");
      67         xmlTagName = "environments";
      68     }
      69
      70         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      71     protected List<COFEnvironment> environment;
      72
      73         /**
      74      * Gets the value of the environment property.
      75      *
      76      * <p>
      77      * This accessor method returns a reference to the live list,
      78      * not a snapshot. Therefore any modification you make to the
      79      * returned list will be present inside the JAXB object.
      80      * This is why there is not a <CODE>set</CODE> method for the environment property.
      81      *
      82      * <p>
      83      * For example, to add a new item, do as follows:
      84      * <pre>
      85      *    getEnvironment().add(newItem);
      86      * </pre>
      87      *
      88      *
      89      * <p>
      90      * Objects of the following type(s) are allowed in the list
      91      * {@link Environment }
      92      *
      93      *
      94      */
      95     public List<COFEnvironment> getEnvironment() {
      96         if (environment == null) {
      97             environment = new ArrayList<>();
      98         }
      99         return this.environment;
     100     }
     101
     102         LinkedHashMap<String, String> getItemAttributes() {
     103                 return xmlAttributes;
     104         }
     105
     106         LinkedHashMap<String, String> getItemElements() {
     107                 return xmlElements;
     108         }
     109
     110
     111     String getItemTagName() {
     112                 return xmlTagName;
     113         }
     114
     115
     116         /* (non-Javadoc)
     117          * @see com.sun.javatest.cof.COFItem#write(com.sun.javatest.util.XMLWriter)
     118          */
     119         void write(XMLWriter out) throws IOException {
     120                 out.newLine();
     121                 super.write(out);
     122         }
     123
     124 }

< prev index next >