GPKGContentsDataTypes

Objective-C

@interface GPKGContentsDataTypes : NSObject

/**
 *  Get the name of the contents data type
 *
 *  @param contentsDataType contents data type
 *
 *  @return contents data type name
 */
+(NSString *) name: (enum GPKGContentsDataType) contentsDataType;

/**
 *  Get the contents data type from the contents data type name
 *
 *  @param name contents data type name
 *
 *  @return contents data type
 */
+(enum GPKGContentsDataType) fromName: (NSString *) name;

/**
 * Determine if the type name is a registered data type
 *
 * @param name
 *            type name
 * @return true if a core contents data type
 */
+(BOOL) isType: (NSString *) name;

/**
 * Get the contents data type from a core type name
 *
 * @param name
 *            type name
 * @return contents data type if core, null if not
 */
+(enum GPKGContentsDataType) fromCoreName: (NSString *) name;

/**
 * Determine if the type name is a core contents data type
 *
 * @param name
 *            type name
 * @return true if a core contents data type
 */
+(BOOL) isCoreType: (NSString *) name;

/**
 * Set the type for the contents data type name
 *
 * @param name
 *            contents data type name
 * @param type
 *            contents data type
 */
+(void) setName: (NSString *) name asType: (enum GPKGContentsDataType) type;

/**
 * Determine if the contents data type name is the type
 *
 * @param name
 *            contents data type name
 * @param type
 *            comparison contents data type
 * @return true if matching core types
 */
+(BOOL) isName: (NSString *) name ofType: (enum GPKGContentsDataType) type;

/**
 * Determine if the contents data type name is the type
 *
 * @param name
 *            contents data type name
 * @param type
 *            comparison contents data type
 * @param matchUnknown
 *            true to match unknown data types
 * @return true if matching core types or matched unknown
 */
+(BOOL) isName: (NSString *) name ofType: (enum GPKGContentsDataType) type andMatchUnknown: (BOOL) matchUnknown;

/**
 * Determine if the contents data type name is a features type
 *
 * @param name
 *            contents data type name
 * @return true if a features type
 */
+(BOOL) isFeaturesType: (NSString *) name;

/**
 * Determine if the contents data type name is a features type
 *
 * @param name
 *            contents data type name
 * @param matchUnknown
 *            true to match unknown data types
 * @return true if a features type or matched unknown
 */
+(BOOL) isFeaturesType: (NSString *) name andMatchUnknown: (BOOL) matchUnknown;

/**
 * Determine if the contents data type name is a tiles type
 *
 * @param name
 *            contents data type name
 * @return true if a tiles type
 */
+(BOOL) isTilesType: (NSString *) name;

/**
 * Determine if the contents data type name is a tiles type
 *
 * @param name
 *            contents data type name
 * @param matchUnknown
 *            true to match unknown data types
 * @return true if a tiles type or matched unknown
 */
 +(BOOL) isTilesType: (NSString *) name andMatchUnknown: (BOOL) matchUnknown;

/**
 * Determine if the contents data type name is an attributes type
 *
 * @param name
 *            contents data type name
 * @return true if an attributes type
 */
+(BOOL) isAttributesType: (NSString *) name;

/**
 * Determine if the contents data type name is an attributes type
 *
 * @param name
 *            contents data type name
 * @param matchUnknown
 *            true to match unknown data types
 * @return true if an attributes type or matched unknown
 */
 +(BOOL) isAttributesType: (NSString *) name andMatchUnknown: (BOOL) matchUnknown;

@end

Swift

class GPKGContentsDataTypes : NSObject

Undocumented

  • Get the name of the contents data type

    Declaration

    Objective-C

    + (NSString *)name:(enum GPKGContentsDataType)contentsDataType;

    Swift

    class func name(_ contentsDataType: GPKGContentsDataType) -> String!

    Parameters

    contentsDataType

    contents data type

    Return Value

    contents data type name

  • Get the contents data type from the contents data type name

    Declaration

    Objective-C

    + (enum GPKGContentsDataType)fromName:(NSString *)name;

    Swift

    class func fromName(_ name: String!) -> GPKGContentsDataType

    Parameters

    name

    contents data type name

    Return Value

    contents data type

  • Determine if the type name is a registered data type

    Declaration

    Objective-C

    + (BOOL)isType:(NSString *)name;

    Swift

    class func isType(_ name: String!) -> Bool

    Parameters

    name

    type name

    Return Value

    true if a core contents data type

  • Get the contents data type from a core type name

    Declaration

    Objective-C

    + (enum GPKGContentsDataType)fromCoreName:(NSString *)name;

    Swift

    class func fromCoreName(_ name: String!) -> GPKGContentsDataType

    Parameters

    name

    type name

    Return Value

    contents data type if core, null if not

  • Determine if the type name is a core contents data type

    Declaration

    Objective-C

    + (BOOL)isCoreType:(NSString *)name;

    Swift

    class func isCoreType(_ name: String!) -> Bool

    Parameters

    name

    type name

    Return Value

    true if a core contents data type

  • Set the type for the contents data type name

    Declaration

    Objective-C

    + (void)setName:(NSString *)name asType:(enum GPKGContentsDataType)type;

    Swift

    class func setName(_ name: String!, as type: GPKGContentsDataType)

    Parameters

    name

    contents data type name

    type

    contents data type

  • Determine if the contents data type name is the type

    Declaration

    Objective-C

    + (BOOL)isName:(NSString *)name ofType:(enum GPKGContentsDataType)type;

    Swift

    class func isName(_ name: String!, of type: GPKGContentsDataType) -> Bool

    Parameters

    name

    contents data type name

    type

    comparison contents data type

    Return Value

    true if matching core types

  • Determine if the contents data type name is the type

    Declaration

    Objective-C

    + (BOOL)isName:(NSString *)name
                 ofType:(enum GPKGContentsDataType)type
        andMatchUnknown:(BOOL)matchUnknown;

    Swift

    class func isName(_ name: String!, of type: GPKGContentsDataType, andMatchUnknown matchUnknown: Bool) -> Bool

    Parameters

    name

    contents data type name

    type

    comparison contents data type

    matchUnknown

    true to match unknown data types

    Return Value

    true if matching core types or matched unknown

  • Determine if the contents data type name is a features type

    Declaration

    Objective-C

    + (BOOL)isFeaturesType:(NSString *)name;

    Swift

    class func isFeaturesType(_ name: String!) -> Bool

    Parameters

    name

    contents data type name

    Return Value

    true if a features type

  • Determine if the contents data type name is a features type

    Declaration

    Objective-C

    + (BOOL)isFeaturesType:(NSString *)name andMatchUnknown:(BOOL)matchUnknown;

    Swift

    class func isFeaturesType(_ name: String!, andMatchUnknown matchUnknown: Bool) -> Bool

    Parameters

    name

    contents data type name

    matchUnknown

    true to match unknown data types

    Return Value

    true if a features type or matched unknown

  • Determine if the contents data type name is a tiles type

    Declaration

    Objective-C

    + (BOOL)isTilesType:(NSString *)name;

    Swift

    class func isTilesType(_ name: String!) -> Bool

    Parameters

    name

    contents data type name

    Return Value

    true if a tiles type

  • Determine if the contents data type name is a tiles type

    Declaration

    Objective-C

    + (BOOL)isTilesType:(NSString *)name andMatchUnknown:(BOOL)matchUnknown;

    Swift

    class func isTilesType(_ name: String!, andMatchUnknown matchUnknown: Bool) -> Bool

    Parameters

    name

    contents data type name

    matchUnknown

    true to match unknown data types

    Return Value

    true if a tiles type or matched unknown

  • Determine if the contents data type name is an attributes type

    Declaration

    Objective-C

    + (BOOL)isAttributesType:(NSString *)name;

    Swift

    class func isAttributesType(_ name: String!) -> Bool

    Parameters

    name

    contents data type name

    Return Value

    true if an attributes type

  • Determine if the contents data type name is an attributes type

    Declaration

    Objective-C

    + (BOOL)isAttributesType:(NSString *)name andMatchUnknown:(BOOL)matchUnknown;

    Swift

    class func isAttributesType(_ name: String!, andMatchUnknown matchUnknown: Bool) -> Bool

    Parameters

    name

    contents data type name

    matchUnknown

    true to match unknown data types

    Return Value

    true if an attributes type or matched unknown