PWSchemaField Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCoding NSCopying |
| Declared in | PWSchemaField.h |
Overview
PWSchemaField objects define the fields that are specified for a PWSchema object. A PWSchemaField object has a few base parameters and can be extended to support additional key:value pairs. Additional key:value pairs are available in the customKeys property. You can modify PWSchemaField values in the MaaS portal. PWSchemaField conforms to the NSCoding and NSCopying protocol.
Other Methods
field
A string describing the field key.
@property (nonatomic, readonly) NSString *fieldDeclared In
PWSchemaField.h
label
A string describing the field label.
@property (nonatomic, readonly) NSString *labelDeclared In
PWSchemaField.h
type
A string describing the field type.
@property (nonatomic, readonly) NSString *typeDeclared In
PWSchemaField.h
required
A boolean value which indicates whether or note this field is required.
@property (nonatomic, readonly) BOOL requiredDeclared In
PWSchemaField.h
fieldDescription
A string describing the field.
@property (nonatomic, readonly) NSString *fieldDescriptionDeclared In
PWSchemaField.h
customKeys
Additional keys are based on the type and can be modified in the MaaS portal.
@property (nonatomic, readonly) NSDictionary *customKeysDeclared In
PWSchemaField.h
Convenience
+ unpack:
Convenience method to instantiate a PWSchemaField object from a properly formatted NSDictionary object.
+ (instancetype)unpack:(NSDictionary *)dictionaryParameters
dictionary |
The dictionary from which to instantiate the |
|---|
Declared In
PWSchemaField.h
– dictionary
Returns an NSDictionary representation of the current container.
- (NSDictionary *)dictionaryDeclared In
PWSchemaField.h