|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.repository.Proposition
public final class Proposition
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 |
Proposition.Builder
This builder is used to construct instances of KRMS Proposition. |
static class |
Proposition.Elements
A private class which exposes constants which define the XML element names to use when this object is marshalled to XML. |
static class |
Proposition.PropositionTypes
This enumeration identifies the valid Proposition type codes The PropositionType enumeration lists the appropriate types of propositions The valid types are: 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 |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List<Proposition> |
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 |
List<PropositionParameter> |
getParameters()
This is the parameter list of the proposition. |
String |
getPropId()
This is the ID for the KRMS 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 |
getTypeId()
This is the id of Proposition KrmsType of the proposition. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getPropId()
PropositionContract
getPropId in interface PropositionContractpublic String getDescription()
PropositionContract
getDescription in interface PropositionContractpublic String getTypeId()
PropositionContract
getTypeId in interface PropositionContractpublic String getPropositionTypeCode()
PropositionContractThere 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 PropositionContractValid values are C = compound, P = parameterized, S = simple
public List<PropositionParameter> getParameters()
PropositionContractCompound Propositions will have an empty parameter list.
getParameters in interface PropositionContractPropositionParameterpublic String getCompoundOpCode()
PropositionContract
getCompoundOpCode in interface PropositionContractpublic List<Proposition> getCompoundComponents()
PropositionContract
getCompoundComponents in interface PropositionContractpublic int hashCode()
hashCode in interface org.kuali.rice.core.api.mo.ModelObjectCompletehashCode in class Objectpublic boolean equals(Object obj)
equals in interface org.kuali.rice.core.api.mo.ModelObjectCompleteequals in class Objectpublic String toString()
toString in interface org.kuali.rice.core.api.mo.ModelObjectBasictoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||