|
||||||||||
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 FormNested 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 PropositionContract
public String getDescription()
PropositionContract
getDescription
in interface PropositionContract
public String getTypeId()
PropositionContract
getTypeId
in interface PropositionContract
public String getPropositionTypeCode()
PropositionContract
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 PropositionContract
Valid values are C = compound, P = parameterized, S = simple
public List<PropositionParameter> getParameters()
PropositionContract
Compound Propositions will have an empty parameter list.
getParameters
in interface PropositionContract
PropositionParameter
public String getCompoundOpCode()
PropositionContract
getCompoundOpCode
in interface PropositionContract
public List<Proposition> getCompoundComponents()
PropositionContract
getCompoundComponents
in interface PropositionContract
public int hashCode()
hashCode
in interface org.kuali.rice.core.api.mo.ModelObjectComplete
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface org.kuali.rice.core.api.mo.ModelObjectComplete
equals
in class Object
public String toString()
toString
in interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |