PWSchema Class Reference
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 MaaS Portal. PWSchema
conforms to the NSCoding
and NSCopying
protocol.
Tasks
Other Methods
-
schemaID
A string that is used to identify the schema ID.
property -
name
A string that is used to identify the schema name.
property -
fields
An array of
propertyPWSchemaField
objects associated with the schema.PWSchemaField
objects have a base object definition that can -
attributes
A array of attributes associated with the schema. Attribute objects are of
propertyNSDictionary
type,@{@"key" : @"value"}
. -
tags
A array of tags associated with the schema. A tag is an
propertyNSString
object. -
creationDate
The creation date of the schema.
property -
lastUpdated
The last update date for the schema.
property
Convenience
-
+ unpack:
Convenience method to instantiate a
PWSchema
object from a properly formattedNSDictionary
object. -
– dictionary
Returns an
NSDictionary
representation of the current structure.
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. PWSchemaField
objects have a base object definition that can
@property (nonatomic, readonly) NSArray *fields
Declared In
PWSchema.h
lastUpdated
The last update date 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
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