@Test public void testGetPrefix$notFound() throws Exception { assertThat(this.sut.getPrefix("not found"),nullValue()); }
@Override public String getPrefix(String namespaceURI) { for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { return entry.getKey(); } } return null; }
ImmutableNamespaces implements Namespaces { @Override public String getPrefix(String namespaceURI) { for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { return entry.getKey(); } } return null; } }
ImmutableNamespaces implements Namespaces { @Override public String getPrefix(String namespaceURI) { for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { return entry.getKey(); } } return null; } private  ImmutableNamespaces(Map<String,String> map);  ImmutableNamespaces(); }
ImmutableNamespaces implements Namespaces { @Override public String getPrefix(String namespaceURI) { for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { return entry.getKey(); } } return null; } private  ImmutableNamespaces(Map<String,String> map);  ImmutableNamespaces(); ImmutableNamespaces withPrefix(String prefix, String namespaceURI); ImmutableNamespaces withoutPrefix(String... prefixes); @Override Set<String> getDeclaredPrefixes(); @Override String getNamespaceURI(String prefix); @Override String getPrefix(String namespaceURI); @Override List<String> getPrefixes(String namespaceURI); @Override String toString(); }
ImmutableNamespaces implements Namespaces { @Override public String getPrefix(String namespaceURI) { for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { return entry.getKey(); } } return null; } private  ImmutableNamespaces(Map<String,String> map);  ImmutableNamespaces(); ImmutableNamespaces withPrefix(String prefix, String namespaceURI); ImmutableNamespaces withoutPrefix(String... prefixes); @Override Set<String> getDeclaredPrefixes(); @Override String getNamespaceURI(String prefix); @Override String getPrefix(String namespaceURI); @Override List<String> getPrefixes(String namespaceURI); @Override String toString();  }