1 19 27 28 package org.netbeans.modules.websvc.customization.model.impl; 29 30 import org.netbeans.modules.websvc.customization.model.Provider; 31 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 32 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 33 import org.w3c.dom.Element ; 34 35 39 public class ProviderImpl extends CustomizationComponentImpl 40 implements Provider{ 41 42 43 public ProviderImpl(WSDLModel model, Element e) { 44 super(model, e); 45 } 46 47 public ProviderImpl(WSDLModel model){ 48 this(model, createPrefixedElement(JAXWSQName.PROVIDER.getQName(), model)); 49 } 50 51 public void setEnabled(boolean enable) { 52 setText(this.ENABLE_PROVIDER_PROPERTY, Boolean.toString(enable)); 53 } 54 55 public boolean isEnabled() { 56 String value = getText().trim(); 57 if(value.equals("true")){ 58 return true; 59 } 60 return false; 61 } 62 63 public void accept(WSDLVisitor visitor) { 64 visitor.visit(this); 65 } 66 67 } 68 | Popular Tags |