1 19 27 28 package org.netbeans.modules.websvc.customization.model.impl; 29 30 31 32 import org.netbeans.modules.websvc.customization.model.EnableWrapperStyle; 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 EnableWrapperStyleImpl extends CustomizationComponentImpl 42 implements EnableWrapperStyle{ 43 44 45 public EnableWrapperStyleImpl(WSDLModel model, Element e) { 46 super(model, e); 47 } 48 49 public EnableWrapperStyleImpl(WSDLModel model){ 50 this(model, createPrefixedElement(JAXWSQName.ENABLEWRAPPERSTYLE.getQName(), model)); 51 } 52 53 public boolean isEnabled() { 54 String value = getText().trim(); 55 if(value.equals("true")){ 56 return true; 57 } 58 return false; 59 } 60 61 public void setEnabled(boolean enable) { 62 setText(ENABLE_WRAPPER_STYLE_VALUE_PROPERTY, Boolean.toString(enable)); 63 } 64 65 public void accept(WSDLVisitor visitor) { 66 visitor.visit(this); 67 } 68 69 } 70 | Popular Tags |