File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/main/java/de/gwdg/metadataqa/api Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ public class Field {
77 private String path ;
88 private List <String > categories ;
99 private boolean extractable ;
10+ private boolean inactive ;
1011 private List <Rule > rules ;
1112 private String indexField ;
1213
@@ -42,6 +43,14 @@ public void setExtractable(boolean extractable) {
4243 this .extractable = extractable ;
4344 }
4445
46+ public boolean isInactive () {
47+ return inactive ;
48+ }
49+
50+ public void setInactive (boolean inactive ) {
51+ this .inactive = inactive ;
52+ }
53+
4554 public List <Rule > getRules () {
4655 return rules ;
4756 }
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ public static Schema fromConfig(SchemaConfiguration config) {
5151 if (field .isExtractable ())
5252 branch .setExtractable ();
5353
54+ if (field .isInactive ())
55+ branch .setActive (false );
56+
5457 if (field .getRules () != null )
5558 branch .setRule (field .getRules ());
5659
You can’t perform that action at this time.
0 commit comments