1 19 20 package org.netbeans.modules.websvc.wsitmodelext.rm.impl; 21 22 import org.netbeans.modules.websvc.wsitmodelext.rm.FlowControl; 23 import org.netbeans.modules.websvc.wsitmodelext.rm.MaxReceiveBufferSize; 24 import org.netbeans.modules.websvc.wsitmodelext.rm.RMMSQName; 25 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 26 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 27 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 28 import org.w3c.dom.Element ; 29 30 import java.util.Collections ; 31 32 36 public class FlowControlImpl extends RMMSComponentImpl implements FlowControl { 37 38 41 public FlowControlImpl(WSDLModel model, Element e) { 42 super(model, e); 43 } 44 45 public FlowControlImpl(WSDLModel model){ 46 this(model, createPrefixedElement(RMMSQName.RMFLOWCONTROL.getQName(), model)); 47 } 48 49 @Override 50 public void accept(WSDLVisitor visitor) { 51 visitor.visit(this); 52 } 53 54 public void setMaxReceiveBufferSize(MaxReceiveBufferSize maxReceiveBufferSize) { 55 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 56 setChild(MaxReceiveBufferSize.class, MAX_RECEIVE_BUFFER_SIZE_PROPERTY, maxReceiveBufferSize, classes); 57 } 58 59 public MaxReceiveBufferSize getMaxReceiveBufferSize() { 60 return getChild(MaxReceiveBufferSize.class); 61 } 62 63 public void removeMaxReceiveBufferSize(MaxReceiveBufferSize maxReceiveBufferSize) { 64 removeChild(MAX_RECEIVE_BUFFER_SIZE_PROPERTY, maxReceiveBufferSize); 65 } 66 67 } 68 | Popular Tags |