Interface TemplatingClassifier

All Superinterfaces:
android.os.Parcelable

public interface TemplatingClassifier extends android.os.Parcelable
Classifier that should return true if document belongs to given TemplatingClass.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    classify(TemplatingClass currentTemplatingClass)
    This method is invoked while evaluating specific TemplatingClass.

    Methods inherited from interface android.os.Parcelable

    describeContents, writeToParcel
  • Method Details

    • classify

      @WorkerThread boolean classify(@NonNull TemplatingClass currentTemplatingClass)
      This method is invoked while evaluating specific TemplatingClass. First, all processors within classification processor groups are executed. Then this method is invoked to determine whether non-classification processor groups should also be executed. If this method returns false, then non-classification processor groups will not be executed and evaluation will continue to next TemplatingClass within TemplatingRecognizer.
      Parameters:
      currentTemplatingClass - TemplatingClass that is currently being evaluated
      Returns:
      true if document belongs to this TemplatingClass, false otherwise