@Test public void testGetRemoteTypeName() throws Exception { final String nsOverride = "http: dataStore.setNamespaceURI(nsOverride); assertEquals( TYPE1, dataStore.getRemoteTypeName( new NameImpl(nsOverride, simpleTypeName1.getLocalPart()))); assertEquals( TYPE2, dataStore.getRemoteTypeName( new NameImpl(nsOverride, simpleTypeName2.getLocalPart()))); try { Name badName = new NameImpl(TYPE1.getNamespaceURI(), TYPE1.getLocalPart() + "2"); dataStore.getRemoteTypeName(badName); fail("Expected NSEE"); } catch (NoSuchElementException e) { assertTrue(true); } }
public QName getRemoteTypeName(Name localTypeName) throws IOException { if (names.isEmpty()) { createTypeNames(); } QName qName = names.get(localTypeName); if (null == qName) { throw new NoSuchElementException(localTypeName.toString()); } return qName; }
WFSDataStore extends ContentDataStore { public QName getRemoteTypeName(Name localTypeName) throws IOException { if (names.isEmpty()) { createTypeNames(); } QName qName = names.get(localTypeName); if (null == qName) { throw new NoSuchElementException(localTypeName.toString()); } return qName; } }
WFSDataStore extends ContentDataStore { public QName getRemoteTypeName(Name localTypeName) throws IOException { if (names.isEmpty()) { createTypeNames(); } QName qName = names.get(localTypeName); if (null == qName) { throw new NoSuchElementException(localTypeName.toString()); } return qName; } WFSDataStore(final WFSClient client); }
WFSDataStore extends ContentDataStore { public QName getRemoteTypeName(Name localTypeName) throws IOException { if (names.isEmpty()) { createTypeNames(); } QName qName = names.get(localTypeName); if (null == qName) { throw new NoSuchElementException(localTypeName.toString()); } return qName; } WFSDataStore(final WFSClient client); @Override WFSServiceInfo getInfo(); QName getRemoteTypeName(Name localTypeName); ListStoredQueriesResponseType getStoredQueryListResponse(); boolean supportsStoredQueries(); FeatureType getRemoteFeatureType(final QName remoteTypeName); StoredQueryDescriptionType getStoredQueryDescriptionType(String storedQueryId); SimpleFeatureType getRemoteSimpleFeatureType(final QName remoteTypeName); WFSClient getWfsClient(); Name addStoredQuery(String localName, String storedQueryId); QName getStoredQueryReturnType(String storedQueryId); SimpleFeatureType getStoredQuerySchema(String storedQueryId); Map<String, String> getConfiguredStoredQueries(); void removeStoredQuery(String localName); URL getCapabilitiesURL(); }
WFSDataStore extends ContentDataStore { public QName getRemoteTypeName(Name localTypeName) throws IOException { if (names.isEmpty()) { createTypeNames(); } QName qName = names.get(localTypeName); if (null == qName) { throw new NoSuchElementException(localTypeName.toString()); } return qName; } WFSDataStore(final WFSClient client); @Override WFSServiceInfo getInfo(); QName getRemoteTypeName(Name localTypeName); ListStoredQueriesResponseType getStoredQueryListResponse(); boolean supportsStoredQueries(); FeatureType getRemoteFeatureType(final QName remoteTypeName); StoredQueryDescriptionType getStoredQueryDescriptionType(String storedQueryId); SimpleFeatureType getRemoteSimpleFeatureType(final QName remoteTypeName); WFSClient getWfsClient(); Name addStoredQuery(String localName, String storedQueryId); QName getStoredQueryReturnType(String storedQueryId); SimpleFeatureType getStoredQuerySchema(String storedQueryId); Map<String, String> getConfiguredStoredQueries(); void removeStoredQuery(String localName); URL getCapabilitiesURL(); static final String STORED_QUERY_CONFIGURATION_HINT; }