GPKGDataColumnConstraints

Objective-C

@interface GPKGDataColumnConstraints : NSObject <NSMutableCopying>

Swift

class GPKGDataColumnConstraints : NSObject, NSMutableCopying

Contains data to specify restrictions on basic data type column values

  • Case sensitive name of constraint

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *constraintName;

    Swift

    var constraintName: String! { get set }
  • Lowercase type name of constraint: range | enum | glob

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *constraintType;

    Swift

    var constraintType: String! { get set }
  • Specified case sensitive value for enum or glob or NULL for range constraint_type

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *value;

    Swift

    var value: String! { get set }
  • min

    Minimum value for ‘range’ or NULL for ‘enum’ or ‘glob’ constraint_type

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *min;

    Swift

    var min: NSDecimalNumber! { get set }
  • 0 (false) if min value is exclusive, or 1 (true) if min value is inclusive

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *minIsInclusive;

    Swift

    var minIsInclusive: NSNumber! { get set }
  • max

    Maximum value for ‘range’ or NULL for ‘enum’ or ‘glob’ constraint_type

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDecimalNumber *max;

    Swift

    var max: NSDecimalNumber! { get set }
  • 0 (false) if max value is exclusive, or 1 (true) if max value is inclusive

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *maxIsInclusive;

    Swift

    var maxIsInclusive: NSNumber! { get set }
  • For ranges and globs, describes the constraint; for enums, describes the enum value.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *theDescription;

    Swift

    var theDescription: String! { get set }
  • Get the data column constraint type

    Declaration

    Objective-C

    - (enum GPKGDataColumnConstraintType)dataColumnConstraintType;

    Swift

    func dataColumnConstraintType() -> GPKGDataColumnConstraintType

    Return Value

    data column constraint type

  • Set the data column constraint type

    Declaration

    Objective-C

    - (void)setDataColumnConstraintType:
        (enum GPKGDataColumnConstraintType)constraintType;

    Swift

    func setDataColumnConstraintType(_ constraintType: GPKGDataColumnConstraintType)

    Parameters

    constraintType

    data column constraint type

  • Set the min

    Declaration

    Objective-C

    - (void)setMinValue:(double)min;

    Swift

    func setMinValue(_ min: Double)

    Parameters

    min

    min

  • Set the min is inclusive value

    Declaration

    Objective-C

    - (void)setMinIsInclusiveValue:(BOOL)minIsInclusive;

    Swift

    func setMinIsInclusiveValue(_ minIsInclusive: Bool)

    Parameters

    minIsInclusive

    min is inclusive value

  • Set the max

    Declaration

    Objective-C

    - (void)setMaxValue:(double)max;

    Swift

    func setMaxValue(_ max: Double)

    Parameters

    max

    max

  • Set the max is inclusive value

    Declaration

    Objective-C

    - (void)setMaxIsInclusiveValue:(BOOL)maxIsInclusive;

    Swift

    func setMaxIsInclusiveValue(_ maxIsInclusive: Bool)

    Parameters

    maxIsInclusive

    max is inclusive value