1 2 20 28 29 package org.netbeans.modules.websvc.customization.model.impl; 30 31 import java.util.Collections ; 32 import org.netbeans.modules.websvc.customization.model.JavaMethod; 33 import org.netbeans.modules.websvc.customization.model.PortCustomization; 34 import org.netbeans.modules.websvc.customization.model.Provider; 35 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 36 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 37 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 38 import org.w3c.dom.Element ; 39 40 44 public class PortCustomizationImpl extends CustomizationComponentImpl 45 implements PortCustomization{ 46 47 48 public PortCustomizationImpl(WSDLModel model, Element e) { 49 super(model, e); 50 } 51 52 public PortCustomizationImpl(WSDLModel model){ 53 this(model, createPrefixedElement(JAXWSQName.BINDINGS.getQName(), model)); 54 } 55 56 public void setJavaMethod(JavaMethod method) { 57 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 58 setChild(JavaMethod.class, JAVA_METHOD_PROPERTY, method, 59 classes); 60 } 61 62 public JavaMethod getJavaMethod() { 63 return getChild(JavaMethod.class); 64 } 65 66 public void removeJavaMethod(JavaMethod method) { 67 removeChild(JAVA_METHOD_PROPERTY, method); 68 } 69 70 public void setProvider(Provider provider) { 71 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 72 setChild(Provider.class, PROVIDER_PROPERTY, provider, 73 classes); 74 } 75 76 public void removeProvider(Provider provider) { 77 removeChild(PROVIDER_PROPERTY, provider); 78 } 79 80 public Provider getProvider() { 81 return getChild(Provider.class); 82 } 83 84 public void accept(WSDLVisitor visitor) { 85 visitor.visit(this); 86 } 87 88 } 89 | Popular Tags |