KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitmodelext > addressing > impl > Addressing10EndpointReferenceImpl


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.addressing.impl;
21
22 import org.netbeans.modules.websvc.wsitmodelext.addressing.Address10;
23 import org.netbeans.modules.websvc.wsitmodelext.addressing.Addressing10Metadata;
24 import org.netbeans.modules.websvc.wsitmodelext.addressing.Addressing10QName;
25 import org.netbeans.modules.websvc.wsitmodelext.addressing.Addressing10ReferenceProperties;
26 import org.netbeans.modules.xml.wsdl.model.WSDLComponent;
27 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
28 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor;
29 import org.w3c.dom.Element JavaDoc;
30
31 import java.util.Collections JavaDoc;
32 import org.netbeans.modules.websvc.wsitmodelext.addressing.Addressing10EndpointReference;
33
34 /**
35  *
36  * @author Martin Grebac
37  */

38 public class Addressing10EndpointReferenceImpl extends Addressing10ComponentImpl implements Addressing10EndpointReference {
39     
40     /**
41      * Creates a new instance of Addressing10EndpointReferenceImpl
42      */

43     public Addressing10EndpointReferenceImpl(WSDLModel model, Element JavaDoc e) {
44         super(model, e);
45     }
46     
47     public Addressing10EndpointReferenceImpl(WSDLModel model){
48         this(model, createPrefixedElement(Addressing10QName.ENDPOINTREFERENCE.getQName(), model));
49     }
50
51     @Override JavaDoc
52     public void accept(WSDLVisitor visitor) {
53         visitor.visit(this);
54     }
55
56     public void setAddress(Address10 address) {
57         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
58         setChild(Address10.class, ADDRESS_PROPERTY, address, classes);
59     }
60
61     public Address10 getAddress() {
62         return getChild(Address10.class);
63     }
64
65     public void removeAddress(Address10 address) {
66         removeChild(ADDRESS_PROPERTY, address);
67     }
68
69     public void setReferenceProperties(Addressing10ReferenceProperties referenceProperties) {
70         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
71         setChild(Addressing10ReferenceProperties.class, REFERENCE_PROPERTIES_PROPERTY, referenceProperties, classes);
72     }
73
74     public Addressing10ReferenceProperties getReferenceProperties() {
75         return getChild(Addressing10ReferenceProperties.class);
76     }
77
78     public void removeReferenceProperties(Addressing10ReferenceProperties referenceProperties) {
79         removeChild(REFERENCE_PROPERTIES_PROPERTY, referenceProperties);
80     }
81
82     public void setAddressing10Metadata(Addressing10Metadata addressingMetadata) {
83         java.util.List JavaDoc<Class JavaDoc<? extends WSDLComponent>> classes = Collections.emptyList();
84         setChild(Addressing10Metadata.class, METADATA_PROPERTY, addressingMetadata, classes);
85     }
86
87     public Addressing10Metadata getAddressing10Metadata() {
88         return getChild(Addressing10Metadata.class);
89     }
90
91     public void removeAddressing10Metadata(Addressing10Metadata addressing10Metadata) {
92         removeChild(METADATA_PROPERTY, addressing10Metadata);
93     }
94     
95 }
96
Popular Tags