< prev index next >

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

< prev index next >