Mercurial > hg > openmind
annotate src/main/java/org/mpi/openmind/repository/services/utils/AttributeFilter.java @ 114:70a02006675c
New clean actions to delete lost floruit_dates and empty references.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 26 Aug 2019 16:10:14 +0200 |
parents | 1cd9d9a67cad |
children |
rev | line source |
---|---|
1 | 1 package org.mpi.openmind.repository.services.utils; |
2 | |
3 | |
4 /** | |
5 * | |
6 * @author jurzua | |
7 */ | |
35
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
8 public class AttributeFilter extends Filter { |
114
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
9 public String name; |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
10 public String entObjectClass; |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
11 |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
12 /** |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
13 * match if the relation is not present. |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
14 */ |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
15 public Boolean attributeMissing = false; |
70a02006675c
New clean actions to delete lost floruit_dates and empty references.
Robert Casties <casties@mpiwg-berlin.mpg.de>
parents:
35
diff
changeset
|
16 |
1 | 17 public AttributeFilter(){} |
18 | |
19 public AttributeFilter(String name, String value, String entObjectClass){ | |
20 this.setEntObjectClass(entObjectClass); | |
21 this.setOwnValue(value); | |
22 this.setName(name); | |
23 } | |
24 | |
35
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
25 public AttributeFilter(String name, String value, String entObjectClass, boolean isRegex){ |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
26 this.setEntObjectClass(entObjectClass); |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
27 this.setOwnValue(value); |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
28 this.setName(name); |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
29 this.setRegex(isRegex); |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
30 } |
1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
casties
parents:
1
diff
changeset
|
31 |
1 | 32 public String getEntObjectClass() { |
33 return entObjectClass; | |
34 } | |
35 | |
36 public void setEntObjectClass(String entObjectClass) { | |
37 this.entObjectClass = entObjectClass; | |
38 } | |
39 | |
40 public String getName() { | |
41 return name; | |
42 } | |
43 | |
44 public void setName(String name) { | |
45 this.name = name; | |
46 } | |
47 | |
48 } |