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 FeatureRule
s.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, wait
validate
loadFromState, saveToState
protected 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()
FeatureRule
getName
in interface FeatureRule
public java.lang.String getDescription()
FeatureRule
getDescription
in interface FeatureRule
public boolean checkAtFinishEditing()
FeatureRule
checkAtFinishEditing
in interface FeatureRule
public boolean checkAtUpdate()
FeatureRule
checkAtUpdate
in interface FeatureRule
public boolean checkWhen(int mask)
checkWhen
in interface FeatureRule
protected void setCheckWhen(int mask)