View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.policyconfiguration;
3   
4   import java.io.Serializable;
5   import java.util.ArrayList;
6   import java.util.List;
7   import javax.xml.bind.annotation.XmlAccessType;
8   import javax.xml.bind.annotation.XmlAccessorType;
9   import javax.xml.bind.annotation.XmlElement;
10  import javax.xml.bind.annotation.XmlType;
11  
12  
13  /**
14   * collection of service policies
15   * 
16   * <p>Java class for ArrayOfServicePolicy complex type.
17   * 
18   * <p>The following schema fragment specifies the expected content contained within this class.
19   * 
20   * <pre>
21   * &lt;complexType name="ArrayOfServicePolicy">
22   *   &lt;complexContent>
23   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24   *       &lt;sequence>
25   *         &lt;element name="ServicePolicy" type="{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}ServicePolicy" maxOccurs="unbounded"/>
26   *       &lt;/sequence>
27   *     &lt;/restriction>
28   *   &lt;/complexContent>
29   * &lt;/complexType>
30   * </pre>
31   * 
32   * 
33   */
34  @XmlAccessorType(XmlAccessType.FIELD)
35  @XmlType(name = "ArrayOfServicePolicy", propOrder = {
36      "servicePolicy"
37  })
38  public class ArrayOfServicePolicy
39      implements Serializable
40  {
41  
42      private final static long serialVersionUID = 1L;
43      @XmlElement(name = "ServicePolicy", required = true, nillable = true)
44      protected List<ServicePolicy> servicePolicy;
45  
46      /**
47       * Gets the value of the servicePolicy property.
48       * 
49       * <p>
50       * This accessor method returns a reference to the live list,
51       * not a snapshot. Therefore any modification you make to the
52       * returned list will be present inside the JAXB object.
53       * This is why there is not a <CODE>set</CODE> method for the servicePolicy property.
54       * 
55       * <p>
56       * For example, to add a new item, do as follows:
57       * <pre>
58       *    getServicePolicy().add(newItem);
59       * </pre>
60       * 
61       * 
62       * <p>
63       * Objects of the following type(s) are allowed in the list
64       * {@link ServicePolicy }
65       * 
66       * 
67       */
68      public List<ServicePolicy> getServicePolicy() {
69          if (servicePolicy == null) {
70              servicePolicy = new ArrayList<ServicePolicy>();
71          }
72          return this.servicePolicy;
73      }
74  
75      public boolean isSetServicePolicy() {
76          return ((this.servicePolicy!= null)&&(!this.servicePolicy.isEmpty()));
77      }
78  
79      public void unsetServicePolicy() {
80          this.servicePolicy = null;
81      }
82  
83  }