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