SCSCategory Class Reference

Inherits from NSObject
Declared in SCSCategory.h

Overview

A SCSCategory represents an individual data category within a data category group. Categories form a tree hierarchy, where an individual category has one parent category (with the exception of a root-level category, which does not have a parent), and it may have multiple child categories.

Refer to SCSCategoryGroup for a representation of a data category group.

  name

Unique name for this category.

@property (nonatomic, copy, readonly) NSString *name

Declared In

SCSCategory.h

  label

Label, or display name, for this category.

@property (nonatomic, copy, readonly) NSString *label

Declared In

SCSCategory.h

  url

API URL for this category.

@property (nonatomic, copy, readonly) NSString *url

Declared In

SCSCategory.h

  childCategories

Array of immediate child categories below this one. If this category is a leaf category, this array will be empty.

@property (nonatomic, strong, readonly) NSArray<SCSCategory*> *childCategories

Declared In

SCSCategory.h

  parentCategory

Reference to this category’s immediate parent. For root-level categories, this value is nil.

@property (nonatomic, weak, readonly, nullable) SCSCategory *parentCategory

Declared In

SCSCategory.h

  categoryGroup

The category group that this category resides within.

@property (nonatomic, weak, readonly, nullable) SCSCategoryGroup *categoryGroup

Declared In

SCSCategory.h

  manager

The knowledge manager this category belongs to.

@property (nonatomic, weak, readonly) SCSKnowledgeManager *manager

Declared In

SCSCategory.h

– categoryWithName:

Returns a category at or below this category that matches the specified name.

- (nullable SCSCategory *)categoryWithName:(NSString *)name

Parameters

name

Category name.

Return Value

SCSCategory instance matching the specified category name, or nil if no child category is found.

See Also

  • [SCSCategoryGroup categoryWithName:]

Declared In

SCSCategory.h