Protocol SPXPropertyCollection
@protocol SPXPropertyCollection
Represents a collection of properties and their values.
Returns the property value. If the name is not available, it returns an empty string.
- (NSString * _Nullable)getPropertyByName:(NSString * _Nonnull)name
name
- property name.
value of the property.
Returns the property value. If the name is not available, it returns the specified default value.
- (NSString * _Nullable)getPropertyByName:(NSString * _Nonnull)name
defaultValue:(NSString * _Nonnull)defaultValue
name
- property name.defaultValue
- default value which is returned if the property is not available in the collection.
value of the property.
Returns the property value. If the specified id is not available, it returns an empty string.
- (NSString * _Nullable)getPropertyById:(SPXPropertyId)propertyId
propertyId
- property id.
value of the property.
Returns the property value. If the specified id is not available, it returns the specified default value.
- (NSString * _Nullable)getPropertyById:(SPXPropertyId)propertyId
defaultValue:(NSString * _Nonnull)defaultValue
propertyId
- property id.defaultValue
- default value which is returned if the property is not available in the collection.
value of the property.
Sets the property value by name.
- (void)setPropertyTo:(NSString * _Nonnull)value byName:(NSString * _Nonnull)name
name
- property name.value
- value of the property.
Sets the property value by property id.
- (void)setPropertyTo:(NSString * _Nonnull)value byId:(SPXPropertyId)propertyId
propertyId
- property id.value
- value of the property.