|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.proposition.PropositionDefinition
public final class PropositionDefinition
Concrete model object implementation of KRMS Proposition. Immutable. Instances of Proposition can be (un)marshalled to and from XML. There are three main types of Propositions: 1. Compound Propositions - a proposition consisting of other propositions and a boolean algebra operator (AND, OR) defining how to evaluate those propositions. 2. Parameterized Propositions - a proposition which is parameterized by some set of values, evaluation logic is implemented by hand and returns true or false 3. Simple Propositions - a proposition of the form lhs op rhs where lhs=left-hand side, rhs=right-hand side, and op=operator Propositions are reference by a rule or another proposition (in the case of compound propositions). Propositions are never re-used across multiple rules. Each proposition can have zero or more parameters. The proposition parameter is the primary data element used to define the proposition. (@see PropositionParameter)
PropositonContract,
PropositionParameterContract,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
PropositionDefinition.Builder
This builder is used to construct instances of KRMS Proposition. |
static class |
PropositionDefinition.Elements
A private class which exposes constants which define the XML element names to use when this object is marshalled to XML. |
| Method Summary | |
|---|---|
List<PropositionDefinition> |
getCompoundComponents()
This method returns the propositions which are contained in a compound proposition. |
String |
getCompoundOpCode()
This method returns the op code to be used when evaluating compound propositions. |
String |
getDescription()
This is the description text for the KRMS proposition |
String |
getId()
The unique identifier for an object. |
List<PropositionParameter> |
getParameters()
This is 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()
This returns the ID of the rule this proposition belongs to. |
String |
getTypeId()
This is the id of Proposition KrmsType of the proposition. |
Long |
getVersionNumber()
Returns the version number for this object. |
| Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject |
|---|
afterUnmarshal, beforeUnmarshal, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getId()
Identifiable
getId in interface Identifiablepublic String getDescription()
PropositionDefinitionContract
getDescription in interface PropositionDefinitionContractpublic String getRuleId()
PropositionDefinitionContract
getRuleId in interface PropositionDefinitionContractpublic String getTypeId()
PropositionDefinitionContract
getTypeId in interface PropositionDefinitionContractpublic String getPropositionTypeCode()
PropositionDefinitionContractThere 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 PropositionDefinitionContractValid values are C = compound, P = parameterized, S = simple
public List<PropositionParameter> getParameters()
PropositionDefinitionContractCompound Propositions will have an empty parameter list.
getParameters in interface PropositionDefinitionContractPropositionParameterpublic String getCompoundOpCode()
PropositionDefinitionContract
getCompoundOpCode in interface PropositionDefinitionContractpublic List<PropositionDefinition> getCompoundComponents()
PropositionDefinitionContract
getCompoundComponents in interface PropositionDefinitionContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versioned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||