public abstract class AbstractFeatureRule extends 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 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, wait
validate
protected 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()
FeatureRule
getName
in interface FeatureRule
public String getDescription()
FeatureRule
getDescription
in interface FeatureRule
public boolean checkAtFinishEditing()
FeatureRule
checkAtFinishEditing
in interface FeatureRule
public boolean checkAtUpdate()
FeatureRule
checkAtUpdate
in interface FeatureRule