org.gvsig.fmap.dal.feature
Class AbstractFeatureRule

java.lang.Object
  extended by org.gvsig.fmap.dal.feature.AbstractFeatureRule
All Implemented Interfaces:
FeatureRule
Direct Known Subclasses:
FeatureRulePolygon

public abstract class AbstractFeatureRule
extends Object
implements FeatureRule

Abstract feature rule intended for giving a partial default implementation of the FeatureRule interface to other rule implementations. It is recommended to extend this class when implementing new FeatureRules.

Author:
Vicente Caballero Navarro

Field Summary
protected  boolean checkAtFinishEdition
           
protected  boolean checkAtUpdate
           
protected  String description
           
protected  String name
           
 
Constructor Summary
protected AbstractFeatureRule(String name, String description)
           
protected AbstractFeatureRule(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gvsig.fmap.dal.feature.FeatureRule
validate
 

Field Detail

name

protected String name

description

protected String description

checkAtUpdate

protected boolean checkAtUpdate

checkAtFinishEdition

protected boolean checkAtFinishEdition
Constructor Detail

AbstractFeatureRule

protected AbstractFeatureRule(String name,
                              String description)

AbstractFeatureRule

protected AbstractFeatureRule(String name,
                              String description,
                              boolean checkAtUpdate,
                              boolean checkAtFinishEdition)
Method Detail

init

protected void init(String name,
                    String description,
                    boolean checkAtUpdate,
                    boolean checkAtFinishEdition)

getName

public String getName()
Description copied from interface: FeatureRule
Returns the rule name

Specified by:
getName in interface FeatureRule
Returns:
the rule name

getDescription

public String getDescription()
Description copied from interface: FeatureRule
Returns the rule description

Specified by:
getDescription in interface FeatureRule
Returns:
the rule description

checkAtFinishEditing

public boolean checkAtFinishEditing()
Description copied from interface: FeatureRule
Returns true if this rule should be applied just when editing is being finished.

Specified by:
checkAtFinishEditing in interface FeatureRule
Returns:
true if this rule should be applied when editing is being finished, otherwise false.

checkAtUpdate

public boolean checkAtUpdate()
Description copied from interface: FeatureRule
Indicates whether this rule should be checked at update.

Specified by:
checkAtUpdate in interface FeatureRule
Returns:
true if this rule should be checked at update, otherwise false.


Copyright © 2004-2012 gvSIG. All Rights Reserved.