GPKGDgiwgValidationErrors
Objective-C
@interface GPKGDgiwgValidationErrors : NSObject
Swift
class GPKGDgiwgValidationErrors : NSObject
DGIWG (Defence Geospatial Information Working Group) validation errors
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Initialize
Declaration
Objective-C
- (instancetype)initWithError:(GPKGDgiwgValidationError *)error;
Swift
init!(error: GPKGDgiwgValidationError!)
Parameters
error
validation error
-
Initialize
Declaration
Objective-C
- (instancetype)initWithErrors:(NSArray<GPKGDgiwgValidationError *> *)errors;
Swift
init!(errors: [GPKGDgiwgValidationError]!)
Parameters
errors
validation errors
-
Initialize
Declaration
Objective-C
- (instancetype)initWithValidationErrors:(GPKGDgiwgValidationErrors *)errors;
Swift
init!(validationErrors errors: GPKGDgiwgValidationErrors!)
Parameters
errors
validation errors
-
Add a validation error
Declaration
Objective-C
- (void)addError:(GPKGDgiwgValidationError *)error;
Swift
func addError(_ error: GPKGDgiwgValidationError!)
Parameters
error
validation error
-
Add validation errors
Declaration
Objective-C
- (void)addErrors:(NSArray<GPKGDgiwgValidationError *> *)errors;
Swift
func addErrors(_ errors: [GPKGDgiwgValidationError]!)
Parameters
errors
validation errors
-
Add validation errors
Declaration
Objective-C
- (void)addValidationErrors:(GPKGDgiwgValidationErrors *)errors;
Swift
func add(_ errors: GPKGDgiwgValidationErrors!)
Parameters
errors
validation errors
-
Check if valid
Declaration
Objective-C
- (BOOL)isValid;
Swift
func isValid() -> Bool
Return Value
true if valid
-
Has errors
Declaration
Objective-C
- (BOOL)hasErrors;
Swift
func hasErrors() -> Bool
Return Value
true if has errors
-
Get the number of errors
Declaration
Objective-C
- (int)numErrors;
Swift
func numErrors() -> Int32
Return Value
error count
-
Get the validation errors
Declaration
Objective-C
- (NSArray<GPKGDgiwgValidationError *> *)errors;
Swift
func errors() -> [GPKGDgiwgValidationError]!
Return Value
errors
-
Get the validation error at the index
Declaration
Objective-C
- (GPKGDgiwgValidationError *)errorAtIndex:(int)index;
Swift
func error(at index: Int32) -> GPKGDgiwgValidationError!
Parameters
index
error index
Return Value
error