1 19 20 package org.netbeans.modules.websvc.wsitmodelext.policy.impl; 21 22 import org.netbeans.modules.websvc.wsitmodelext.rm.RMAssertion; 23 import org.netbeans.modules.websvc.wsitmodelext.policy.All; 24 import org.netbeans.modules.websvc.wsitmodelext.policy.ExactlyOne; 25 import org.netbeans.modules.websvc.wsitmodelext.policy.Policy; 26 import org.netbeans.modules.websvc.wsitmodelext.policy.PolicyQName; 27 import org.netbeans.modules.websvc.wsitmodelext.policy.PolicyReference; 28 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 29 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 30 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 31 import org.w3c.dom.Element ; 32 33 import java.util.Collections ; 34 35 39 public class ExactlyOneImpl extends PolicyComponentImpl implements ExactlyOne { 40 41 44 public ExactlyOneImpl(WSDLModel model, Element e) { 45 super(model, e); 46 } 47 48 public ExactlyOneImpl(WSDLModel model){ 49 this(model, createPrefixedElement(PolicyQName.EXACTLYONE.getQName(), model)); 50 } 51 52 @Override 53 public void accept(WSDLVisitor visitor) { 54 visitor.visit(this); 55 } 56 57 public void setAll(All all) { 58 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 59 setChild(All.class, ALL_PROPERTY, all, classes); 60 } 61 62 public All getAll() { 63 return getChild(All.class); 64 } 65 66 public void removeAll(All all) { 67 removeChild(ALL_PROPERTY, all); 68 } 69 70 public void setExactlyOne(ExactlyOne exactlyOne) { 71 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 72 setChild(ExactlyOne.class, EXACTLYONE_PROPERTY, exactlyOne, classes); 73 } 74 75 public ExactlyOne getExactlyOne() { 76 return getChild(ExactlyOne.class); 77 } 78 79 public void removeExactlyOne(ExactlyOne exactlyOne) { 80 removeChild(EXACTLYONE_PROPERTY, exactlyOne); 81 } 82 83 public void setPolicy(Policy policy) { 84 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 85 setChild(Policy.class, POLICY_PROPERTY, policy, classes); 86 } 87 88 public Policy getPolicy() { 89 return getChild(Policy.class); 90 } 91 92 public void removePolicy(Policy policy) { 93 removeChild(POLICY_PROPERTY, policy); 94 } 95 96 public void setPolicyReference(PolicyReference policyReference) { 97 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 98 setChild(PolicyReference.class, POLICYREFERENCE_PROPERTY, policyReference, classes); 99 } 100 101 public PolicyReference getPolicyReference() { 102 return getChild(PolicyReference.class); 103 } 104 105 public void removePolicyReference(PolicyReference policyReference) { 106 removeChild(POLICYREFERENCE_PROPERTY, policyReference); 107 } 108 109 public void setRMAssertion(RMAssertion rmAssertion) { 110 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 111 setChild(RMAssertion.class, RMAssertion.RMASSERTION_PROPERTY, rmAssertion, classes); 112 } 113 114 public RMAssertion getRMAssertion() { 115 return getChild(RMAssertion.class); 116 } 117 118 public void removeRMAssertion(RMAssertion rmAssertion) { 119 removeChild(RMAssertion.RMASSERTION_PROPERTY, rmAssertion); 120 } 121 122 } 123 | Popular Tags |