MBITemplatingClass
@interface MBITemplatingClass : NSObject
Class that represents a specific class of documents when used within Templating API.
-
Undocumented
Declaration
Objective-C
MB_INITSwift
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
processorGroupsprocessor 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
processorGroupsprocessor 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
templatingClassifierClassifier which will tell whether currently processed document belongs to this class.
View on GitHub
MBITemplatingClass Class Reference