1 19 20 package org.netbeans.modules.xml.wsdl.model.extensions.xsd.impl; 21 22 import java.util.Collections ; 23 import java.util.Set ; 24 import javax.xml.XMLConstants ; 25 import javax.xml.namespace.QName ; 26 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 27 import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory; 28 import org.w3c.dom.Element ; 29 30 34 public class WSDLSchemaFactory extends ElementFactory { 35 public Set <QName > getElementQNames() { 36 return Collections.singleton(new QName ( 37 XMLConstants.W3C_XML_SCHEMA_NS_URI, "schema", "xsd")); } 39 public WSDLComponent create(WSDLComponent context, Element element) { 40 return new WSDLSchemaImpl(context.getModel(), element); 41 } 42 } 43 | Popular Tags |