@Test public void classpath() { Configuration configuration = new AppSchemaConfiguration("urn:cgi:xmlns:CGI:GeoSciML:2.0", "http: SchemaIndex schemaIndex = null; try { schemaIndex = Schemas.findSchemas(configuration); Assert.assertEquals(3, schemaIndex.getSchemas().length); String schemaLocation = null; for (XSDSchema schema : schemaIndex.getSchemas()) { if (schema.getSchemaLocation().endsWith("geosciml.xsd")) { schemaLocation = schema.getSchemaLocation(); break; } } Assert.assertNotNull(schemaLocation); Assert.assertTrue(schemaLocation.startsWith("jar:file:")); } finally { if (schemaIndex != null) { schemaIndex.destroy(); } } }
public String getSchemaLocation() { return originalSchemaLocation; }
AppSchemaConfiguration extends Configuration { public String getSchemaLocation() { return originalSchemaLocation; } }
AppSchemaConfiguration extends Configuration { public String getSchemaLocation() { return originalSchemaLocation; } AppSchemaConfiguration(String namespace, String schemaLocation,
            AppSchemaResolver resolver); }
AppSchemaConfiguration extends Configuration { public String getSchemaLocation() { return originalSchemaLocation; } AppSchemaConfiguration(String namespace, String schemaLocation,
            AppSchemaResolver resolver); String getSchemaLocation(); @Override void addDependency(Configuration dependency); }
AppSchemaConfiguration extends Configuration { public String getSchemaLocation() { return originalSchemaLocation; } AppSchemaConfiguration(String namespace, String schemaLocation,
            AppSchemaResolver resolver); String getSchemaLocation(); @Override void addDependency(Configuration dependency);  }