VIVO-285: visualization updates for ISF

This commit is contained in:
tworrall 2013-09-30 09:29:19 -04:00
parent 4202f30ea7
commit 4d5a567e36
2 changed files with 31 additions and 0 deletions

View file

@ -476,6 +476,19 @@ public class GroupedPropertyList extends BaseTemplateModel {
return null;
}
public PropertyTemplateModel getProperty(String propertyUri, String rangeUri) {
for (PropertyGroupTemplateModel pgtm : groups) {
List<PropertyTemplateModel> properties = pgtm.getProperties();
for (PropertyTemplateModel ptm : properties) {
if (propertyUri.equals(ptm.getUri()) && rangeUri.equals(ptm.getRangeUri())) {
return ptm;
}
}
}
return null;
}
public PropertyTemplateModel pullProperty(String propertyUri) {
return pullProperty(propertyUri, null);
}