Class AbstractFieldExaminer<F extends Field>

java.lang.Object
ch.nolix.system.database.databaseobjectexaminer.AbstractDatabaseObjectExaminer<F>
ch.nolix.system.objectdata.fieldexaminer.AbstractFieldExaminer<F>
Type Parameters:
F - the type of the Fields a AbstractFieldExaminer is for
All Implemented Interfaces:
IDatabaseObjectExaminer<F>, IFieldExaminer<F>
Direct Known Subclasses:
FieldExaminer, MultiReferenceExaminer, MultiValueFieldExaminer, OptionalReferenceExaminer, OptionalValueFieldExaminer, ReferenceExaminer, ValueFieldExaminer

public abstract class AbstractFieldExaminer<F extends Field> extends AbstractDatabaseObjectExaminer<F> implements IFieldExaminer<F>
Author:
Silvan Wyss
  • Constructor Details

    • AbstractFieldExaminer

      public AbstractFieldExaminer()
  • Method Details

    • belongsToEntity

      public boolean belongsToEntity(F field)
      Specified by:
      belongsToEntity in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field belongs to a IEntity, false otherwise
    • belongsToLoadedEntity

      public boolean belongsToLoadedEntity(F field)
      Specified by:
      belongsToLoadedEntity in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field belongs to a loaded IEntity, false otherwise
    • canReferenceBackBaseReference

      public boolean canReferenceBackBaseReference(F field, BaseReference baseReference)
      Specified by:
      canReferenceBackBaseReference in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      baseReference -
      Returns:
      true if the given field can reference back the given baseReference, false otherwise
    • isForMultiContent

      public boolean isForMultiContent(F field)
      Specified by:
      isForMultiContent in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field is for multi content, false otherwise
    • isForSingleContent

      public boolean isForSingleContent(F field)
      Specified by:
      isForSingleContent in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field is for single content, false otherwise
    • isMandatoryButEmpty

      public boolean isMandatoryButEmpty(F field)
      Specified by:
      isMandatoryButEmpty in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field is mandatory but empty, false otherwise
    • isSetForCaseWhenIsMandatoryAndNewOrEdited

      public boolean isSetForCaseWhenIsMandatoryAndNewOrEdited(F field)
      Specified by:
      isSetForCaseWhenIsMandatoryAndNewOrEdited in interface IFieldExaminer<F extends Field>
      Parameters:
      field -
      Returns:
      true if the given field is new or edited but set, false otherwise