Revision 45739 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/feature/AbstractFeatureRule.java
AbstractFeatureRule.java | ||
---|---|---|
29 | 29 |
* of the {@link FeatureRule} interface to other rule implementations. It is recommended |
30 | 30 |
* to extend this class when implementing new {@link FeatureRule}s. |
31 | 31 |
* |
32 |
* @author Vicente Caballero Navarro
|
|
32 |
* @author gvSIG Team
|
|
33 | 33 |
*/ |
34 | 34 |
public abstract class AbstractFeatureRule implements FeatureRule { |
35 | 35 |
protected String name; |
... | ... | |
38 | 38 |
protected boolean checkAtFinishEdition; |
39 | 39 |
|
40 | 40 |
protected AbstractFeatureRule(String name, String description) { |
41 |
this.init(name,description,true,true);
|
|
41 |
this(name,description,true,true); |
|
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
protected AbstractFeatureRule(String name, String description, |
45 | 45 |
boolean checkAtUpdate, boolean checkAtFinishEdition) { |
46 |
this.init(name, description, checkAtUpdate, checkAtFinishEdition); |
|
47 |
} |
|
48 |
|
|
49 |
protected void init(String name, String description, boolean checkAtUpdate, |
|
50 |
boolean checkAtFinishEdition) { |
|
51 | 46 |
this.name=name; |
52 | 47 |
this.description=description; |
53 | 48 |
this.checkAtUpdate = checkAtUpdate; |
54 | 49 |
this.checkAtFinishEdition = checkAtFinishEdition; |
55 | 50 |
} |
56 | 51 |
|
52 |
@Override |
|
57 | 53 |
public String getName() { |
58 | 54 |
return name; |
59 | 55 |
} |
60 | 56 |
|
57 |
@Override |
|
61 | 58 |
public String getDescription() { |
62 | 59 |
return description; |
63 | 60 |
} |
64 | 61 |
|
62 |
@Override |
|
65 | 63 |
public boolean checkAtFinishEditing() { |
66 | 64 |
return this.checkAtFinishEdition; |
67 | 65 |
} |
68 | 66 |
|
67 |
@Override |
|
69 | 68 |
public boolean checkAtUpdate() { |
70 | 69 |
return this.checkAtUpdate; |
71 | 70 |
} |
Also available in: Unified diff