| Declared in | GBStoreProviding.h |
Defines the requirements for store providers.
Store providers are objects handling the storage of in-memory representations of parsed objects.
- registerClass:
Registers the given class to the providers data.
required method
- registerCategory:
Registers the given category to the providers data.
required method
- registerProtocol:
Registers the given protocol to the providers data.
required method
- classWithName:
Returns the class instance that matches the given name.
required method
- categoryWithName:
Returns the category instance that matches the given name.
required method
- protocolWithName:
Returns the protocol instance that matches the given name.
required method
classes
The list of all registered classes as instances of GBClassData .
required method
categories
The list of all registered categories and extensions as instances of GBCategoryData .
required method
protocols
The list of all registered protocols as instances of GBProtocolData .
required method
- classesSortedByName
Returns all registered classes sorted by their name.
required method
- categoriesSortedByName
Returns all registered categories sorted by their name.
required method
- protocolsSortedByName
Returns all registered protocols sorted by their name.
required method
Returns all registered categories sorted by their name.
- (NSArray *)categoriesSortedByNameReturns all registered categories sorted by their name.
GBStoreProviding.hReturns the category instance that matches the given name.
- (GBCategoryData *)categoryWithName:(NSString *)name Returns category instance or nil if no match is found.
Returns the category instance that matches the given name.
If no registered category matches the given name, nil is returned.
GBStoreProviding.hReturns the class instance that matches the given name.
- (GBClassData *)classWithName:(NSString *)name Returns class instance or nil if no match is found.
Returns the class instance that matches the given name.
If no registered class matches the given name, nil is returned.
GBStoreProviding.hReturns all registered classes sorted by their name.
- (NSArray *)classesSortedByNameReturns all registered classes sorted by their name.
GBStoreProviding.hReturns the protocol instance that matches the given name.
- (GBProtocolData *)protocolWithName:(NSString *)name Returns protocol instance or nil if no match is found.
Returns the protocol instance that matches the given name.
If no registered protocol matches the given name, nil is returned.
GBStoreProviding.hReturns all registered protocols sorted by their name.
- (NSArray *)protocolsSortedByNameReturns all registered protocols sorted by their name.
GBStoreProviding.hRegisters the given category to the providers data.
- (void)registerCategory:(GBCategoryData *)categoryRegisters the given category to the providers data.
If provider doesn't yet have the given category instance registered, the object is added to categories list. If the same object is already registered, nothing happens.
Note: If another instance of the category with the same name/class name is registered, an exception is thrown.
GBStoreProviding.hRegisters the given class to the providers data.
- (void)registerClass:(GBClassData *)classRegisters the given class to the providers data.
If provider doesn't yet have the given class instance registered, the object is added to classes list. If the same object is already registered, nothing happens.
Note: If another instance of the class with the same name is registered, an exception is thrown.
GBStoreProviding.hRegisters the given protocol to the providers data.
- (void)registerProtocol:(GBProtocolData *)protocolRegisters the given protocol to the providers data.
If provider doesn't yet have the given protocol instance registered, the object is added to protocols list. If the same object is already registered, nothing happens.
Note: If another instance of the protocol with the same name name is registered, an exception is thrown.
GBStoreProviding.h The list of all registered categories and extensions as instances of GBCategoryData .
@property (readonly) NSSet *categories The list of all registered categories and extensions as instances of GBCategoryData .
GBStoreProviding.h The list of all registered classes as instances of GBClassData .
@property (readonly) NSSet *classes The list of all registered classes as instances of GBClassData .
GBStoreProviding.h The list of all registered protocols as instances of GBProtocolData .
@property (readonly) NSSet *protocols The list of all registered protocols as instances of GBProtocolData .
GBStoreProviding.h