Class RuleDefinition

java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.rule.RuleDefinition
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete, RuleDefinitionContract

public final class RuleDefinition extends org.kuali.rice.core.api.mo.AbstractDataTransferObject implements RuleDefinitionContract
Concrete model object implementation of KRMS Repository Rule immutable. Instances of Rule can be (un)marshalled to and from XML.
See Also:
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • getName

      public String getName()
      Description copied from interface: RuleDefinitionContract
      This is the name of the Rule

      name - the name of the Rule

      Specified by:
      getName in interface RuleDefinitionContract
      Returns:
      the name of the Rule
    • getDescription

      public String getDescription()
      Description copied from interface: RuleDefinitionContract
      This is the description of the Rule

      description - the description of the Rule

      Specified by:
      getDescription in interface RuleDefinitionContract
      Returns:
      the description of the Rule
    • getNamespace

      public String getNamespace()
      Description copied from interface: RuleDefinitionContract
      This is the namespace of the Rule

      The namespace of the Rule

      Specified by:
      getNamespace in interface RuleDefinitionContract
      Returns:
      the namespace of the Rule
    • getTypeId

      public String getTypeId()
      Description copied from interface: RuleDefinitionContract
      This is the KrmsType of the Rule
      Specified by:
      getTypeId in interface RuleDefinitionContract
      Returns:
      id for KRMS type related of the Rule
    • getPropId

      public String getPropId()
      Description copied from interface: RuleDefinitionContract
      This method returns the ID of the Proposition associated with the rule.

      Each Rule has exactly one Proposition associated with it.

      Specified by:
      getPropId in interface RuleDefinitionContract
      Returns:
      the id of the Proposition associated with the Rule
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • getProposition

      public PropositionDefinition getProposition()
      Description copied from interface: RuleDefinitionContract
      This method returns the Proposition associated with the rule.

      Each Rule has exactly one Proposition associated with it.

      Specified by:
      getProposition in interface RuleDefinitionContract
      Returns:
      an immutable representation of the Proposition associated with the Rule
    • getActions

      public List<ActionDefinition> getActions()
      Description copied from interface: RuleDefinitionContract
      This method returns a list of Actions associated with the Rule.

      A Rule may have zero or more Actions associated with it.

      Specified by:
      getActions in interface RuleDefinitionContract
      Returns:
      An ordered list of Actions associated with a Rule.
    • getAttributes

      public Map<String,String> getAttributes()
      Returns the internal representation of the set of attributes associated with the Action. The attributes are represented as name/value pairs.
      Specified by:
      getAttributes in interface RuleDefinitionContract
      Returns:
      internal representation of the set of ActionAttribute objects.
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned