|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractPersistenceImpl com.elasticpath.domain.impl.AbstractValueObjectImpl com.elasticpath.domain.rules.impl.AbstractRuleExceptionImpl
public abstract class AbstractRuleExceptionImpl
Abstract class with behaviour common to all rule elements.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
AbstractRuleExceptionImpl()
|
Method Summary | |
---|---|
void |
addParameter(RuleParameter ruleParameter)
Add a parameter of this rule condition. |
java.util.Set |
getParameters()
Get the parameters associated with this rule condition. |
java.lang.String |
getParamValue(java.lang.String key)
Returns the value of a parameter with the specified key. |
java.lang.String |
getType()
Get the type of this RuleException . |
void |
setDefaultValues()
Sets default values. |
void |
setParameters(java.util.Set parameters)
Set the parameters of this rule condition. |
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.RuleException |
---|
appliesInScenario, getDisplayText, getParameterKeys |
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 AbstractRuleExceptionImpl()
Method Detail |
---|
public void addParameter(RuleParameter ruleParameter)
addParameter
in interface RuleException
ruleParameter
- a RuleParameter
objectpublic java.util.Set getParameters()
getParameters
in interface RuleException
public java.lang.String getParamValue(java.lang.String key)
getParamValue
in interface RuleException
key
- The key of the parameter to be returned
public java.lang.String getType()
RuleException
. (e.g. skuException. Should match spring bean factory bean id.)
getType
in interface RuleException
public void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractPersistenceImpl
public void setParameters(java.util.Set parameters)
setParameters
in interface RuleException
parameters
- a set of RuleParameter
objectspublic void setType(java.lang.String type)
setType
in interface RuleException
type
- the type of elementpublic void validate() throws EpDomainException
validate
in interface RuleException
EpDomainException
- if the structure is not correct.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |