Package oracle.rules.rl
Interface Rule
- All Superinterfaces:
Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecifies that the effective date properties should be interpreted as date only.static final intSpecifies that the effective date properties should be interpreted as date and time.static final intSpecifies that the effective date properties should be interpreted as time only. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the current form in use for the effective date properties.Returns the effective end date or null if a end date has not been specified for the rule.Returns the effective start date or null if a start date has not been specified for the rule.getName()Returns the name of the rule.intReturns the rule priority.Returns the Ruleset instance for the ruleset this rule is defined in.booleanisActive()Returns true if the rule is active.booleanReturns the value of this rule's autofocus property.booleanisLoop()Returns the value of this rule's loop property.voidsetActive(boolean active) Sets the rule to be active (true) or inactive (false).voidsetEffectiveDateForm(int newForm) Sets the form to use for handling the effective date properties.voidsetEffectiveEndDate(Calendar endDate) Sets the effective end date for the rule.voidsetEffectiveStartDate(Calendar startDate) Sets the effective start date for the rule.
-
Field Details
-
EDFORM_DATETIME
static final int EDFORM_DATETIMESpecifies that the effective date properties should be interpreted as date and time. This form is valid to use with effective dates where either the date or date and time have been specified. This is the default.- See Also:
-
EDFORM_DATE
static final int EDFORM_DATESpecifies that the effective date properties should be interpreted as date only.- See Also:
-
EDFORM_TIME
static final int EDFORM_TIMESpecifies that the effective date properties should be interpreted as time only.- See Also:
-
-
Method Details
-
getName
String getName()Returns the name of the rule.- Returns:
- the name of the rule.
-
getRuleset
Ruleset getRuleset()Returns the Ruleset instance for the ruleset this rule is defined in.- Returns:
- the Ruleset instance for the ruleset this rule is defined in.
-
getPriority
Returns the rule priority.- Returns:
- the rule priority
- Throws:
RLException
-
isAutoFocus
Returns the value of this rule's autofocus property.- Returns:
- the autofocus value.
- Throws:
RLException
-
isLoop
Returns the value of this rule's loop property.- Returns:
- the loop value.
- Throws:
RLException
-
isActive
Returns true if the rule is active.- Returns:
- true if the rule is active.
- Throws:
RLException
-
setActive
Sets the rule to be active (true) or inactive (false).- Parameters:
active- sets the rule to be active (true) or inactive (false).- Throws:
RLException
-
getEffectiveStartDate
Returns the effective start date or null if a start date has not been specified for the rule.- Returns:
- the effective start date.
- Throws:
RLException
-
setEffectiveStartDate
Sets the effective start date for the rule. A value of null unsets the effective start date.- Parameters:
startDate- the new effective start date.- Throws:
RLException
-
getEffectiveEndDate
Returns the effective end date or null if a end date has not been specified for the rule.- Returns:
- the effective end date.
- Throws:
RLException
-
setEffectiveEndDate
Sets the effective end date for the rule. A value of null unsets the effective end date.- Parameters:
endDate- the new effective end date.- Throws:
RLException
-
getEffectiveDateForm
Returns the current form in use for the effective date properties.- Returns:
- the effective date form.
- Throws:
RLException
-
setEffectiveDateForm
Sets the form to use for handling the effective date properties. This must be set before either the effective start date or the effective end date are set. If they have been set previously, then setting them tonullwill allow the form to be set. If the form is set toEDFORM_DATEorEDFORM_TIMEthe date stored bysetEffectiveStartDateandsetEffectiveEndDateis made to conform to the selected form.- Parameters:
newForm- the effective date form.- Throws:
RLException
-