public interface FeatureRule extends Persistent
| Modifier and Type | Field and Description | 
|---|---|
static int | 
CHECK_WHEN_FINISH_EDITING  | 
static int | 
CHECK_WHEN_INSERT_OR_UPDATE_FEATURE  | 
static int | 
CHECK_WHEN_USER_EDIT_FEATURE  | 
| 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 
 | 
void | 
validate(EditableFeature feature,
        FeatureStore featureStore)
This is the method that applies this rule to the  
Feature, given also its associated FeatureStore. | 
loadFromState, saveToStatestatic final int CHECK_WHEN_FINISH_EDITING
static final int CHECK_WHEN_INSERT_OR_UPDATE_FEATURE
static final int CHECK_WHEN_USER_EDIT_FEATURE
java.lang.String getName()
java.lang.String getDescription()
void validate(EditableFeature feature, FeatureStore featureStore) throws DataException
Feature, given also its associated FeatureStore.feature - Feature to which apply the rulefeatureStore - FeatureStore to which the Feature belongsDataException - if an error occurs during validationboolean checkAtUpdate()
boolean checkAtFinishEditing()
boolean checkWhen(int mask)