GPKGConstraintTypes
Objective-C
@interface GPKGConstraintTypes : NSObject
/**
* Get the name of the constraint type
*
* @param type constraint type
*
* @return constrainttype name
*/
+(NSString *) name: (enum GPKGConstraintType) type;
/**
* Get the constraint type from the constraint type name
*
* @param name constraint type name
*
* @return constraint type
*/
+(enum GPKGConstraintType) fromName: (NSString *) name;
/**
* Get a matching table constraint type from the value
*
* @param value
* table constraint name value
* @return constraint type or null
*/
+(enum GPKGConstraintType) tableTypeOfValue: (NSString *) value;
/**
* Get a matching column constraint type from the value
*
* @param value
* column constraint name value
* @return constraint type or null
*/
+(enum GPKGConstraintType) columnTypeOfValue: (NSString *) value;
/**
* Get a matching constraint type from the value
*
* @param value
* constraint name value
* @return constraint type or null
*/
+(enum GPKGConstraintType) typeOfValue: (NSString *) value;
@end
Swift
class GPKGConstraintTypes : NSObject
Undocumented
-
Get the name of the constraint type
Declaration
Objective-C
+ (NSString *)name:(enum GPKGConstraintType)type;
Swift
class func name(_ type: GPKGConstraintType) -> String!
Parameters
type
constraint type
Return Value
constrainttype name
-
Get the constraint type from the constraint type name
Declaration
Objective-C
+ (enum GPKGConstraintType)fromName:(NSString *)name;
Swift
class func fromName(_ name: String!) -> GPKGConstraintType
Parameters
name
constraint type name
Return Value
constraint type
-
Get a matching table constraint type from the value
Declaration
Objective-C
+ (enum GPKGConstraintType)tableTypeOfValue:(NSString *)value;
Swift
class func tableType(ofValue value: String!) -> GPKGConstraintType
Parameters
value
table constraint name value
Return Value
constraint type or null
-
Get a matching column constraint type from the value
Declaration
Objective-C
+ (enum GPKGConstraintType)columnTypeOfValue:(NSString *)value;
Swift
class func columnType(ofValue value: String!) -> GPKGConstraintType
Parameters
value
column constraint name value
Return Value
constraint type or null
-
Get a matching constraint type from the value
Declaration
Objective-C
+ (enum GPKGConstraintType)typeOfValue:(NSString *)value;
Swift
class func type(ofValue value: String!) -> GPKGConstraintType
Parameters
value
constraint name value
Return Value
constraint type or null