Class FieldExaminer

java.lang.Object
ch.nolix.system.databaseobject.modelexaminer.DatabaseObjectExaminer
ch.nolix.system.objectdata.fieldexaminer.FieldExaminer
All Implemented Interfaces:
IDatabaseObjectExaminer, IFieldExaminer
Direct Known Subclasses:
MultiReferenceExaminer, MultiValueFieldTool, OptionalReferenceExaminer, OptionalValueFieldExaminer, ReferenceExaminer, ValueFieldExaminer

public class FieldExaminer extends DatabaseObjectExaminer implements IFieldExaminer
Author:
Silvan Wyss
  • Constructor Details

    • FieldExaminer

      public FieldExaminer()
  • Method Details

    • belongsToEntity

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

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

      public boolean canReferenceBackBaseReference(IField field, IBaseReference baseReference)
      Specified by:
      canReferenceBackBaseReference in interface IFieldExaminer
      Parameters:
      field -
      baseReference -
      Returns:
      true if the given field can reference back the given baseReference, false otherwise.
    • isForMultiContent

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

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

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

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