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, nameFields 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
ConstructorsConstructorDescriptionDefaultFeatureRuleExpression(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition, org.gvsig.expressionevaluator.Expression expression) -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.gvsig.fmap.dal.feature.EditableFeature feature) voidfromJson(javax.json.JsonObject json) org.gvsig.expressionevaluator.ExpressionvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsetCheckAtFinishEditing(boolean checkAtFinishEditing) voidsetCheckAtUpdate(boolean checkAtUpdate) voidsetCheckWhen(int mask) voidsetDescription(String description) voidsetExpression(org.gvsig.expressionevaluator.Expression expression) voidjavax.json.JsonObjecttoJson()org.gvsig.json.JsonObjectBuildervoidvalidate(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, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.dal.feature.FeatureRule
checkAtFinishEditing, checkAtUpdate, checkWhen, getDescription, getNameMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJsonBuilder
-
Constructor Details
-
DefaultFeatureRuleExpression
public DefaultFeatureRuleExpression() -
DefaultFeatureRuleExpression
-
-
Method Details
-
setName
- Specified by:
setNamein interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression
-
setDescription
- Specified by:
setDescriptionin interfaceorg.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:
validatein interfaceorg.gvsig.fmap.dal.feature.FeatureRule- Throws:
org.gvsig.fmap.dal.exception.DataException
-
execute
-
selfRegister
public static void selfRegister() -
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.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:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
setCheckAtUpdate
public void setCheckAtUpdate(boolean checkAtUpdate) - Specified by:
setCheckAtUpdatein interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression
-
setCheckAtFinishEditing
public void setCheckAtFinishEditing(boolean checkAtFinishEditing) - Specified by:
setCheckAtFinishEditingin interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression
-
getExpression
public org.gvsig.expressionevaluator.Expression getExpression()- Specified by:
getExpressionin interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression
-
setExpression
public void setExpression(org.gvsig.expressionevaluator.Expression expression) - Specified by:
setExpressionin interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression
-
toJson
public javax.json.JsonObject toJson()- Specified by:
toJsonin interfaceorg.gvsig.json.SupportToJson
-
toJsonBuilder
public org.gvsig.json.JsonObjectBuilder toJsonBuilder()- Specified by:
toJsonBuilderin interfaceorg.gvsig.json.SupportToJson
-
fromJson
public void fromJson(javax.json.JsonObject json) - Specified by:
fromJsonin interfaceorg.gvsig.json.SupportFromJson
-
setCheckWhen
public void setCheckWhen(int mask) - Specified by:
setCheckWhenin interfaceorg.gvsig.fmap.dal.feature.FeatureRuleExpression- Overrides:
setCheckWhenin classorg.gvsig.fmap.dal.feature.AbstractFeatureRule
-