Diffusion Apple API  5.9.24
Unified Client Library for iOS, OS X and tvOS
 All Classes Functions Variables Properties Pages
Properties | Instance Methods | List of all members
PTDiffusionRecordMetadata Class Reference

Introduction

Record metadata describes a data item that can represent a collection of fields.

A record metadata object is immutable.

Default multiplicity is defined by the defaltMultiplicity class method on PTDiffusionMultiplicity.

See Also
PTDiffusionRecordContentSchema
Since
5.6
Inheritance diagram for PTDiffusionRecordMetadata:
PTDiffusionMetadata

Properties

NSArray< __kindof
PTDiffusionFieldMetadata * > * 
fieldMetadata
 

Instance Methods

(instancetype) - initWithName:fieldMetadata:
 
(instancetype) - initWithName:multiplicity:fieldMetadata:
 
(BOOL) - isEqualToRecordMetadata:
 

Method Documentation

- (instancetype) initWithName: (NSString *)  name
fieldMetadata: (NSArray< __kindof PTDiffusionFieldMetadata * > *)  fieldMetadata 

Returns a record metadata object initialized with the given name, default multiplicity and given field metadata array.

Parameters
nameThe name to use. It is used when looking up records that have been transformed using the receiver.
fieldMetadataThe field metadata defining what fields are expected as well as what order they should appear in. This array may not be empty.
Exceptions
NSInvalidArgumentExceptionIf any of the given arguments are nil or the field metadata array is empty.
Since
5.6
- (instancetype) initWithName: (NSString *)  name
multiplicity: (PTDiffusionMultiplicity *)  multiplicity
fieldMetadata: (NSArray< __kindof PTDiffusionFieldMetadata * > *)  fieldMetadata 

Returns a record metadata object initialized with the given name, given multiplicity and given field metadata array.

Parameters
nameThe name to use. It is used when looking up records that have been transformed using the receiver.
multiplicityThe multiplicity to use. It governs how many records can be transformed using the receiver from the enclosing record content.
fieldMetadataThe field metadata defining what fields are expected as well as what order they should appear in. This array may not be empty.
Exceptions
NSInvalidArgumentExceptionIf any of the given arguments are nil or the field metadata array is empty.
Since
5.6
- (BOOL) isEqualToRecordMetadata: (nullable PTDiffusionRecordMetadata *)  recordMetadata

Compares the receiver to the given record metadata.

Parameters
recordMetadataThe record metadata object with which to compare the receiver.
Returns
YES if the record metadata is equal to the receiver, otherwise NO.
Since
5.6

Property Documentation

- (NSArray<__kindof PTDiffusionFieldMetadata *>*) fieldMetadata
readnonatomiccopy

The field metadata used to transform records using the receiver. This array may not be empty.

Since
5.6