public class DefaultFeatureRules extends java.util.ArrayList<FeatureRule> implements FeatureRules, SupportJson
| Constructor and Description | 
|---|
| DefaultFeatureRules() | 
| 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 | fromJson(JsonObject json) | 
| FeatureRules | getCopy()Returns a new copy of this FeatureRules. | 
| FeatureRule | getRule(int index)Returns a  FeatureRulegiven its index. | 
| void | loadFromState(PersistentState state)Set the state of the object from the state passed as parameter. | 
| boolean | remove(FeatureRule rule)Removes the given rule from this FeatureRules. | 
| void | saveToState(PersistentState state)Saves the internal state of the object on the provided
 PersistentState object. | 
| static void | selfRegister() | 
| JsonObject | toJson() | 
| JsonObjectBuilder | toJsonBuilder() | 
| void | validate(EditableFeature feature,
        int check) | 
| void | validate(Feature feature,
        int mode) | 
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitclear, get, isEmpty, iterator, remove, sizetoJson, toJsonBuilderpublic boolean add(FeatureRule rule)
FeatureRulesadd in interface java.util.Collection<FeatureRule>add in interface java.util.List<FeatureRule>add in interface FeatureRulesadd in class java.util.ArrayList<FeatureRule>rule - the new rule to add.public boolean add(java.lang.String name,
                   java.lang.String description,
                   boolean checkAtUpdate,
                   boolean checkAtFinishEdition,
                   Expression expression)
add in interface FeatureRulespublic FeatureRule getRule(int index)
FeatureRulesFeatureRule given its index.getRule in interface FeatureRulesindex - a position in this FeatureRulesFeatureRule found in the given indexpublic boolean remove(FeatureRule rule)
FeatureRulesremove in interface FeatureRulesrule - FeatureRule to removepublic FeatureRules getCopy()
FeatureRulesgetCopy in interface FeatureRulespublic void validate(Feature feature, int mode) throws DataException
DataExceptionpublic void validate(EditableFeature feature, int check) throws DataException
DataExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void fromJson(JsonObject json)
fromJson in interface SupportFromJsonpublic JsonObject toJson()
toJson in interface SupportToJsonpublic JsonObjectBuilder toJsonBuilder()
toJsonBuilder in interface SupportToJsonpublic static void selfRegister()