Class DefaultFeatureRuleExpression

java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureRule
org.gvsig.expressionevaluator.impl.DefaultFeatureRuleExpression
All Implemented Interfaces:
org.gvsig.fmap.dal.feature.FeatureRule, org.gvsig.fmap.dal.feature.FeatureRuleExpression, org.gvsig.json.SupportFromJson, org.gvsig.json.SupportJson, org.gvsig.json.SupportToJson, org.gvsig.tools.persistence.Persistent

public class DefaultFeatureRuleExpression extends org.gvsig.fmap.dal.feature.AbstractFeatureRule implements org.gvsig.fmap.dal.feature.FeatureRuleExpression
Author:
gvSIG team
  • Field Summary

    Fields inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureRule

    checkwhen, description, name

    Fields inherited from interface org.gvsig.fmap.dal.feature.FeatureRule

    CHECK_WHEN_FINISH_EDITING, CHECK_WHEN_INSERT_OR_UPDATE_FEATURE, CHECK_WHEN_USER_EDIT_FEATURE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DefaultFeatureRuleExpression(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition, org.gvsig.expressionevaluator.Expression expression)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(org.gvsig.fmap.dal.feature.EditableFeature feature)
     
    void
    fromJson(javax.json.JsonObject json)
     
    org.gvsig.expressionevaluator.Expression
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    static void
     
    void
    setCheckAtFinishEditing(boolean checkAtFinishEditing)
     
    void
    setCheckAtUpdate(boolean checkAtUpdate)
     
    void
    setCheckWhen(int mask)
     
    void
    setDescription(String description)
     
    void
    setExpression(org.gvsig.expressionevaluator.Expression expression)
     
    void
     
    javax.json.JsonObject
     
    org.gvsig.json.JsonObjectBuilder
     
    void
    validate(org.gvsig.fmap.dal.feature.EditableFeature feature, org.gvsig.fmap.dal.feature.FeatureStore featureStore)
     

    Methods inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureRule

    checkAtFinishEditing, checkAtUpdate, checkWhen, getDescription, getName

    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

    checkAtFinishEditing, checkAtUpdate, checkWhen, getDescription, getName

    Methods inherited from interface org.gvsig.json.SupportToJson

    toJson, toJsonBuilder
  • Constructor Details

    • DefaultFeatureRuleExpression

      public DefaultFeatureRuleExpression()
    • DefaultFeatureRuleExpression

      public DefaultFeatureRuleExpression(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition, org.gvsig.expressionevaluator.Expression expression)
  • Method Details

    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • setDescription

      public void setDescription(String description)
      Specified by:
      setDescription in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • validate

      public void validate(org.gvsig.fmap.dal.feature.EditableFeature feature, org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      validate in interface org.gvsig.fmap.dal.feature.FeatureRule
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • execute

      public Object execute(org.gvsig.fmap.dal.feature.EditableFeature feature)
    • selfRegister

      public static void selfRegister()
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • setCheckAtUpdate

      public void setCheckAtUpdate(boolean checkAtUpdate)
      Specified by:
      setCheckAtUpdate in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • setCheckAtFinishEditing

      public void setCheckAtFinishEditing(boolean checkAtFinishEditing)
      Specified by:
      setCheckAtFinishEditing in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • getExpression

      public org.gvsig.expressionevaluator.Expression getExpression()
      Specified by:
      getExpression in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • setExpression

      public void setExpression(org.gvsig.expressionevaluator.Expression expression)
      Specified by:
      setExpression in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
    • toJson

      public javax.json.JsonObject toJson()
      Specified by:
      toJson in interface org.gvsig.json.SupportToJson
    • toJsonBuilder

      public org.gvsig.json.JsonObjectBuilder toJsonBuilder()
      Specified by:
      toJsonBuilder in interface org.gvsig.json.SupportToJson
    • fromJson

      public void fromJson(javax.json.JsonObject json)
      Specified by:
      fromJson in interface org.gvsig.json.SupportFromJson
    • setCheckWhen

      public void setCheckWhen(int mask)
      Specified by:
      setCheckWhen in interface org.gvsig.fmap.dal.feature.FeatureRuleExpression
      Overrides:
      setCheckWhen in class org.gvsig.fmap.dal.feature.AbstractFeatureRule