Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
Field metadata describes a data item that can have a value.
A field metadata object is immutable.
Default multiplicity is defined by the defaltMultiplicity
class method on PTDiffusionMultiplicity.
Properties | |
Class< NSObject, NSCopying, NSSecureCoding > | valueClass |
Properties inherited from PTDiffusionMetadata | |
NSString * | name |
PTDiffusionMultiplicity * | multiplicity |
Instance Methods | |
(BOOL) | - isEqualToFieldMetadata: |
Instance Methods inherited from PTDiffusionMetadata | |
(BOOL) | - isEqualToMetadata: |
+ (PTDiffusionStringFieldMetadata *) defaultMetadata |
Returns default field metadata, representing a string field with unbounded multiplicity.
- (BOOL) isEqualToFieldMetadata: | (nullable PTDiffusionFieldMetadata *) | fieldMetadata |
Compares the receiver to the given field metadata.
fieldMetadata | The field metadata object with which to compare the receiver. |
YES
if the field metadata is equal to the receiver, otherwise NO
.+ (PTDiffusionNumberFieldMetadata *) numberWithName: | (NSString *) | name |
Returns a number field metadata object initialized with the given name, default multiplicity and default scale.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
NSInvalidArgumentException | If the given name is nil . |
+ (PTDiffusionNumberFieldMetadata *) numberWithName: | (NSString *) | name | |
defaultValue: | (NSNumber *) | defaultValue | |
multiplicity: | (PTDiffusionMultiplicity *) | multiplicity | |
scale: | (NSUInteger) | scale | |
Returns a number field metadata object initialized with the given name, given default value, given scale and given multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
defaultValue | The default value to use for this field if one is not specified. |
multiplicity | The multiplicity to use. It governs how many fields can be transformed using the receiver from the enclosing record. |
scale | The scale to use. It governs how many digits lie to the right of the decimal point. A value of zero (0 ) constrains transformed fields to integer values. |
NSInvalidArgumentException | If either the given name, defaultValue or multiplicity is nil . |
+ (PTDiffusionNumberFieldMetadata *) numberWithName: | (NSString *) | name | |
multiplicity: | (PTDiffusionMultiplicity *) | multiplicity | |
Returns a number field metadata object initialized with the given name, default scale and given multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
multiplicity | The multiplicity to use. It governs how many fields can be transformed using the receiver from the enclosing record. |
NSInvalidArgumentException | If either the given name or multiplicity is nil . |
+ (PTDiffusionNumberFieldMetadata *) numberWithName: | (NSString *) | name | |
multiplicity: | (PTDiffusionMultiplicity *) | multiplicity | |
scale: | (NSUInteger) | scale | |
Returns a number field metadata object initialized with the given name, given scale and given multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
multiplicity | The multiplicity to use. It governs how many fields can be transformed using the receiver from the enclosing record. |
scale | The scale to use. It governs how many digits lie to the right of the decimal point. A value of zero (0 ) constrains transformed fields to integer values. |
NSInvalidArgumentException | If either the given name or multiplicity is nil . |
+ (PTDiffusionNumberFieldMetadata *) numberWithName: | (NSString *) | name | |
scale: | (NSUInteger) | scale | |
Returns a number field metadata object initialized with the given name, given scale and default multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
scale | The scale to use. It governs how many digits lie to the right of the decimal point. A value of zero (0 ) constrains transformed fields to integer values. |
NSInvalidArgumentException | If the given name is nil . |
+ (PTDiffusionStringFieldMetadata *) stringWithName: | (NSString *) | name |
Returns a string field metadata object initialized with the given name and default multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
NSInvalidArgumentException | If the given name is nil . |
+ (PTDiffusionStringFieldMetadata *) stringWithName: | (NSString *) | name | |
defaultValue: | (NSString *) | defaultValue | |
multiplicity: | (PTDiffusionMultiplicity *) | multiplicity | |
Returns a string field metadata object initialized with the given name, given default value and given multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
defaultValue | The default value to use for this field if one is not specified. |
multiplicity | The multiplicity to use. It governs how many fields can be transformed using the receiver from the enclosing record. |
NSInvalidArgumentException | If any given argument is nil . |
+ (PTDiffusionStringFieldMetadata *) stringWithName: | (NSString *) | name | |
multiplicity: | (PTDiffusionMultiplicity *) | multiplicity | |
Returns a string field metadata object initialized with the given name and multiplicity.
name | The name to use. It is used when looking up fields that have been transformed using the receiver. |
multiplicity | The multiplicity to use. It governs how many fields can be transformed using the receiver from the enclosing record. |
NSInvalidArgumentException | If either the given name or multiplicity is nil . |
|
readnonatomicassign |
The class of object produced when transforming field data using the receiver.