Revision 36812
Added by Michele Artini about 9 years ago
CleaningRule.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.enabling.datastructures; |
2 | 2 |
|
3 |
import java.util.ArrayList;
|
|
3 |
import java.util.List; |
|
4 | 4 |
|
5 |
import com.google.common.collect.Lists; |
|
6 |
|
|
5 | 7 |
import eu.dnetlib.enabling.annotations.DnetResource; |
6 | 8 |
import eu.dnetlib.rmi.objects.is.DnetResourceFormat; |
7 | 9 |
import eu.dnetlib.rmi.objects.is.DnetResourceKind; |
8 | 10 |
|
9 | 11 |
@DnetResource(type = "CleaningRule", kind = DnetResourceKind.CONFIGURATION, format = DnetResourceFormat.JSON) |
10 |
public class CleaningRule extends ArrayList<AtomicCleaningRule> {
|
|
12 |
public class CleaningRule extends AbstractJsonResource {
|
|
11 | 13 |
|
12 |
private static final long serialVersionUID = -840852796902412057L;
|
|
14 |
private List<AtomicCleaningRule> rules = Lists.newArrayList();
|
|
13 | 15 |
|
16 |
public List<AtomicCleaningRule> getRules() { |
|
17 |
return rules; |
|
18 |
} |
|
19 |
|
|
20 |
public void setRules(final List<AtomicCleaningRule> rules) { |
|
21 |
this.rules = rules; |
|
22 |
} |
|
23 |
|
|
14 | 24 |
} |
Also available in: Unified diff
BaseResource interface