Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
String field metadata describes a data item that can have a textual value.
A string field metadata object is immutable.
Default multiplicity is defined by the defaltMultiplicity
class method on PTDiffusionMultiplicity.
Properties | |
NSString * | defaultValue |
Properties inherited from PTDiffusionFieldMetadata | |
Class< NSObject, NSCopying, NSSecureCoding > | valueClass |
Properties inherited from PTDiffusionMetadata | |
NSString * | name |
PTDiffusionMultiplicity * | multiplicity |
Instance Methods | |
(instancetype) | - initWithName:multiplicity: |
(instancetype) | - initWithName:defaultValue:multiplicity: |
(BOOL) | - isEqualToStringFieldMetadata: |
Instance Methods inherited from PTDiffusionFieldMetadata | |
(BOOL) | - isEqualToFieldMetadata: |
Instance Methods inherited from PTDiffusionMetadata | |
(BOOL) | - isEqualToMetadata: |
+ (NSString *) defaultDefaultValue |
The default value used if one is not explicitly specified on initialisation.
- (instancetype) initWithName: | (NSString *) | name | |
defaultValue: | (nullable 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 that required occurrences of the field should be initialized to. Specifying nil for this argument uses an empty string (as specified by the defaultDefaultValue class method). |
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 . |
- (instancetype) initWithName: | (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 . |
- (BOOL) isEqualToStringFieldMetadata: | (nullable PTDiffusionStringFieldMetadata *) | stringFieldMetadata |
Compares the receiver to the given string field metadata.
stringFieldMetadata | The string field metadata object with which to compare the receiver. |
YES
if the string field metadata is equal to the receiver, otherwise NO
.
|
readnonatomicassign |
The default value that required occurrences of the field should be initialized to.