1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary.impl; 21 22 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.CallbackHandler; 23 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ProprietarySecurityPolicyAttribute; 24 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.ProprietarySecurityPolicyQName; 25 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 26 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 27 import org.w3c.dom.Element ; 28 29 33 public class CallbackHandlerImpl extends ProprietarySecurityPolicyComponentImpl implements CallbackHandler { 34 35 38 public CallbackHandlerImpl(WSDLModel model, Element e) { 39 super(model, e); 40 } 41 42 public CallbackHandlerImpl(WSDLModel model){ 43 this(model, createPrefixedElement(ProprietarySecurityPolicyQName.CALLBACKHANDLER.getQName(), model)); 44 } 45 46 @Override 47 public void accept(WSDLVisitor visitor) { 48 visitor.visit(this); 49 } 50 51 public void setDefault(String def) { 52 setAttribute(DEFAULT, ProprietarySecurityPolicyAttribute.DEFAULT, def); 53 } 54 55 public String getDefault() { 56 return getAttribute(ProprietarySecurityPolicyAttribute.DEFAULT); 57 } 58 59 public void setName(String name) { 60 setAttribute(NAME, ProprietarySecurityPolicyAttribute.NAME, name); 61 } 62 63 public String getName() { 64 return getAttribute(ProprietarySecurityPolicyAttribute.NAME); 65 } 66 67 public void setClassname(String classname) { 68 setAttribute(CLASSNAME, ProprietarySecurityPolicyAttribute.CLASSNAME, classname); 69 } 70 71 public String getClassname() { 72 return getAttribute(ProprietarySecurityPolicyAttribute.CLASSNAME); 73 } 74 } 75 | Popular Tags |