org.gvsig.fmap.dal.feature
Interface FeatureRules


public interface FeatureRules

This is a container for FeatureRules. Besides getting a rule by index, this structure allows adding a rule, removing a rule, iterating over the rules and copying the whole structure.


Method Summary
 FeatureRule add(FeatureRule rule)
          Adds a new rule to this FeatureRules.
 void clear()
          Clears this FeatureRules from any rules.
 Object 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.
 Iterator iterator()
          Returns an iterator over the available FeatureRule(s)
 boolean remove(FeatureRule rule)
          Removes the given rule from this FeatureRules.
 Object remove(int index)
          Removes the rule stored in the given index.
 int size()
          Returns the number of rules contained in this FeatureRules.
 

Method Detail

get

Object get(int index)
Returns an object given its index.

Parameters:
index - a position in this FeatureRules
Returns:
the object found in the given index

getRule

FeatureRule getRule(int index)
Returns a FeatureRule given its index.

Parameters:
index - a position in this FeatureRules
Returns:
the FeatureRule found in the given index

add

FeatureRule add(FeatureRule rule)
Adds a new rule to this FeatureRules.

Parameters:
rule - the new rule to add.
Returns:
the added rule

size

int size()
Returns the number of rules contained in this FeatureRules.

Returns:
number of rules in this FeatureRules

clear

void clear()
Clears this FeatureRules from any rules.


remove

Object remove(int index)
Removes the rule stored in the given index.

Parameters:
index - index of the rule to remove.
Returns:
returns the removed rule

remove

boolean remove(FeatureRule rule)
Removes the given rule from this FeatureRules.

Parameters:
rule - FeatureRule to remove
Returns:
true indicates success, false indicates that it was not found.

iterator

Iterator iterator()
Returns an iterator over the available FeatureRule(s)

Returns:
an iterator over the available FeatureRule(s)

getCopy

FeatureRules getCopy()
Returns a new copy of this FeatureRules.

Returns:
a new copy of this FeatureRules.


Copyright © 2004-2012 gvSIG. All Rights Reserved.