Class AbstractFeatureRule

java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureRule
All Implemented Interfaces:
FeatureRule, org.gvsig.tools.persistence.Persistent

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:
gvSIG Team
  • Field Details

    • name

      protected String name
    • description

      protected String description
    • checkwhen

      protected org.gvsig.tools.util.Bitmask checkwhen
  • Constructor Details

    • AbstractFeatureRule

      protected AbstractFeatureRule(String name, String description)
    • AbstractFeatureRule

      protected AbstractFeatureRule(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition)
    • AbstractFeatureRule

      protected AbstractFeatureRule(String name, String description, int checkwhenmask)
  • Method Details

    • 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. In this rules, can't be updated any feature in the store.
      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. Only in this rules can be updated the feature in the store.
      Specified by:
      checkAtUpdate in interface FeatureRule
      Returns:
      true if this rule should be checked at update, otherwise false.
    • checkWhen

      public boolean checkWhen(int mask)
      Specified by:
      checkWhen in interface FeatureRule
    • setCheckWhen

      protected void setCheckWhen(int mask)