KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitmodelext > policy > impl > AllImpl


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.websvc.wsitmodelext.policy.impl;
21
22 import org.netbeans.modules.websvc.wsitmodelext.rm.FlowControl;
23 import org.netbeans.modules.websvc.wsitmodelext.rm.Ordered;
24 import org.netbeans.modules.websvc.wsitmodelext.rm.RMAssertion;
25 import org.netbeans.modules.websvc.wsitmodelext.security.Wss10;
26 import org.netbeans.modules.websvc.wsitmodelext.security.Wss11;
27 import org.netbeans.modules.websvc.wsitmodelext.policy.All;
28 import org.netbeans.modules.websvc.wsitmodelext.policy.ExactlyOne;
29 import org.netbeans.modules.websvc.wsitmodelext.policy.Policy;
30 import org.netbeans.modules.websvc.wsitmodelext.policy.PolicyQName;
31 import org.netbeans.modules.websvc.wsitmodelext.policy.PolicyReference;
32 import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
33 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
34 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor;
35 import org.w3c.dom.Element JavaDoc;
36
37 import java.util.Collections JavaDoc;
38
39 /**
40  *
41  * @author Martin Grebac
42  */

43 public class AllImpl extends PolicyComponentImpl implements All {
44     
45     /**
46      * Creates a new instance of AllImpl
47      */

48     public AllImpl(WSDLModel model, Element JavaDoc e) {
49         super(model, e);
50     }
51     
52     public AllImpl(WSDLModel model){
53         this(model, createPrefixedElement(PolicyQName.ALL.getQName(), model));
54     }
55
56     @Override JavaDoc
57     public void accept(WSDLVisitor visitor) {
58         visitor.visit(this);
59     }
60
61     public void setAll(All all) {
62         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
63         setChild(All.class, ALL_PROPERTY, all, classes);
64     }
65
66     public All getAll() {
67         return getChild(All.class);
68     }
69
70     public void removeAll(All all) {
71         removeChild(ALL_PROPERTY, all);
72     }
73
74     public void setExactlyOne(ExactlyOne exactlyOne) {
75         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
76         setChild(ExactlyOne.class, EXACTLYONE_PROPERTY, exactlyOne, classes);
77     }
78
79     public ExactlyOne getExactlyOne() {
80         return getChild(ExactlyOne.class);
81     }
82
83     public void removeExactlyOne(ExactlyOne exactlyOne) {
84         removeChild(EXACTLYONE_PROPERTY, exactlyOne);
85     }
86
87     public void setPolicy(Policy policy) {
88         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
89         setChild(Policy.class, POLICY_PROPERTY, policy, classes);
90     }
91
92     public Policy getPolicy() {
93         return getChild(Policy.class);
94     }
95
96     public void removePolicy(Policy policy) {
97         removeChild(POLICY_PROPERTY, policy);
98     }
99
100     public void setPolicyReference(PolicyReference policyReference) {
101         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
102         setChild(PolicyReference.class, POLICYREFERENCE_PROPERTY, policyReference, classes);
103     }
104
105     public PolicyReference getPolicyReference() {
106         return getChild(PolicyReference.class);
107     }
108
109     public void removePolicyReference(PolicyReference policyReference) {
110         removeChild(POLICYREFERENCE_PROPERTY, policyReference);
111     }
112
113     public void setRMAssertion(RMAssertion rmAssertion) {
114         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
115         setChild(RMAssertion.class, RMAssertion.RMASSERTION_PROPERTY, rmAssertion, classes);
116     }
117
118     public RMAssertion getRMAssertion() {
119         return getChild(RMAssertion.class);
120     }
121
122     public void removeRMAssertion(RMAssertion rmAssertion) {
123         removeChild(RMAssertion.RMASSERTION_PROPERTY, rmAssertion);
124     }
125
126     public void setFlowControl(FlowControl flowControl) {
127         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
128         setChild(FlowControl.class, FlowControl.FLOWCONTROL_PROPERTY, flowControl, classes);
129     }
130
131     public FlowControl getFlowControl() {
132         return getChild(FlowControl.class);
133     }
134
135     public void removeFlowControl(FlowControl flowControl) {
136         removeChild(FlowControl.FLOWCONTROL_PROPERTY, flowControl);
137     }
138
139     public void setOrdered(Ordered ordered) {
140         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
141         setChild(Ordered.class, Ordered.ORDERED_PROPERTY, ordered, classes);
142     }
143
144     public Ordered getOrdered() {
145         return getChild(Ordered.class);
146     }
147
148     public void removeOrdered(Ordered ordered) {
149         removeChild(Ordered.ORDERED_PROPERTY, ordered);
150     }
151     
152     public void setWss11(Wss11 wss11) {
153         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
154         setChild(Wss11.class, Wss11.WSS_PROPERTY, wss11, classes);
155     }
156
157     public Wss11 getWss11() {
158         return getChild(Wss11.class);
159     }
160
161     public void removeWss11(Wss11 wss11) {
162         removeChild(Wss11.WSS_PROPERTY, wss11);
163     }
164
165     public void setWss10(Wss10 wss10) {
166         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
167         setChild(Wss10.class, Wss10.WSS_PROPERTY, wss10, classes);
168     }
169
170     public Wss10 getWss10() {
171         return getChild(Wss10.class);
172     }
173
174     public void removeWss10(Wss10 wss10) {
175         removeChild(Wss10.WSS_PROPERTY, wss10);
176     }
177 }
178
Popular Tags