BDPValidatable

Objective-C

@protocol BDPValidatable <NSObject>

Swift

protocol BDPValidatable : NSObjectProtocol

Any object whose state can be validated for correctness.

Typically this will be implemented only by data-model classes.

  • @returns YES if the state of this object is valid, NO otherwise.

    Declaration

    Objective-C

    - (BOOL)valid;

    Swift

    func valid() -> Bool