1 19 20 package org.netbeans.modules.websvc.wsitmodelext.tx.impl; 21 22 import org.netbeans.modules.websvc.wsitmodelext.policy.PolicyQName; 23 import org.netbeans.modules.websvc.wsitmodelext.tx.ATAssertion; 24 import org.netbeans.modules.websvc.wsitmodelext.tx.TxQName; 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 ATAssertionImpl extends TxComponentImpl implements ATAssertion { 34 35 38 public ATAssertionImpl(WSDLModel model, Element e) { 39 super(model, e); 40 } 41 42 public ATAssertionImpl(WSDLModel model){ 43 this(model, createPrefixedElement(TxQName.ATASSERTION.getQName(), model)); 44 } 45 46 @Override 47 public void accept(WSDLVisitor visitor) { 48 visitor.visit(this); 49 } 50 51 public void setOptional(boolean optional) { 52 setAnyAttribute(PolicyQName.OPTIONAL.getQName(), Boolean.toString(optional)); 53 } 54 55 public boolean getOptional() { 56 return Boolean.parseBoolean(getAnyAttribute(PolicyQName.OPTIONAL.getQName())); 57 } 58 59 } 60 | Popular Tags |