public class DefaultFeatureRules extends ArrayList implements FeatureRules
modCount
Constructor and Description |
---|
DefaultFeatureRules() |
Modifier and Type | Method and Description |
---|---|
FeatureRule |
add(FeatureRule rule)
Adds a new rule to this FeatureRules.
|
FeatureRules |
getCopy()
Returns a new copy of this FeatureRules.
|
FeatureRule |
getRule(int index)
Returns a
FeatureRule given its index. |
boolean |
remove(FeatureRule rule)
Removes the given rule from this FeatureRules.
|
void |
validate(Feature feature)
Deprecated.
use validate(Feature feature, int mode)
|
void |
validate(Feature feature,
int mode) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, get, iterator, remove, size
containsAll, equals, hashCode
public FeatureRule add(FeatureRule rule)
FeatureRules
add
in interface FeatureRules
rule
- the new rule to add.public FeatureRule getRule(int index)
FeatureRules
FeatureRule
given its index.getRule
in interface FeatureRules
index
- a position in this FeatureRules
FeatureRule
found in the given indexpublic boolean remove(FeatureRule rule)
FeatureRules
remove
in interface FeatureRules
rule
- FeatureRule to removepublic FeatureRules getCopy()
FeatureRules
getCopy
in interface FeatureRules
public void validate(Feature feature) throws DataException
feature
- DataException
public void validate(Feature feature, int mode) throws DataException
DataException