1 19 20 package org.netbeans.modules.websvc.wsitmodelext.rm; 21 22 import java.security.InvalidParameterException ; 23 import java.util.Collection ; 24 import java.util.HashSet ; 25 import org.netbeans.modules.websvc.wsitmodelext.rm.impl.FlowControlImpl; 26 import org.netbeans.modules.websvc.wsitmodelext.rm.impl.MaxReceiveBufferSizeImpl; 27 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 28 import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory; 29 import org.w3c.dom.Element ; 30 31 import javax.xml.namespace.QName ; 32 import java.util.Collections ; 33 import java.util.Set ; 34 35 public class RMMSFactories { 36 37 public static class FlowControlFactory extends ElementFactory { 38 @Override 39 public Set <QName > getElementQNames() { 40 return Collections.singleton(RMMSQName.RMFLOWCONTROL.getQName()); 41 } 42 @Override 43 public WSDLComponent create(WSDLComponent context, Element element) { 44 return new FlowControlImpl(context.getModel(), element); 45 } 46 } 47 48 public static class MaxReceiveBufferSizeFactory extends ElementFactory { 49 @Override 50 public Set <QName > getElementQNames() { 51 return Collections.singleton(RMMSQName.MAXRECEIVEBUFFERSIZE.getQName()); 52 } 53 @Override 54 public WSDLComponent create(WSDLComponent context, Element element) { 55 return new MaxReceiveBufferSizeImpl(context.getModel(), element); 56 } 57 } 58 59 } 60 | Popular Tags |