@Test public void testNoMatch() throws Exception { RegexpValueMatcher matcher = new RegexpValueMatcher(); assertNull(matcher.getNextServiceId("the.queen@buckinghampalace.gov.uk", create())); }
@Override public String getNextServiceId(String metadataValue, KeyValuePairBag mappings) { String result = null; for (KeyValuePair k : mappings) { if (metadataValue.matches(k.getKey())) { result = k.getValue(); break; } } return result; }
RegexpValueMatcher implements MetadataValueMatcher { @Override public String getNextServiceId(String metadataValue, KeyValuePairBag mappings) { String result = null; for (KeyValuePair k : mappings) { if (metadataValue.matches(k.getKey())) { result = k.getValue(); break; } } return result; } }
RegexpValueMatcher implements MetadataValueMatcher { @Override public String getNextServiceId(String metadataValue, KeyValuePairBag mappings) { String result = null; for (KeyValuePair k : mappings) { if (metadataValue.matches(k.getKey())) { result = k.getValue(); break; } } return result; }  }
RegexpValueMatcher implements MetadataValueMatcher { @Override public String getNextServiceId(String metadataValue, KeyValuePairBag mappings) { String result = null; for (KeyValuePair k : mappings) { if (metadataValue.matches(k.getKey())) { result = k.getValue(); break; } } return result; }  @Override String getNextServiceId(String metadataValue, KeyValuePairBag mappings); }
RegexpValueMatcher implements MetadataValueMatcher { @Override public String getNextServiceId(String metadataValue, KeyValuePairBag mappings) { String result = null; for (KeyValuePair k : mappings) { if (metadataValue.matches(k.getKey())) { result = k.getValue(); break; } } return result; }  @Override String getNextServiceId(String metadataValue, KeyValuePairBag mappings);  }