|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRuleBase
main interface representing a collection of rules and their metadata in ACTF. Currently, only rulebases described by XML documents (or validation documents) are supported.
IDocumentRuleBase
Method Summary | |
---|---|
void |
addExecutionPointDescriptor(ExecutionPointDescriptor descriptor)
add an execution point descriptor to this rulebase |
void |
addRuleSet(IRuleSet set)
add a ruleset to this rulebase |
ExecutionPointDescriptor |
getExecutionPointDescriptor(String name)
get the execution point descriptor with the given name |
ExecutionPointDescriptor[] |
getExecutionPointDescriptors()
get the execution point descriptors of this rulebase |
IRuleBaseMetadata |
getMetadata()
returns the metadata for this rulebase (if any) |
String |
getModelType()
retreave the model type associated with this rulebase |
String |
getName()
get the name of this rulebase |
IRuleSet[] |
getRuleSets()
retreave the rulesets contained within this rulebase. |
IRuleSet[] |
getRuleSetsForExecutionPoint(String name)
retrieves all RuleSets in the IRuleBase that are associated with the ExecutionPoint with the given name. |
boolean |
isEnabled()
returns whether or not this rulebase is enabled. |
void |
removeExecutionPointDescriptor(String name)
remove the execution point descriptor with the given name from this rulebase |
void |
removeRuleSet(String name)
remove the ruleset with the given name |
void |
setEnabled(boolean enable)
set whether or not this rulebase is enabled. |
void |
setExecutionPointDescriptors(ExecutionPointDescriptor[] descriptors)
set the execution point descriptors for this rulebase. |
void |
setMetadata(IRuleBaseMetadata metadata)
set the metadata for this rulebase |
void |
setModelType(String type)
set the model type associated with this rulebase. |
void |
setName(String name)
set the name of this rulebase |
void |
setRuleSets(IRuleSet[] rulesets)
set the rulesets for this rulebase |
Method Detail |
---|
String getName()
void setName(String name)
name
- -
name of rulebaseboolean isEnabled()
true
if this rulebase is enabled,
false
otherwisevoid setEnabled(boolean enable)
enable
- -
set whether or not this rulebase is enabledIRuleBaseMetadata getMetadata()
null
if no metadata
is availablevoid setMetadata(IRuleBaseMetadata metadata)
metadata
- IRuleSet[] getRuleSets()
IRuleSet
void setRuleSets(IRuleSet[] rulesets)
rulesets
- void addRuleSet(IRuleSet set)
set
- void removeRuleSet(String name)
name
- name of ruleset to be removedString getModelType()
setModelType(String)
void setModelType(String type)
type
- type of model to be associated with this rulebaseExecutionPointDescriptor[] getExecutionPointDescriptors()
setExecutionPointDescriptors(ExecutionPointDescriptor[])
void setExecutionPointDescriptors(ExecutionPointDescriptor[] descriptors)
descriptors
- -
an array of ExecutionPointDescriptors for this IRuleBasevoid addExecutionPointDescriptor(ExecutionPointDescriptor descriptor)
descriptor
- void removeExecutionPointDescriptor(String name)
name
- name of descriptor to be removedExecutionPointDescriptor getExecutionPointDescriptor(String name)
name
- name of desired descriptor
IRuleSet[] getRuleSetsForExecutionPoint(String name)
name
- -- the execution point name to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |