public interface FeatureRules extends java.lang.Iterable<FeatureRule>, Persistent
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(FeatureRule rule)
Adds a new rule to this FeatureRules.
|
boolean |
add(java.lang.String name,
java.lang.String description,
boolean checkAtUpdate,
boolean checkAtFinishEdition,
Expression expression) |
void |
clear()
Clears this FeatureRules from any rules.
|
FeatureRule |
get(int index)
Returns an object given its index.
|
FeatureRules |
getCopy()
Returns a new copy of this FeatureRules.
|
FeatureRule |
getRule(int index)
Returns a
FeatureRule given its index. |
boolean |
isEmpty() |
java.util.Iterator<FeatureRule> |
iterator()
Returns an iterator over the available
FeatureRule(s) |
boolean |
remove(FeatureRule rule)
Removes the given rule from this FeatureRules.
|
FeatureRule |
remove(int index)
Removes the rule stored in the given index.
|
int |
size()
Returns the number of rules contained in this FeatureRules.
|
loadFromState, saveToStateFeatureRule get(int index)
index - a position in this FeatureRulesFeatureRule getRule(int index)
FeatureRule given its index.index - a position in this FeatureRulesFeatureRule found in the given indexboolean add(FeatureRule rule)
rule - the new rule to add.boolean add(java.lang.String name,
java.lang.String description,
boolean checkAtUpdate,
boolean checkAtFinishEdition,
Expression expression)
int size()
boolean isEmpty()
void clear()
FeatureRule remove(int index)
index - index of the rule to remove.boolean remove(FeatureRule rule)
rule - FeatureRule to removejava.util.Iterator<FeatureRule> iterator()
FeatureRule(s)iterator in interface java.lang.Iterable<FeatureRule>FeatureRule(s)FeatureRules getCopy()