public interface Rule
extends java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
EDFORM_DATE
Specifies that the effective date properties should be interpreted as
date only.
|
static int |
EDFORM_DATETIME
Specifies that the effective date properties should be interpreted as
date and time.
|
static int |
EDFORM_TIME
Specifies that the effective date properties should be interpreted as
time only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEffectiveDateForm()
Returns the current form in use for the effective date properties.
|
java.util.Calendar |
getEffectiveEndDate()
Returns the effective end date or null if a end date has not been
specified for the rule.
|
java.util.Calendar |
getEffectiveStartDate()
Returns the effective start date or null if a start date has not been
specified for the rule.
|
java.lang.String |
getName()
Returns the name of the rule.
|
int |
getPriority()
Returns the rule priority.
|
Ruleset |
getRuleset()
Returns the Ruleset instance for the ruleset this rule is defined in.
|
boolean |
isActive()
Returns true if the rule is active.
|
boolean |
isAutoFocus()
Returns the value of this rule's autofocus property.
|
boolean |
isLoop()
Returns the value of this rule's loop property.
|
void |
setActive(boolean active)
Sets the rule to be active (true) or inactive (false).
|
void |
setEffectiveDateForm(int newForm)
Sets the form to use for handling the effective date properties.
|
void |
setEffectiveEndDate(java.util.Calendar endDate)
Sets the effective end date for the rule.
|
void |
setEffectiveStartDate(java.util.Calendar startDate)
Sets the effective start date for the rule.
|
static final int EDFORM_DATETIME
static final int EDFORM_DATE
static final int EDFORM_TIME
java.lang.String getName()
Ruleset getRuleset()
int getPriority()
throws RLException
RLExceptionboolean isAutoFocus()
throws RLException
RLExceptionboolean isLoop()
throws RLException
RLExceptionboolean isActive()
throws RLException
RLExceptionvoid setActive(boolean active)
throws RLException
active - sets the rule to be active (true) or inactive (false).RLExceptionjava.util.Calendar getEffectiveStartDate()
throws RLException
RLExceptionvoid setEffectiveStartDate(java.util.Calendar startDate)
throws RLException
startDate - the new effective start date.RLExceptionjava.util.Calendar getEffectiveEndDate()
throws RLException
RLExceptionvoid setEffectiveEndDate(java.util.Calendar endDate)
throws RLException
endDate - the new effective end date.RLExceptionint getEffectiveDateForm()
throws RLException
RLExceptionvoid setEffectiveDateForm(int newForm)
throws RLException
null will allow the form to be set.
If the form is set to EDFORM_DATE or
EDFORM_TIME the date stored by
setEffectiveStartDate and setEffectiveEndDate
is made to conform to the selected form.newForm - the effective date form.RLException