Class MandatoryElementConstraintProcessor<C extends Constraint>

java.lang.Object
org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor<C>
Type Parameters:
C - constraint type
All Implemented Interfaces:
ConstraintProcessor<Object,C>
Direct Known Subclasses:
BasePrerequisiteConstraintProcessor, CaseConstraintProcessor, DataTypeConstraintProcessor, LengthConstraintProcessor, RangeConstraintProcessor, SimpleConstraintProcessor, ValidCharactersConstraintProcessor

public abstract class MandatoryElementConstraintProcessor<C extends Constraint> extends Object implements ConstraintProcessor<Object,C>
This abstract class can be extended by constraint processor classes that must be processed on every validation.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • dataDictionaryService

      protected DataDictionaryService dataDictionaryService
    • dateTimeService

      protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
  • Constructor Details

    • MandatoryElementConstraintProcessor

      public MandatoryElementConstraintProcessor()
  • Method Details

    • isOptional

      public boolean isOptional()
      Description copied from interface: ConstraintProcessor
      returns true if the processing of this constraint is something that can be opted out of by some pieces of code. The only example of this in the version under development (1.1) is the existence constraint.
      Specified by:
      isOptional in interface ConstraintProcessor<Object,C extends Constraint>
      Returns:
      true if this processor can be turned off by some pieces of code, false otherwise
      See Also:
    • getDataDictionaryService

      public DataDictionaryService getDataDictionaryService()
      Returns:
      the dataDictionaryService
    • setDataDictionaryService

      public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
      Parameters:
      dataDictionaryService - the dataDictionaryService to set
    • getDateTimeService

      public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
      Returns:
      the dateTimeService
    • setDateTimeService

      public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
      Parameters:
      dateTimeService - the dateTimeService to set