Inherits from NSObject
Declared in TKEntityPropertyGroup.h

Overview

This class represents a group of property models defined by TKEntityProperty.

Properties

hidden

Determines if the property should be visible in the data form.

@property (nonatomic) BOOL hidden

Declared In

TKEntityPropertyGroup.h

name

The name of the group.

@property (nonatomic, copy) NSString *name

Declared In

TKEntityPropertyGroup.h

owner

The TKDataFormEntity to which the property belongs (read-only).

@property (nonatomic, weak) TKEntity *owner

Declared In

TKEntityPropertyGroup.h

properties

An array of TKEntityProperty objects containing all the properties.

@property (nonatomic, strong, readonly) NSArray *properties

Return Value

An array of TKEntityProperty objects containing all the properties.

Declared In

TKEntityPropertyGroup.h

Instance Methods

addProperty:

Adds a property in the group.

- (void)addProperty:(TKEntityProperty *)property

Parameters

property

The property to add.

Declared In

TKEntityPropertyGroup.h

initWithName:properties:

Instantiates a TKEntityPropertyGroup object with a name and properties list.

- (instancetype)initWithName:(NSString *)name properties:(NSArray *)properties

Parameters

name

The name of the group.

properties

A list with properties.

Declared In

TKEntityPropertyGroup.h

initWithName:properties:orderByPropertyIndex:

Instantiates a TKEntityPropertyGroup object with a name and properties list.

- (instancetype)initWithName:(NSString *)name properties:(NSArray *)properties orderByPropertyIndex:(BOOL)orderByPropertyIndex

Parameters

name

The name of the group.

properties

A list with properties.

orderByPropertyIndex

Determines whether to order propertie by their index property. The default action is to order them by using the order in properties collection.

Declared In

TKEntityPropertyGroup.h

insertProperty:atIndex:

Inserts a property at the specified index.

- (void)insertProperty:(TKEntityProperty *)property atIndex:(NSUInteger)index

Parameters

property

The property instance.

index

The index where the group should be inserted.

Declared In

TKEntityPropertyGroup.h

objectAtIndexedSubscript:

Returns the property at the specified index.

- (TKEntityProperty *)objectAtIndexedSubscript:(NSUInteger)index

Parameters

index

The property index.

Return Value

TKEntityProperty.

Declared In

TKEntityPropertyGroup.h

objectForKeyedSubscript:

The TKEntityProperty with the specified name.

- (TKEntityProperty *)objectForKeyedSubscript:(NSString *)propertyName

Parameters

propertyName

The name of the property that has to be returned.

Return Value

TKEntityProperty.

Declared In

TKEntityPropertyGroup.h

propertyAtIndex:

Returns the property at the specified index.

- (TKEntityProperty *)propertyAtIndex:(NSUInteger)index

Parameters

index

The property index.

Return Value

TKEntityProperty.

Declared In

TKEntityPropertyGroup.h

propertyWithName:

The TKEntityProperty with the specified name.

- (TKEntityProperty *)propertyWithName:(NSString *)name

Parameters

name

of the property that has to be returned.

Return Value

TKEntityProperty.

Declared In

TKEntityPropertyGroup.h

removeAllProperties

Removes all properties.

- (void)removeAllProperties

Declared In

TKEntityPropertyGroup.h

removeProperty:

Removes the specified property.

- (void)removeProperty:(TKEntityProperty *)property

Parameters

property

The property to remove.

Declared In

TKEntityPropertyGroup.h

removePropertyAtIndex:

Removes the property at the specified index.

- (void)removePropertyAtIndex:(NSUInteger)index

Parameters

index

The index of the property to remove.

Declared In

TKEntityPropertyGroup.h