@Test public void shouldWorkWithDocumentModel() throws ClientException { DataModelProperties properties = new DataModelProperties( doc.getDataModel("dublincore")); Map<String, Serializable> map = properties.getMap(); assertFalse(map.isEmpty()); assertEquals("Doc1", map.get("dc:title")); assertEquals("desc1", map.get("dc:description")); assertEquals("source1", map.get("dc:source")); String[] subjects = (String[]) map.get("dc:subjects"); assertEquals(2, subjects.length); assertEquals("subject1", subjects[0]); assertEquals("subject2", subjects[1]); }
public Map<String, Serializable> getMap() { return properties; }
DataModelProperties extends Properties { public Map<String, Serializable> getMap() { return properties; } }
DataModelProperties extends Properties { public Map<String, Serializable> getMap() { return properties; } DataModelProperties();  DataModelProperties(DataModel dm, boolean onlyDirtyProperties);  DataModelProperties(List<DataModel> dms, boolean onlyDirtyProperties);  DataModelProperties(DataModel dm);  DataModelProperties(List<DataModel> dms); }
DataModelProperties extends Properties { public Map<String, Serializable> getMap() { return properties; } DataModelProperties();  DataModelProperties(DataModel dm, boolean onlyDirtyProperties);  DataModelProperties(List<DataModel> dms, boolean onlyDirtyProperties);  DataModelProperties(DataModel dm);  DataModelProperties(List<DataModel> dms); void addDataModel(DataModel dm); Map<String, Serializable> getMap(); }
DataModelProperties extends Properties { public Map<String, Serializable> getMap() { return properties; } DataModelProperties();  DataModelProperties(DataModel dm, boolean onlyDirtyProperties);  DataModelProperties(List<DataModel> dms, boolean onlyDirtyProperties);  DataModelProperties(DataModel dm);  DataModelProperties(List<DataModel> dms); void addDataModel(DataModel dm); Map<String, Serializable> getMap();  }