return (List<String>) (List<?>) this.conf.getPgeSpecificGroups().get(
TOKEN_LIST_GROUP).getVector(TOKEN_MET_KEYS_VECTOR).getElements();
}
public Metadata getSubstringOffsetMet(File file) {
PGEGroup substrOffsetGroup = this.conf.getPgeSpecificGroups().get(
SUBSTRING_OFFSET_GROUP);
Metadata met = new Metadata();
if (substrOffsetGroup == null)
return met;
String filename = file.getName();
for (PGEVector vec : substrOffsetGroup.getVectors().values()) {
String metKeyName = vec.getName();
int offset = Integer.valueOf((String) vec.getElements().get(0)) - 1;
int length = Integer.valueOf((String) vec.getElements().get(1));
String metVal = filename.substring(offset, offset + length).trim();
met.addMetadata(metKeyName, metVal);