sensitivity.io for iOS & macOS  1.1.4
ThreatLocation.h
1 //
2 // ThreatLocation.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
16 @interface ThreatLocation : NSObject
17 
18 - (instancetype _Null_unspecified) init NS_UNAVAILABLE;
19 + (instancetype _Null_unspecified) new NS_UNAVAILABLE;
20 - (instancetype _Null_unspecified) copy NS_UNAVAILABLE;
29 - (instancetype _Nullable) initWithError:(NSError * _Nullable * _Nullable)error NS_DESIGNATED_INITIALIZER NS_SWIFT_NAME(init());
30 
31 // MARK: - setters
32 
40 - (BOOL) setFileName:(NSString* _Nonnull)fileName withError:(NSError * _Nullable * _Nullable)error;
48 - (BOOL) setArchiveMember:(NSString* _Nonnull)archiveMember withError:(NSError * _Nullable * _Nullable)error;
56 - (BOOL) setOffset:(NSNumber* _Nonnull)offset withError:(NSError * _Nullable * _Nullable)error;
64 - (BOOL) setLineNumber:(NSInteger)lineNumber withError:(NSError * _Nullable * _Nullable)error;
72 - (BOOL) setSurroundingText:(NSString* _Nonnull)surroundingText withError:(NSError * _Nullable * _Nullable)error;
80 - (BOOL) setInMetadata:(BOOL)inMetadata withError:(NSError * _Nullable * _Nullable)error;
81 
82 // MARK: - getters
83 
90 - (NSString* _Nullable) fileNameWithError:(NSError * _Nullable * _Nullable)error;
97 - (NSString* _Nullable) archiveMemberWithError:(NSError * _Nullable * _Nullable)error;
104 - (NSNumber* _Nullable) offsetWithError:(NSError * _Nullable * _Nullable)error;
112 - (BOOL) lineNumber:(NSInteger* _Nonnull)lineNumber withError:(NSError * _Nullable * _Nullable)error;
119 - (NSString* _Nullable) surroundingTextWithError:(NSError * _Nullable * _Nullable)error;
120 
127 - (BOOL) inMetadata:(BOOL* _Nonnull)inMetadata withError:(NSError * _Nullable * _Nullable)error;
128 
129 // MARK: - description
130 
136 - (NSString* _Nonnull) description;
137 
138 @end
NSString *_Nonnull description()
Definition: ThreatLocation.h:16