use of uk.gov.gchq.gaffer.data.element.IdentifierType in project Gaffer by gchq.
the class MapGenerator method getFieldValue.
private Object getFieldValue(final Element element, final String key) {
final IdentifierType idType = IdentifierType.fromName(key);
final Object value;
if (null == idType) {
if (GROUP.equals(key)) {
value = element.getGroup();
} else {
value = element.getProperty(key);
}
} else {
value = element.getIdentifier(idType);
}
return value;
}
Aggregations