1 19 20 26 package org.netbeans.modules.xml.wsdl.ui.fastmodel; 27 28 import java.io.File ; 29 import java.io.InputStream ; 30 import org.openide.util.NbBundle; 31 32 33 39 public abstract class FastSchemaFactory { 40 41 private static FastSchemaFactory factory; 42 43 public FastSchemaFactory() { 44 45 } 46 47 52 public static synchronized FastSchemaFactory getInstance() throws Exception { 53 if (null == factory) { 54 String fac = System.getProperty(FastSchemaFactory.class.getName(), 55 "org.netbeans.modules.xml.wsdl.ui.fastmodel.impl.FastSchemaFactoryImpl"); try { 57 factory = (FastSchemaFactory) Class.forName(fac).newInstance(); 58 } catch (Exception e) { 59 throw new Exception ( 60 NbBundle.getMessage(FastSchemaFactory.class, "ERR_MSG_CLASS_NOT_FOUND", fac), e); 61 } 62 } 63 return factory; 64 } 65 66 public abstract FastSchema newFastSchema(InputStream in, boolean parseImports); 67 68 69 public abstract FastSchema newFastSchema (File file); 70 public abstract FastSchema newFastSchema (File file, boolean parseImports); 71 72 public abstract FastSchema newFastSchema(String defFileUrl); 73 74 public abstract FastSchema newFastSchema(String defFileUrl, 75 boolean parseImports); 76 77 } 78 | Popular Tags |