1 /*
2 * Copyright 2001-2008 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18
19 package org.uddi.policy_v3;
20
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.List;
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlRootElement;
28 import javax.xml.bind.annotation.XmlTransient;
29 import javax.xml.bind.annotation.XmlType;
30
31
32 /**
33 * This element should be used to articulate one policy.
34 *
35 * <p>Java class for anonymous complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * <complexType>
41 * <complexContent>
42 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 * <sequence>
44 * <element ref="{urn:uddi-org:policy_v3}policyName"/>
45 * <element ref="{urn:uddi-org:policy_v3}policyDescription" maxOccurs="unbounded"/>
46 * <element ref="{urn:uddi-org:policy_v3}policyDecisionPoint"/>
47 * </sequence>
48 * </restriction>
49 * </complexContent>
50 * </complexType>
51 * </pre>
52 *
53 *
54 */
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "", propOrder = {
57 "policyName",
58 "policyDescription",
59 "policyDecisionPoint"
60 })
61 @XmlRootElement(name = "policy")
62 public class Policy implements Serializable{
63
64 @XmlTransient
65 private static final long serialVersionUID = -3788182208582126483L;
66 @XmlElement(required = true)
67 protected String policyName;
68 @XmlElement(required = true)
69 protected List<PolicyDescriptionType> policyDescription;
70 @XmlElement(required = true)
71 protected String policyDecisionPoint;
72
73 /**
74 * Gets the value of the policyName property.
75 *
76 * @return
77 * possible object is
78 * {@link String }
79 *
80 */
81 public String getPolicyName() {
82 return policyName;
83 }
84
85 /**
86 * Sets the value of the policyName property.
87 *
88 * @param value
89 * allowed object is
90 * {@link String }
91 *
92 */
93 public void setPolicyName(String value) {
94 this.policyName = value;
95 }
96
97 /**
98 * Gets the value of the policyDescription property.
99 *
100 * <p>
101 * This accessor method returns a reference to the live list,
102 * not a snapshot. Therefore any modification you make to the
103 * returned list will be present inside the JAXB object.
104 * This is why there is not a <CODE>set</CODE> method for the policyDescription property.
105 *
106 * <p>
107 * For example, to add a new item, do as follows:
108 * <pre>
109 * getPolicyDescription().add(newItem);
110 * </pre>
111 *
112 *
113 * <p>
114 * Objects of the following type(s) are allowed in the list
115 * {@link PolicyDescriptionType }
116 *
117 *
118 */
119 public List<PolicyDescriptionType> getPolicyDescription() {
120 if (policyDescription == null) {
121 policyDescription = new ArrayList<PolicyDescriptionType>();
122 }
123 return this.policyDescription;
124 }
125
126 /**
127 * Gets the value of the policyDecisionPoint property.
128 *
129 * @return
130 * possible object is
131 * {@link String }
132 *
133 */
134 public String getPolicyDecisionPoint() {
135 return policyDecisionPoint;
136 }
137
138 /**
139 * Sets the value of the policyDecisionPoint property.
140 *
141 * @param value
142 * allowed object is
143 * {@link String }
144 *
145 */
146 public void setPolicyDecisionPoint(String value) {
147 this.policyDecisionPoint = value;
148 }
149
150 }