Class ContextDefinition
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.context.ContextDefinition
- 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,ContextDefinitionContract
public final class ContextDefinition
extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
implements ContextDefinitionContract
An immutable representation of a context definition. A context definition
defines information about a context which can be loaded into the rules
engine for evaluation.
A context definition includes a list of agendas which are valid within the
context. Typically, during rule engine execution, one or more of these
agendas is selected for execution based on a given set of selection criteria.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder which can be used to construct ContextDefinition instances.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 TypeMethodDescriptionReturns the list of agendasAgendaDefinitionContractcontained in the context definition.Returns a map of name/value pairs representing the attributes associated with this context.Returns the description of the context definition.getId()getName()Returns the name of the context definition.Returns the namespace of the context definition.Returns the type id for the context definition.booleanisActive()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 interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
getNamespace
Description copied from interface:ContextDefinitionContractReturns the namespace of the context definition. The combination of namespace and name represent a unique business key for the context definition. The namespace should never be null or blank.- Specified by:
getNamespacein interfaceContextDefinitionContract- Returns:
- the namespace of the context definition, should never be null or blank
-
getName
Description copied from interface:ContextDefinitionContractReturns the name of the context definition. The combination of name and namespaceCode represent a unique business key for the context definition. The name should never be null or blank.- Specified by:
getNamein interfaceContextDefinitionContract- Returns:
- the name of the context definition, should never be null or blank
-
getTypeId
Description copied from interface:ContextDefinitionContractReturns the type id for the context definition. If the type id is null, that means this context definition is of the default type.- Specified by:
getTypeIdin interfaceContextDefinitionContract- Returns:
- the type id for the context definition, or null if this context definition is of the default type
-
getDescription
Description copied from interface:ContextDefinitionContractReturns the description of the context definition.- Specified by:
getDescriptionin interfaceContextDefinitionContract- Returns:
- the description of the context definition. May be null.
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getAgendas
Description copied from interface:ContextDefinitionContractReturns the list of agendasAgendaDefinitionContractcontained in the context definition. This method should never return null. An empty list is returned if no agendas are associated with this context.- Specified by:
getAgendasin interfaceContextDefinitionContract- Returns:
- the list of agendas contained in this context definition
-
getAttributes
Description copied from interface:ContextDefinitionContractReturns a map of name/value pairs representing the attributes associated with this context.This method should never return null. An empty map is returned if no attributes are associated with the context.
- Specified by:
getAttributesin interfaceContextDefinitionContract- Returns:
- a list of Map of name/value String pairs.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-