Add shortcut "business" logic to get the key of a metadata field

This commit is contained in:
Peter Dietz
2013-09-21 01:10:13 -04:00
parent 436cd1ef23
commit 366d14d618

View File

@@ -40,4 +40,12 @@ public class DCValue
/** Authority control confidence */
public int confidence = Choices.CF_UNSET;
/**
* Get the field in dot notation. i.e. schema.element.qualifier, as in dc.date.issued
* @return
*/
public String getField() {
return schema + "." + element + (qualifier==null?"":("." + qualifier));
}
}