Skip to content

Commit

Permalink
remove now unnecessary structure field setters
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Oct 1, 2024
1 parent bfbcf5c commit d5b508f
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,6 @@ protected ProcessSimpleMetadata(ProcessFieldedMetadata container, SimpleMetadata
*/
abstract ProcessSimpleMetadata getClone();

protected BiConsumer<Division<?>, String> getStructureFieldSetters(MetadataViewInterface field)
throws NoSuchMetadataFieldException {
String key = field.getId();

switch (key.toUpperCase()) {
case "LABEL":
return Division::setLabel;
case "ORDERLABEL":
return Division::setOrderlabel;
case "CONTENTIDS":
return (division, value) -> division.getContentIds().add(URI.create(value));
default:
throw new NoSuchMetadataFieldException(key, field.getLabel());
}
}

public SimpleMetadataViewInterface getSettings() {
return settings;
}
Expand Down

0 comments on commit d5b508f

Please sign in to comment.