01: package org.andromda.core.configuration;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Used to specify which filter should or should not be applied within a model.
07: *
08: * @author Chad Brandon
09: * @see org.andromda.core.configuration.Filters
10: */
11: public class Filter implements Serializable {
12: private String value;
13:
14: /**
15: * Gets the value of this Filter.
16: *
17: * @return Returns the value.
18: */
19: public String getValue() {
20: return value;
21: }
22:
23: /**
24: * Sets the value of this Filter.
25: *
26: * @param name the value of the filter.
27: */
28: public void setValue(final String name) {
29: this .value = name;
30: }
31:
32: /**
33: * The flag indicating whether or not this filter
34: * should be applied.
35: */
36: private boolean apply = true;
37:
38: /**
39: * Whether or not this filter should be applied.
40: *
41: * @return Returns the shouldProcess.
42: */
43: public boolean isApply() {
44: return this .apply;
45: }
46:
47: /**
48: * Sets whether or not this Filter should be applied.
49: *
50: * @param process The shouldProcess to set.
51: */
52: public void setApply(final boolean process) {
53: this.apply = process;
54: }
55: }
|