org.gvsig.fmap.dal.feature
Class AbstractFeatureRule
java.lang.Object
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 FeatureRule
s.
- Author:
- Vicente Caballero Navarro
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
description
protected String description
checkAtUpdate
protected boolean checkAtUpdate
checkAtFinishEdition
protected boolean checkAtFinishEdition
AbstractFeatureRule
protected AbstractFeatureRule(String name,
String description)
AbstractFeatureRule
protected AbstractFeatureRule(String name,
String description,
boolean checkAtUpdate,
boolean checkAtFinishEdition)
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.