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.XmlRootElement;
11 import javax.xml.bind.annotation.XmlType;
12
13
14 /**
15 * Defines a policy for sharing data via federated partners and components, such as UDDI
16 *
17 * <p>Java class for FederationPolicyCollection complex type.
18 *
19 * <p>The following schema fragment specifies the expected content contained within this class.
20 *
21 * <pre>
22 * <complexType name="FederationPolicyCollection">
23 * <complexContent>
24 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25 * <sequence>
26 * <element name="FederationPolicy" type="{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}FederationPolicy" maxOccurs="unbounded" minOccurs="0"/>
27 * </sequence>
28 * </restriction>
29 * </complexContent>
30 * </complexType>
31 * </pre>
32 *
33 *
34 */
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "FederationPolicyCollection", propOrder = {
37 "federationPolicy"
38 })
39 @XmlRootElement
40 public class FederationPolicyCollection
41 implements Serializable
42 {
43
44 private final static long serialVersionUID = 1L;
45 @XmlElement(name = "FederationPolicy")
46 protected List<FederationPolicy> federationPolicy;
47
48 /**
49 * Gets the value of the federationPolicy property.
50 *
51 * <p>
52 * This accessor method returns a reference to the live list,
53 * not a snapshot. Therefore any modification you make to the
54 * returned list will be present inside the JAXB object.
55 * This is why there is not a <CODE>set</CODE> method for the federationPolicy property.
56 *
57 * <p>
58 * For example, to add a new item, do as follows:
59 * <pre>
60 * getFederationPolicy().add(newItem);
61 * </pre>
62 *
63 *
64 * <p>
65 * Objects of the following type(s) are allowed in the list
66 * {@link FederationPolicy }
67 *
68 *
69 */
70 public List<FederationPolicy> getFederationPolicy() {
71 if (federationPolicy == null) {
72 federationPolicy = new ArrayList<FederationPolicy>();
73 }
74 return this.federationPolicy;
75 }
76
77 public boolean isSetFederationPolicy() {
78 return ((this.federationPolicy!= null)&&(!this.federationPolicy.isEmpty()));
79 }
80
81 public void unsetFederationPolicy() {
82 this.federationPolicy = null;
83 }
84
85 }