org.kuali.rice.krms.impl.repository
Class PropositionBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krms.impl.repository.PropositionBo
All Implemented Interfaces:
groovy.lang.GroovyObject, Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, PropositionDefinitionContract

public class PropositionBo
extends PersistableBusinessObjectBase
implements PropositionDefinitionContract, groovy.lang.GroovyObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
PropositionBo()
           
 
Method Summary
static PropositionBo from(PropositionDefinition im)
           
 List<PropositionBo> 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.
 groovy.lang.MetaClass getMetaClass()
           
 List<PropositionParameterBo> getParameters()
          This is the parameter list of the proposition.
 Object getProperty(String property)
           
 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.
 Object invokeMethod(String method, Object arguments)
           
 void setCompoundComponents(List<PropositionBo> value)
           
 void setCompoundOpCode(String value)
           
 void setDescription(String value)
           
 void setId(String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setParameters(List<PropositionParameterBo> value)
           
 void setProperty(String property, Object value)
           
 void setPropositionTypeCode(String value)
           
 void setRuleId(String value)
           
 void setTypeId(String value)
           
static PropositionDefinition to(PropositionBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

PropositionBo

public PropositionBo()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String value)

getDescription

public String getDescription()
Description copied from interface: PropositionDefinitionContract
This is the description text for the KRMS proposition

Specified by:
getDescription in interface PropositionDefinitionContract
Returns:
description for KRMS type.

setDescription

public void setDescription(String value)

getRuleId

public String getRuleId()
Description copied from interface: PropositionDefinitionContract
This returns the ID of the rule this proposition belongs to. May be null if this proposition has not yet been persisted.

Specified by:
getRuleId in interface PropositionDefinitionContract
Returns:
the ID of the Rule this proposition belongs to.

setRuleId

public void setRuleId(String value)

getTypeId

public String getTypeId()
Description copied from interface: PropositionDefinitionContract
This is the id of Proposition KrmsType of the proposition. It provides some context to what type of object of the KRMS type.

Specified by:
getTypeId in interface PropositionDefinitionContract
Returns:
the id of the KRMS type.

setTypeId

public void setTypeId(String value)

getPropositionTypeCode

public String getPropositionTypeCode()
Description copied from interface: 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

Specified by:
getPropositionTypeCode in interface PropositionDefinitionContract
Returns:
the proposition type code of the proposition

Valid values are C = compound, P = parameterized, S = simple


setPropositionTypeCode

public void setPropositionTypeCode(String value)

getParameters

public List<PropositionParameterBo> getParameters()
Description copied from interface: PropositionDefinitionContract
This is the parameter list of the proposition. Parameters are listed in Reverse Polish Notation. Parameters may be constants, terms, or functions.

Compound Propositions will have an empty parameter list.

Specified by:
getParameters in interface PropositionDefinitionContract
Returns:
the Parameters related to the proposition
See Also:
PropositionParameter

setParameters

public void setParameters(List<PropositionParameterBo> value)

getCompoundOpCode

public String getCompoundOpCode()
Description copied from interface: PropositionDefinitionContract
This method returns the op code to be used when evaluating compound propositions.

Specified by:
getCompoundOpCode in interface PropositionDefinitionContract
Returns:
the compound op code. valid values are A = and, O = or

setCompoundOpCode

public void setCompoundOpCode(String value)

getCompoundComponents

public List<PropositionBo> getCompoundComponents()
Description copied from interface: PropositionDefinitionContract
This method returns the propositions which are contained in a compound proposition.

Specified by:
getCompoundComponents in interface PropositionDefinitionContract
Returns:
an ordered list of the Propositions which make up the compound proposition.

setCompoundComponents

public void setCompoundComponents(List<PropositionBo> value)

to

public static PropositionDefinition to(PropositionBo bo)

from

public static PropositionBo from(PropositionDefinition im)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.