public abstract class AbstractFeatureRule extends 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 boolean |
checkAtFinishEdition |
protected boolean |
checkAtUpdate |
protected String |
description |
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFeatureRule(String name,
String description) |
protected |
AbstractFeatureRule(String name,
String description,
boolean checkAtUpdate,
boolean checkAtFinishEdition) |
| 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.
|
String |
getDescription()
Returns the rule description
|
String |
getName()
Returns the rule name
|
protected void |
init(String name,
String description,
boolean checkAtUpdate,
boolean checkAtFinishEdition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected String name
protected String description
protected boolean checkAtUpdate
protected boolean checkAtFinishEdition
protected void init(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition)
public String getName()
FeatureRulegetName in interface FeatureRulepublic String getDescription()
FeatureRulegetDescription in interface FeatureRulepublic boolean checkAtFinishEditing()
FeatureRulecheckAtFinishEditing in interface FeatureRulepublic boolean checkAtUpdate()
FeatureRulecheckAtUpdate in interface FeatureRule