Package org.gvsig.fmap.dal.feature
Class AbstractFeatureRule
java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureRule
- All Implemented Interfaces:
FeatureRule,org.gvsig.tools.persistence.Persistent
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.gvsig.tools.util.Bitmaskprotected Stringprotected StringFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractFeatureRule(String name, String description) protectedAbstractFeatureRule(String name, String description, boolean checkAtUpdate, boolean checkAtFinishEdition) protectedAbstractFeatureRule(String name, String description, int checkwhenmask) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this rule should be applied just when editing is being finished.booleanIndicates whether this rule should be checked at update.booleancheckWhen(int mask) Returns the rule descriptiongetName()Returns the rule nameprotected voidsetCheckWhen(int mask) Methods 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
validateMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
name
-
description
-
checkwhen
protected org.gvsig.tools.util.Bitmask checkwhen
-
-
Constructor Details
-
AbstractFeatureRule
-
AbstractFeatureRule
-
AbstractFeatureRule
-
-
Method Details
-
getName
Description copied from interface:FeatureRuleReturns the rule name- Specified by:
getNamein interfaceFeatureRule- Returns:
- the rule name
-
getDescription
Description copied from interface:FeatureRuleReturns the rule description- Specified by:
getDescriptionin interfaceFeatureRule- Returns:
- the rule description
-
checkAtFinishEditing
public boolean checkAtFinishEditing()Description copied from interface:FeatureRuleReturns 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:
checkAtFinishEditingin interfaceFeatureRule- Returns:
- true if this rule should be applied when editing is being finished, otherwise false.
-
checkAtUpdate
public boolean checkAtUpdate()Description copied from interface:FeatureRuleIndicates whether this rule should be checked at update. Only in this rules can be updated the feature in the store.- Specified by:
checkAtUpdatein interfaceFeatureRule- Returns:
- true if this rule should be checked at update, otherwise false.
-
checkWhen
public boolean checkWhen(int mask) - Specified by:
checkWhenin interfaceFeatureRule
-
setCheckWhen
protected void setCheckWhen(int mask)
-