Documentation Language: Swift

Method

getClassifier(_:)

Retrieves a classifier by its name.

func getClassifier(_ name: String) -> (any EClassifier)?

Parameters

name

The name of the classifier to find.

Return Value

The matching classifier, or nil if not found.

Discussion

Searches only the classifiers directly contained in this package, not in subpackages.

Example

if let employeeClass = package.getClassifier("Employee") as? EClass {
    print("Found class with \(employeeClass.allAttributes.count) attributes")
}