@Test(expected = InvalidXMLException.class) public void testGenerateNonAEDescriptor() throws Exception { AnalysisEngineDescription d = AnalysisEngineFactory.generateAED("desc.gov.va.vinci.leo.types.CSI", true); }
public static AnalysisEngineDescription generateAED(String descriptor, boolean byName) throws IOException, InvalidXMLException { ResourceCreationSpecifier spec; if (byName) { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(LeoUtils.createURL(descriptor)); } else { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(descriptor); } if (spec instanceof AnalysisEngineDescription) return (AnalysisEngineDescription) spec; else return null; }
AnalysisEngineFactory { public static AnalysisEngineDescription generateAED(String descriptor, boolean byName) throws IOException, InvalidXMLException { ResourceCreationSpecifier spec; if (byName) { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(LeoUtils.createURL(descriptor)); } else { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(descriptor); } if (spec instanceof AnalysisEngineDescription) return (AnalysisEngineDescription) spec; else return null; } }
AnalysisEngineFactory { public static AnalysisEngineDescription generateAED(String descriptor, boolean byName) throws IOException, InvalidXMLException { ResourceCreationSpecifier spec; if (byName) { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(LeoUtils.createURL(descriptor)); } else { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(descriptor); } if (spec instanceof AnalysisEngineDescription) return (AnalysisEngineDescription) spec; else return null; }  }
AnalysisEngineFactory { public static AnalysisEngineDescription generateAED(String descriptor, boolean byName) throws IOException, InvalidXMLException { ResourceCreationSpecifier spec; if (byName) { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(LeoUtils.createURL(descriptor)); } else { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(descriptor); } if (spec instanceof AnalysisEngineDescription) return (AnalysisEngineDescription) spec; else return null; }  static AnalysisEngineDescription generateAED(String descriptor, boolean byName); static AnalysisEngineDescription generateAED(); static AnalysisEngineDescription generateAED(String name, String implementation_class); }
AnalysisEngineFactory { public static AnalysisEngineDescription generateAED(String descriptor, boolean byName) throws IOException, InvalidXMLException { ResourceCreationSpecifier spec; if (byName) { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(LeoUtils.createURL(descriptor)); } else { spec = (ResourceCreationSpecifier) ResourceSpecifierFactory .createResourceSpecifier(descriptor); } if (spec instanceof AnalysisEngineDescription) return (AnalysisEngineDescription) spec; else return null; }  static AnalysisEngineDescription generateAED(String descriptor, boolean byName); static AnalysisEngineDescription generateAED(); static AnalysisEngineDescription generateAED(String name, String implementation_class);  }