PROJAuthorityProjections
Objective-C
@interface PROJAuthorityProjections : NSObject
Swift
class PROJAuthorityProjections : NSObject
Collection of projections for a single coordinate authority
-
Initialize
Declaration
Objective-C
- (instancetype)initWithAuthority:(NSString *)authority;Swift
init!(authority: String!)Parameters
authoritycoordinate authority
Return Value
new authority projections
-
Get the authority
Declaration
Objective-C
- (NSString *)authority;Swift
func authority() -> String!Return Value
authority
-
Get the projection for the code
Declaration
Objective-C
- (PROJProjection *)projectionForNumberCode:(NSNumber *)code;Swift
func projection(forNumberCode code: NSNumber!) -> PROJProjection!Parameters
codecoordinate code
Return Value
projection
-
Get the projection for the code
Declaration
Objective-C
- (PROJProjection *)projectionForCode:(NSString *)code;Swift
func projection(forCode code: String!) -> PROJProjection!Parameters
codecoordinate code
Return Value
projection
-
Check if the collection contains the projection
Declaration
Objective-C
- (BOOL)hasProjection:(PROJProjection *)projection;Swift
func hasProjection(_ projection: PROJProjection!) -> BoolParameters
projectionprojection
Return Value
true if has the projection
-
Check if the collection contains a projection for the code
Declaration
Objective-C
- (BOOL)hasProjectionNumberCode:(NSNumber *)code;Swift
func hasProjectionNumberCode(_ code: NSNumber!) -> BoolParameters
codecoordinate code
Return Value
true if has the projection
-
Check if the collection contains a projection for the code
Declaration
Objective-C
- (BOOL)hasProjectionCode:(NSString *)code;Swift
func hasProjectionCode(_ code: String!) -> BoolParameters
codecoordinate code
Return Value
true if has the projection
-
Add the projection to the authority
Declaration
Objective-C
- (void)addProjection:(PROJProjection *)projection;Swift
func addProjection(_ projection: PROJProjection!)Parameters
projectionprojection
-
Clear all projections for the authority
Declaration
Objective-C
- (void)clear;Swift
func clear() -
Remove the projection with the code
Declaration
Objective-C
- (void)removeNumberCode:(NSNumber *)code;Swift
func removeNumberCode(_ code: NSNumber!)Parameters
codecoordinate code
-
Remove the projection with the code
Declaration
Objective-C
- (void)removeCode:(NSString *)code;Swift
func removeCode(_ code: String!)Parameters
codecoordinate code
-
Remove the projection
Declaration
Objective-C
- (void)removeProjection:(PROJProjection *)projection;Swift
func removeProjection(_ projection: PROJProjection!)Parameters
projectionprojection
-
Get the count of authority projections
Declaration
Objective-C
- (int)count;Swift
func count() -> Int32Return Value
count
-
Is the collection empty?
Declaration
Objective-C
- (int)isEmpty;Swift
func isEmpty() -> Int32Return Value
true if empty
-
Get the projection codes
Declaration
Objective-C
- (NSArray<NSString *> *)codes;Swift
func codes() -> [String]!Return Value
projection codes
-
Get the projections
Declaration
Objective-C
- (NSArray<PROJProjection *> *)projections;Swift
func projections() -> [PROJProjection]!Return Value
projections
View on GitHub
PROJAuthorityProjections Class Reference