Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in PWSchema.h

Overview

PWSchema objects are applied to PWStructure items and define what fields of data a particular PWStructure item can contain. You can modify PWSchema values in the MaaS portal. PWSchema conforms to the NSCoding and NSCopying protocol.

Tasks

Other Methods

Convenience

Properties

attributes

A array of attributes associated with the schema. Attribute objects are of NSDictionary type: @{@"key" : @"value"}.

@property (nonatomic, readonly) NSArray *attributes

Declared In

PWSchema.h

creationDate

The creation date of the schema.

@property (nonatomic, readonly) NSDate *creationDate

Declared In

PWSchema.h

fields

An array of PWSchemaField objects associated with the schema.

@property (nonatomic, readonly) NSArray *fields

Declared In

PWSchema.h

lastUpdated

The date of the last update for the schema.

@property (nonatomic, readonly) NSDate *lastUpdated

Declared In

PWSchema.h

name

A string that is used to identify the schema name.

@property (nonatomic, readonly) NSString *name

Declared In

PWSchema.h

schemaID

A string that is used to identify the Schema ID.

@property (nonatomic, readonly) NSString *schemaID

Declared In

PWSchema.h

tags

A array of tags associated with the schema. A tag is an NSString object.

@property (nonatomic, readonly) NSArray *tags

Declared In

PWSchema.h

Class Methods

unpack:

Convenience method to instantiate a PWSchema object from a properly formatted NSDictionary object.

+ (instancetype)unpack:(NSDictionary *)dictionary

Parameters

dictionary

The dictionary from which to instantiate the PWSchema object.

Declared In

PWSchema.h

Instance Methods

dictionary

Returns an NSDictionary representation of the current structure.

- (NSDictionary *)dictionary

Declared In

PWSchema.h