|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractValueObjectImpl
com.elasticpath.domain.rules.impl.AbstractRuleElementImpl
public abstract class AbstractRuleElementImpl
Abstract class with behaviour common to all rule elements.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
AbstractRuleElementImpl()
|
Method Summary | |
---|---|
void |
addParameter(RuleParameter ruleParameter)
Add a parameter of this rule condition. |
java.util.Set |
getExceptions()
Get the RuleException objects associated with this RuleElement . |
java.lang.String |
getKind()
Get the kind of this RuleElement (e.g. |
java.util.Set |
getParameters()
Get the parameters associated with this rule condition. |
java.lang.String |
getType()
Get the type of this rule element. |
void |
setDefaultValues()
Sets default values. |
void |
setExceptions(java.util.Set ruleExceptions)
Set the exceptions of this rule element. |
void |
setKind(java.lang.String kind)
Set the kind of this RuleElement (e.g. |
void |
setParameters(java.util.Set parameters)
Set the parameters of this rule condition. |
void |
setRuleId(long ruleId)
Set the identifier for the rule that contains this action. |
void |
setType(java.lang.String type)
Set the type of element. |
void |
validate()
Checks that the rule set domain model is well formed. |
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.rules.RuleElement |
---|
appliesInScenario, getAllowedExceptions, getDisplayText, getParameterKeys, getRuleCode |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public AbstractRuleElementImpl()
Method Detail |
---|
public void addParameter(RuleParameter ruleParameter)
addParameter
in interface RuleElement
ruleParameter
- a RuleParameter
objectpublic java.util.Set getExceptions()
RuleException
objects associated with this RuleElement
.
getExceptions
in interface RuleElement
public java.lang.String getKind()
RuleElement
(e.g. eligibility, condition, action).
getKind
in interface RuleElement
public java.util.Set getParameters()
getParameters
in interface RuleElement
public java.lang.String getType()
getType
in interface RuleElement
public void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractPersistenceImpl
public void setExceptions(java.util.Set ruleExceptions)
setExceptions
in interface RuleElement
ruleExceptions
- a set of RuleException
objects.public void setKind(java.lang.String kind)
RuleElement
(e.g. eligibility, condition, action)
setKind
in interface RuleElement
kind
- the kind of the rule elementpublic void setParameters(java.util.Set parameters)
setParameters
in interface RuleElement
parameters
- a set of RuleParameter
objectspublic void setRuleId(long ruleId)
setRuleId
in interface RuleElement
ruleId
- the id of the rule containing this action.public void setType(java.lang.String type)
setType
in interface RuleElement
type
- the type of elementpublic void validate() throws EpDomainException
validate
in interface RuleElement
EpDomainException
- if the structure is not correct.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |