CRSIdentifier

Objective-C

@interface CRSIdentifier : NSObject

Swift

class CRSIdentifier : NSObject

Identifier (Authority)

  • Authority Name

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *name;

    Swift

    var name: String! { get set }
  • Authority Unique Identifier

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *uniqueIdentifier;

    Swift

    var uniqueIdentifier: String! { get set }
  • Version

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *version;

    Swift

    var version: String! { get set }
  • Authority Citation

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *citation;

    Swift

    var citation: String! { get set }
  • uri

    URI

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *uri;

    Swift

    var uri: String! { get set }
  • Create

    Declaration

    Objective-C

    + (CRSIdentifier *)create;

    Swift

    class func create() -> CRSIdentifier!

    Return Value

    new instance

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new instance

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithName:(NSString *)name
             andUniqueIdentifier:(NSString *)uniqueIdentifier;

    Swift

    init!(name: String!, andUniqueIdentifier uniqueIdentifier: String!)

    Parameters

    name

    authority name

    uniqueIdentifier

    authority unique identifier

    Return Value

    new instance

  • Get the name and unique identifier separated by a colon

    Declaration

    Objective-C

    - (NSString *)nameAndUniqueIdentifier;

    Swift

    func nameAndUniqueIdentifier() -> String!

    Return Value

    name and unique identifier

  • Get the name and unique identifier separated by the delimiter

    Declaration

    Objective-C

    - (NSString *)nameAndUniqueIdentifierWithDelimiter:(NSString *)delimiter;

    Swift

    func nameAndUniqueIdentifier(withDelimiter delimiter: String!) -> String!

    Parameters

    delimiter

    delimiter

    Return Value

    name and unique identifier

  • Has a version

    Declaration

    Objective-C

    - (BOOL)hasVersion;

    Swift

    func hasVersion() -> Bool

    Return Value

    true if has version

  • Has an authority citation

    Declaration

    Objective-C

    - (BOOL)hasCitation;

    Swift

    func hasCitation() -> Bool

    Return Value

    true if has authority citation

  • Has an id uri

    Declaration

    Objective-C

    - (BOOL)hasUri;

    Swift

    func hasUri() -> Bool

    Return Value

    true if has id uri