|
|||||||||
| 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.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 RuleExceptionruleParameter - a RuleParameter objectpublic java.util.Set getParameters()
getParameters in interface RuleExceptionpublic java.lang.String getParamValue(java.lang.String key)
getParamValue in interface RuleExceptionkey - 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 RuleExceptionpublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractPersistenceImplpublic void setParameters(java.util.Set parameters)
setParameters in interface RuleExceptionparameters - a set of RuleParameter objectspublic void setType(java.lang.String type)
setType in interface RuleExceptiontype - the type of element
public void validate()
throws EpDomainException
validate in interface RuleExceptionEpDomainException - if the structure is not correct.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||