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.BindingCustomization; 32 import org.netbeans.modules.websvc.customization.model.EnableMIMEContent; 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.spi.WSDLComponentBase; 36 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 37 38 import org.w3c.dom.Element ; 39 40 44 public class BindingCustomizationImpl extends CustomizationComponentImpl 45 implements BindingCustomization{ 46 47 48 public BindingCustomizationImpl(WSDLModel model, Element e) { 49 super(model, e); 50 } 51 52 public BindingCustomizationImpl(WSDLModel model) { 53 this(model, createPrefixedElement(JAXWSQName.BINDINGS.getQName(), model)); 54 } 55 56 public void setEnableMIMEContent(EnableMIMEContent mime) { 57 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 58 setChild(EnableMIMEContent.class, ENABLE_MIME_CONTENT_PROPERTY, mime, 59 classes); 60 } 61 62 public EnableMIMEContent getEnableMIMEContent() { 63 return getChild(EnableMIMEContent.class); 64 } 65 66 public void removeEnableMIMEContent(EnableMIMEContent mime) { 67 removeChild(ENABLE_MIME_CONTENT_PROPERTY, mime); 68 } 69 70 71 public void accept(WSDLVisitor visitor) { 72 visitor.visit(this); 73 } 74 75 } 76 | Popular Tags |