Class RuleDefinition
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.rule.RuleDefinition
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelObjectBasic,ModelObjectComplete,RuleDefinitionContract
public final class RuleDefinition
extends 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:
-
RuleDefinitionContractorg.kuali.rice.krms.framework.engine.Rule- Serialized Form
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis builder is used to construct instances of KRMS Repository Rule.static classstatic classDefines some internal constants used on this class.static classA private class which exposes constants which define the XML element names to use when this object is marshalled to XML. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a list of Actions associated with the Rule.Returns the internal representation of the set of attributes associated with the Action.This is the description of the RulegetId()getName()This is the name of the RuleThis is the namespace of the RuleThis method returns the ID of the Proposition associated with the rule.This method returns the Proposition associated with the rule.This is the KrmsType of the RulebooleanisActive()Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getName
Description copied from interface:RuleDefinitionContractThis is the name of the Rulename - the name of the Rule
- Specified by:
getNamein interfaceRuleDefinitionContract- Returns:
- the name of the Rule
-
getDescription
Description copied from interface:RuleDefinitionContractThis is the description of the Ruledescription - the description of the Rule
- Specified by:
getDescriptionin interfaceRuleDefinitionContract- Returns:
- the description of the Rule
-
getNamespace
Description copied from interface:RuleDefinitionContractThis is the namespace of the RuleThe namespace of the Rule
- Specified by:
getNamespacein interfaceRuleDefinitionContract- Returns:
- the namespace of the Rule
-
getTypeId
Description copied from interface:RuleDefinitionContractThis is the KrmsType of the Rule- Specified by:
getTypeIdin interfaceRuleDefinitionContract- Returns:
- id for KRMS type related of the Rule
-
getPropId
Description copied from interface:RuleDefinitionContractThis method returns the ID of the Proposition associated with the rule.Each Rule has exactly one Proposition associated with it.
- Specified by:
getPropIdin interfaceRuleDefinitionContract- Returns:
- the id of the Proposition associated with the Rule
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getProposition
Description copied from interface:RuleDefinitionContractThis method returns the Proposition associated with the rule.Each Rule has exactly one Proposition associated with it.
- Specified by:
getPropositionin interfaceRuleDefinitionContract- Returns:
- an immutable representation of the Proposition associated with the Rule
-
getActions
Description copied from interface:RuleDefinitionContractThis method returns a list of Actions associated with the Rule.A Rule may have zero or more Actions associated with it.
- Specified by:
getActionsin interfaceRuleDefinitionContract- Returns:
- An ordered list of Actions associated with a Rule.
-
getAttributes
Returns the internal representation of the set of attributes associated with the Action. The attributes are represented as name/value pairs.- Specified by:
getAttributesin interfaceRuleDefinitionContract- Returns:
- internal representation of the set of ActionAttribute objects.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-