@Entity public class PropositionBo extends Object implements PropositionDefinitionContract, Versioned, Serializable
Constructor and Description |
---|
PropositionBo() |
Modifier and Type | Method and Description |
---|---|
static PropositionBo |
copyProposition(PropositionBo existing) |
static PropositionBo |
createCompoundPropositionBoStub(PropositionBo existing,
boolean addNewChild) |
static PropositionBo |
createCompoundPropositionBoStub2(PropositionBo existing) |
static PropositionBo |
createSimplePropositionBoStub(PropositionBo sibling,
String pType)
This method creates a partially populated Simple PropositionBo with
three parameters: a term type paramter (value not assigned)
a operation parameter
a constant parameter (value set to empty string)
The returned PropositionBo has an generatedId.
|
static PropositionBo |
from(PropositionDefinition im)
Converts a immutable object to it's mutable bo counterpart
|
String |
getCategoryId() |
List<PropositionBo> |
getCompoundComponents()
Returns the propositions which are contained in a
compound proposition.
|
String |
getCompoundOpCode()
Returns the op code to be used when evaluating compound
propositions.
|
Integer |
getCompoundSequenceNumber()
Returns the sequence number used to order the
compound propositions
Note: this value is set by the service
|
DataObjectService |
getDataObjectService() |
String |
getDescription()
Returns the description text for the KRMS proposition
|
boolean |
getEditMode() |
String |
getId()
The unique identifier for an object.
|
String |
getNewTermDescription() |
String |
getParameterDisplayString() |
List<PropositionParameterBo> |
getParameters()
Returns the parameter list of the proposition.
|
String |
getPropositionTypeCode()
There are three main types of Propositions:
Compound Propositions - a proposition consisting of other propositions
and a boolean algebra operator (AND, OR) defining how to evaluate
those propositions.
|
String |
getRuleId()
TReturns the ID of the rule this proposition belongs to.
|
boolean |
getShowCustomValue() |
String |
getTermParameter() |
List<TermParameter> |
getTermParameterList() |
Map<String,String> |
getTermParameters() |
String |
getTermSpecId() |
String |
getTypeId()
Returns the id of Proposition KrmsType of the proposition.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isShowCustomValue() |
void |
setCategoryId(String categoryId) |
void |
setCompoundComponents(List<PropositionBo> compoundComponents) |
void |
setCompoundOpCode(String compoundOpCode) |
void |
setCompoundSequenceNumber(Integer compoundSequenceNumber) |
void |
setDescription(String description) |
void |
setEditMode(boolean editMode) |
void |
setId(String id) |
void |
setNewTermDescription(String newTermDescription) |
void |
setParameterDisplayString(String parameterDisplayString) |
void |
setParameters(List<PropositionParameterBo> parameters) |
void |
setPropositionTypeCode(String propositionTypeCode) |
void |
setRuleId(String ruleId)
Sets the ruleId on this proposition and all its compound components.
|
void |
setShowCustomValue(boolean showCustomValue) |
void |
setTermParameter(String termParameter) |
void |
setTermParameterList(List<TermParameter> termParameterList) |
void |
setTermParameters(Map<String,String> termParameters) |
void |
setTermSpecId(String componentId) |
void |
setTypeId(String typeId)
set the typeId.
|
void |
setVersionNumber(Long versionNumber) |
static PropositionDefinition |
to(PropositionBo bo)
Converts a mutable bo to it's immutable counterpart
|
public PropositionBo()
public String getParameterDisplayString()
public void setParameterDisplayString(String parameterDisplayString)
parameterDisplayString
- the parameterDisplayString to setpublic boolean getEditMode()
public void setEditMode(boolean editMode)
public String getCategoryId()
public void setCategoryId(String categoryId)
public void setTypeId(String typeId)
typeId
- public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public Map<String,String> getTermParameters()
public void setTermParameters(Map<String,String> termParameters)
public DataObjectService getDataObjectService()
public static PropositionDefinition to(PropositionBo bo)
bo
- the mutable business objectpublic static PropositionBo from(PropositionDefinition im)
im
- immutable objectpublic static PropositionBo createSimplePropositionBoStub(PropositionBo sibling, String pType)
sibling
- -pType
- public static PropositionBo createCompoundPropositionBoStub(PropositionBo existing, boolean addNewChild)
public static PropositionBo createCompoundPropositionBoStub2(PropositionBo existing)
public static PropositionBo copyProposition(PropositionBo existing)
public String getTermSpecId()
public void setTermSpecId(String componentId)
public boolean isShowCustomValue()
public void setShowCustomValue(boolean showCustomValue)
public String getTermParameter()
public void setTermParameter(String termParameter)
public List<TermParameter> getTermParameterList()
public void setTermParameterList(List<TermParameter> termParameterList)
public String getId()
Identifiable
getId
in interface Identifiable
public String getDescription()
PropositionDefinitionContract
getDescription
in interface PropositionDefinitionContract
public void setDescription(String description)
public String getRuleId()
PropositionDefinitionContract
getRuleId
in interface PropositionDefinitionContract
public void setRuleId(String ruleId)
ruleId
- the ruleId to setpublic String getTypeId()
PropositionDefinitionContract
getTypeId
in interface PropositionDefinitionContract
public String getPropositionTypeCode()
PropositionDefinitionContract
There are three main types of Propositions: Compound Propositions - a proposition consisting of other propositions and a boolean algebra operator (AND, OR) defining how to evaluate those propositions. Parameterized Propositions - a proposition which is parameterized by some set of values, evaluation logic is implemented by hand and returns true or false Simple Propositions - a proposition of the form lhs op rhs where lhs=left-hand side, rhs=right-hand side, and op=operator
getPropositionTypeCode
in interface PropositionDefinitionContract
Valid values are C = compound, P = parameterized, S = simple
public void setPropositionTypeCode(String propositionTypeCode)
public List<PropositionParameterBo> getParameters()
PropositionDefinitionContract
Compound Propositions will have an empty parameter list.
getParameters
in interface PropositionDefinitionContract
PropositionParameter
public void setParameters(List<PropositionParameterBo> parameters)
public String getCompoundOpCode()
PropositionDefinitionContract
getCompoundOpCode
in interface PropositionDefinitionContract
public void setCompoundOpCode(String compoundOpCode)
public Integer getCompoundSequenceNumber()
PropositionDefinitionContract
getCompoundSequenceNumber
in interface PropositionDefinitionContract
public void setCompoundSequenceNumber(Integer compoundSequenceNumber)
public List<PropositionBo> getCompoundComponents()
PropositionDefinitionContract
getCompoundComponents
in interface PropositionDefinitionContract
public void setCompoundComponents(List<PropositionBo> compoundComponents)
public boolean getShowCustomValue()
public String getNewTermDescription()
public void setNewTermDescription(String newTermDescription)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.