1 19 20 28 29 package org.netbeans.modules.xml.wsdl.ui.property.model; 30 31 import javax.xml.namespace.QName ; 32 import org.netbeans.modules.xml.wsdl.ui.extensibility.model.WSDLExtensibilityElements; 33 import org.netbeans.modules.xml.wsdl.ui.extensibility.model.WSDLExtensibilityElementsFactory; 34 import org.netbeans.modules.xml.wsdl.ui.extensibility.model.XMLSchemaFileInfo; 35 import org.openide.util.NbBundle; 36 37 38 42 public abstract class PropertyModelFactory { 43 44 public static final String PROP_NAMESPACE = "http://xml.netbeans.org/schema/wsdlui/property"; 45 46 private static PropertyModelFactory mInstance; 47 48 49 public PropertyModelFactory() { 50 } 51 52 public static synchronized PropertyModelFactory getInstance() throws PropertyModelException { 53 if (null == mInstance) { 54 String fac = System.getProperty(PropertyModelFactory.class.getName(), 55 "org.netbeans.modules.xml.wsdl.ui.property.model.impl.PropertyModelFactoryImpl"); try { 57 mInstance = (PropertyModelFactory) Class.forName(fac).newInstance(); 58 } catch (Exception e) { 59 throw new PropertyModelException( 60 NbBundle.getMessage(PropertyModelFactory.class, "ERR_MSG_PropertyModelFactory_CLASS_NOT_FOUND", fac), e); 61 } 62 } 63 return mInstance; 64 } 65 66 public abstract ElementProperties getElementProperties(QName elementQName) throws PropertyModelException; 67 } 68 | Popular Tags |