@Test public void testGetPrefixes$found() throws Exception { assertThat(this.sut.getPrefixes(DEFAULT_NAMESPACE),containsInAnyOrder(DEFAULT_PR1,DEFAULT_PR2)); }
@Override public List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; }
ImmutableNamespaces implements Namespaces { @Override public List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; } }
ImmutableNamespaces implements Namespaces { @Override public List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; } private  ImmutableNamespaces(Map<String,String> map);  ImmutableNamespaces(); }
ImmutableNamespaces implements Namespaces { @Override public List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; } 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 List<String> getPrefixes(String namespaceURI) { List<String> list=new ArrayList<String>(); for(Entry<String,String> entry:this.map.entrySet()) { if(entry.getValue().equals(namespaceURI)) { list.add(entry.getKey()); } } return list; } 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();  }