MBITemplatingClass
@interface MBITemplatingClass : NSObject
Class that represents a specific class of documents when used within Templating API.
-
Undocumented
Declaration
Objective-C
MB_INIT
Swift
init()
-
Sets processor groups that will be executed before classification
Declaration
Objective-C
- (void)setClassificationProcessorGroups: (nonnull NSArray<__kindof MBIProcessorGroup *> *)processorGroups;
Swift
func setClassificationProcessorGroups(_ processorGroups: [MBIProcessorGroup])
Parameters
processorGroups
processor groups that will be executed before classification
-
Returns the currently set array of classification processor groups.
Declaration
Objective-C
- (nullable NSArray<__kindof MBIProcessorGroup *> *) getClassificationProcessorGroups;
Swift
func getClassificationProcessorGroups() -> [MBIProcessorGroup]?
Return Value
the currently set array of classification processor groups.
-
Sets processor groups that will be executed if MBITemplatingClassifier’s classify returns YES.
Declaration
Objective-C
- (void)setNonClassificationProcessorGroups: (nonnull NSArray<__kindof MBIProcessorGroup *> *)processorGroups;
Swift
func setNonClassificationProcessorGroups(_ processorGroups: [MBIProcessorGroup])
Parameters
processorGroups
processor groups that will be executed after classification, if classification is positive
-
Returns the currently set array of non-classification processor groups.
Declaration
Objective-C
- (nullable NSArray<__kindof MBIProcessorGroup *> *) getNonClassificationProcessorGroups;
Swift
func getNonClassificationProcessorGroups() -> [MBIProcessorGroup]?
Return Value
the currently set array of non-classification processor groups.
-
Sets the classifier which will tell whether currently processed document belongs to this class. If set to nil, existing classifier (if exists) will be cleared and non-classification processor groups will not be executed.
Declaration
Objective-C
- (void)setTemplatingClassifier: (nullable id<MBITemplatingClassifier>)templatingClassifier;
Swift
func setTemplatingClassifier(_ templatingClassifier: MBITemplatingClassifier?)
Parameters
templatingClassifier
Classifier which will tell whether currently processed document belongs to this class.