public class NFERuleInstance extends NFEBasicModelObject
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFERuleInstance()
Allocates a new rule instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFeatureElementRelation(NFEFeatureElement featElem)
Adds a relation to the feature element
|
boolean |
addRelation(NFERuleInstanceRelation relation)
Adds a relation to a feature element.
|
long |
getId()
Gets the rule instance id
|
java.util.Collection<NFEFeatureElement> |
getRelatedFeatureElements()
Gets all the feature elements currently related to this rule instance
|
java.util.Collection<NFERuleInstanceRelation> |
getRelations()
Gets all the feature element relations.
|
int |
getRelationsCount()
Gets the number of related feature elements
|
long |
getRuleId()
Gets the rule instance's rule id
|
NFERulesModel |
getRulesModel()
Gets the current rules model
|
NFEConnectivityRule.ConnectivityRuleType |
getRuleType()
Gets the rule instance's rule type
|
boolean |
isRelatedToFeatureElement(NFEFeatureElement featElem)
Tells whether the given feature element is related to the rule instance
|
boolean |
removeFeatureElementRelation(NFEFeatureElement featElem)
Removes the relation with the feature element
|
void |
setId(long id)
Sets the rule instance id
|
void |
setRuleId(long ruleId)
Sets the rule instance's rule id
|
void |
setRulesModel(NFERulesModel rulesModel)
Sets the current rules model instance
|
void |
setRuleType(NFEConnectivityRule.ConnectivityRuleType ruleType)
Sets the rule instance's rule type
|
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public NFERulesModel getRulesModel()
public void setRulesModel(NFERulesModel rulesModel)
rulesModel
- a rules model instancepublic long getId()
public void setId(long id)
id
- a rule instance idpublic long getRuleId()
public void setRuleId(long ruleId)
ruleId
- a rule idpublic NFEConnectivityRule.ConnectivityRuleType getRuleType()
public void setRuleType(NFEConnectivityRule.ConnectivityRuleType ruleType)
ruleType
- a connectivity rule typepublic boolean addRelation(NFERuleInstanceRelation relation)
relation
- an object defining the relationship between the rule instance and the feature elementpublic boolean addFeatureElementRelation(NFEFeatureElement featElem)
featElem
- a feature elementpublic boolean removeFeatureElementRelation(NFEFeatureElement featElem)
featElem
- a feature elementpublic java.util.Collection<NFEFeatureElement> getRelatedFeatureElements()
public boolean isRelatedToFeatureElement(NFEFeatureElement featElem)
featElem
- a feature elementpublic java.util.Collection<NFERuleInstanceRelation> getRelations()
public int getRelationsCount()