1 19 27 28 package org.netbeans.modules.websvc.customization.model.impl; 29 30 import java.util.Collections ; 31 import org.netbeans.modules.websvc.customization.model.JavaClass; 32 import org.netbeans.modules.websvc.customization.model.ServiceCustomization; 33 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 34 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 35 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 36 37 import org.w3c.dom.Element ; 38 39 43 public class ServiceCustomizationImpl extends CustomizationComponentImpl 44 implements ServiceCustomization{ 45 46 47 public ServiceCustomizationImpl(WSDLModel model, Element e) { 48 super(model, e); 49 } 50 51 public ServiceCustomizationImpl(WSDLModel model){ 52 this(model, createPrefixedElement(JAXWSQName.BINDINGS.getQName(), model)); 53 } 54 55 public void setJavaClass(JavaClass javaClass) { 56 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 57 setChild(JavaClass.class, JAVA_CLASS_PROPERTY, javaClass, 58 classes); 59 } 60 61 public JavaClass getJavaClass() { 62 return getChild(JavaClass.class); 63 } 64 65 public void removeJavaClass(JavaClass javaClass) { 66 removeChild(JAVA_CLASS_PROPERTY, javaClass); 67 } 68 69 public void accept(WSDLVisitor visitor) { 70 visitor.visit(this); 71 } 72 73 } 74 | Popular Tags |