public abstract class AbstractFeatureRule extends java.lang.Object implements FeatureRule
FeatureRule interface to other rule implementations. It is recommended
 to extend this class when implementing new FeatureRules.| Modifier and Type | Field and Description | 
|---|---|
protected Bitmask | 
checkwhen  | 
protected java.lang.String | 
description  | 
protected java.lang.String | 
name  | 
CHECK_WHEN_FINISH_EDITING, CHECK_WHEN_INSERT_OR_UPDATE_FEATURE, CHECK_WHEN_USER_EDIT_FEATURE| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractFeatureRule(java.lang.String name,
                   java.lang.String description)  | 
protected  | 
AbstractFeatureRule(java.lang.String name,
                   java.lang.String description,
                   boolean checkAtUpdate,
                   boolean checkAtFinishEdition)  | 
protected  | 
AbstractFeatureRule(java.lang.String name,
                   java.lang.String description,
                   int checkwhenmask)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkAtFinishEditing()
Returns true if this rule should be applied just when editing is being finished. 
 | 
boolean | 
checkAtUpdate()
Indicates whether this rule should be checked at update. 
 | 
boolean | 
checkWhen(int mask)  | 
java.lang.String | 
getDescription()
Returns the rule description 
 | 
java.lang.String | 
getName()
Returns the rule name 
 | 
protected void | 
setCheckWhen(int mask)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateloadFromState, saveToStateprotected java.lang.String name
protected java.lang.String description
protected Bitmask checkwhen
protected AbstractFeatureRule(java.lang.String name,
                              java.lang.String description)
protected AbstractFeatureRule(java.lang.String name,
                              java.lang.String description,
                              boolean checkAtUpdate,
                              boolean checkAtFinishEdition)
protected AbstractFeatureRule(java.lang.String name,
                              java.lang.String description,
                              int checkwhenmask)
public java.lang.String getName()
FeatureRulegetName in interface FeatureRulepublic java.lang.String getDescription()
FeatureRulegetDescription in interface FeatureRulepublic boolean checkAtFinishEditing()
FeatureRulecheckAtFinishEditing in interface FeatureRulepublic boolean checkAtUpdate()
FeatureRulecheckAtUpdate in interface FeatureRulepublic boolean checkWhen(int mask)
checkWhen in interface FeatureRuleprotected void setCheckWhen(int mask)