@Test public void testConvertFromProperties() throws Exception { Properties c = new Properties(); c.setProperty("test", "value"); assertNotNull(convertFromProperties(c)); assertTrue(convertFromProperties(c).contains(new MetadataElement("test", ""))); }
public static Set<MetadataElement> convertFromProperties(Properties p) throws IOException { HashSet<MetadataElement> set = new HashSet<>(); for (String s : p.stringPropertyNames()) { set.add(new MetadataElement(s, p.getProperty(s))); } return set; }
MetadataHelper { public static Set<MetadataElement> convertFromProperties(Properties p) throws IOException { HashSet<MetadataElement> set = new HashSet<>(); for (String s : p.stringPropertyNames()) { set.add(new MetadataElement(s, p.getProperty(s))); } return set; } }
MetadataHelper { public static Set<MetadataElement> convertFromProperties(Properties p) throws IOException { HashSet<MetadataElement> set = new HashSet<>(); for (String s : p.stringPropertyNames()) { set.add(new MetadataElement(s, p.getProperty(s))); } return set; }  }
MetadataHelper { public static Set<MetadataElement> convertFromProperties(Properties p) throws IOException { HashSet<MetadataElement> set = new HashSet<>(); for (String s : p.stringPropertyNames()) { set.add(new MetadataElement(s, p.getProperty(s))); } return set; }  static Properties convertToProperties(Collection<MetadataElement> s); static Set<MetadataElement> convertFromProperties(Properties p); static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag); static Set<MetadataElement> metadataFromMatchGroups(MatchResult matchResult, List<String> metadataKeys); }
MetadataHelper { public static Set<MetadataElement> convertFromProperties(Properties p) throws IOException { HashSet<MetadataElement> set = new HashSet<>(); for (String s : p.stringPropertyNames()) { set.add(new MetadataElement(s, p.getProperty(s))); } return set; }  static Properties convertToProperties(Collection<MetadataElement> s); static Set<MetadataElement> convertFromProperties(Properties p); static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag); static Set<MetadataElement> metadataFromMatchGroups(MatchResult matchResult, List<String> metadataKeys);  }