1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary.service.impl; 21 22 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.service.Contract; 23 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.service.ProprietaryTrustServiceQName; 24 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 25 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 26 import org.w3c.dom.Element ; 27 28 32 public class ContractImpl extends ProprietaryTrustComponentServiceImpl implements Contract { 33 34 37 public ContractImpl(WSDLModel model, Element e) { 38 super(model, e); 39 } 40 41 public ContractImpl(WSDLModel model){ 42 this(model, createPrefixedElement(ProprietaryTrustServiceQName.CONTRACT.getQName(), model)); 43 } 44 45 @Override 46 public void accept(WSDLVisitor visitor) { 47 visitor.visit(this); 48 } 49 50 public void setContract(String classname) { 51 setText(CONTRACT_CONTENT, classname); 52 } 53 54 public String getContract() { 55 return getText(); 56 } 57 58 } 59 | Popular Tags |