KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitmodelext > rm > impl > RMAssertionImpl


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.rm.impl;
21
22 import org.netbeans.modules.websvc.wsitmodelext.rm.AcknowledgementInterval;
23 import org.netbeans.modules.websvc.wsitmodelext.rm.BaseRetransmissionInterval;
24 import org.netbeans.modules.websvc.wsitmodelext.rm.ExponentialBackoff;
25 import org.netbeans.modules.websvc.wsitmodelext.rm.InactivityTimeout;
26 import org.netbeans.modules.websvc.wsitmodelext.rm.RMAssertion;
27 import org.netbeans.modules.websvc.wsitmodelext.rm.RMQName;
28 import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
29 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
30 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor;
31 import org.w3c.dom.Element JavaDoc;
32
33 import java.util.Collections JavaDoc;
34
35 /**
36  *
37  * @author Martin Grebac
38  */

39 public class RMAssertionImpl extends RMComponentImpl implements RMAssertion {
40     
41     /**
42      * Creates a new instance of RMAssertionImpl
43      */

44     public RMAssertionImpl(WSDLModel model, Element JavaDoc e) {
45         super(model, e);
46     }
47     
48     public RMAssertionImpl(WSDLModel model){
49         this(model, createPrefixedElement(RMQName.RMASSERTION.getQName(), model));
50     }
51
52     @Override JavaDoc
53     public void accept(WSDLVisitor visitor) {
54         visitor.visit(this);
55     }
56
57     public void setBaseRetransmissionInterval(BaseRetransmissionInterval baseRetransmissionInterval) {
58         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
59         setChild(BaseRetransmissionInterval.class, BASE_RETRANSMISSION_INTERVAL_PROPERTY, baseRetransmissionInterval, classes);
60     }
61
62     public BaseRetransmissionInterval getBaseRetransmissionInterval() {
63         return getChild(BaseRetransmissionInterval.class);
64     }
65
66     public void removeBaseRetransmissionInterval(BaseRetransmissionInterval baseRetransmissionInterval) {
67         removeChild(BASE_RETRANSMISSION_INTERVAL_PROPERTY, baseRetransmissionInterval);
68     }
69
70     public void setInactivityTimeout(InactivityTimeout inactivityTimeout) {
71         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
72         setChild(InactivityTimeout.class, INACTIVITY_TIMEOUT_PROPERTY, inactivityTimeout, classes);
73     }
74
75     public InactivityTimeout getInactivityTimeout() {
76         return getChild(InactivityTimeout.class);
77     }
78
79     public void removeInactivityTimeout(InactivityTimeout inactivityTimeout) {
80         removeChild(INACTIVITY_TIMEOUT_PROPERTY, inactivityTimeout);
81     }
82
83     public void setAcknowledgementInterval(AcknowledgementInterval acknowledgementInterval) {
84         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
85         setChild(AcknowledgementInterval.class, ACKNOWLEDGEMENT_INTERVAL_PROPERTY, acknowledgementInterval, classes);
86     }
87
88     public AcknowledgementInterval getAcknowledgementInterval() {
89         return getChild(AcknowledgementInterval.class);
90     }
91
92     public void removeAcknowledgementInterval(AcknowledgementInterval acknowledgementInterval) {
93         removeChild(ACKNOWLEDGEMENT_INTERVAL_PROPERTY, acknowledgementInterval);
94     }
95
96     public void setExponentialBackoff(ExponentialBackoff exponentialBackoff) {
97         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
98         setChild(ExponentialBackoff.class, EXPONENTIAL_BACKOFF_PROPERTY, exponentialBackoff, classes);
99     }
100
101     public ExponentialBackoff getExponentialBackoff() {
102         return getChild(ExponentialBackoff.class);
103     }
104
105     public void removeExponentialBackoff(ExponentialBackoff exponentialBackoff) {
106         removeChild(EXPONENTIAL_BACKOFF_PROPERTY, exponentialBackoff);
107     }
108     
109 }
110
Popular Tags