ZMObject
|
+--ZMRuleSet
public class ZMRuleSet
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMRuleSet(string id, array rules) Create new rule set. |
|
| Method Summary | |
|---|---|
| void | Add a new ZMRule. |
| void | addRules(array rules) Add a list of ZMRules. |
| int | getId() Get the rule set id. |
| array | getRules() Get the validation rules. |
| void | removeRule(string type, string name) Remove a rule. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMRuleSet(string id, array rules)
Create new rule set.
public void addRule(ZMRule rule)
Add a new ZMRule.
public void addRules(array rules)
Add a list of ZMRules.
ZMRule instances.public int getId()
Get the rule set id.
public array getRules()
Get the validation rules.
ZMRule objects.public void removeRule(string type, string name)
Remove a rule.
A set of validation rules.