ERAutoIndex.Configuration Class Reference

Collaboration diagram for ERAutoIndex.Configuration:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void clear ()
ConfigurationEntry entryForKey (String key)
void setEntryForKey (ConfigurationEntry entry, String key)

Protected Member Functions

ConfigurationEntry configureEntity (String entityName, NSArray keys)
void createAttributes (NSDictionary indexDef)
void initFromDictionary (NSDictionary indexDef)

Private Member Functions

ConfigurationEntry configureKeyPath (ConfigurationEntry config, String keyPath, EOEntity source)

Private Attributes

final NSMutableDictionary
< String, ConfigurationEntry
configuration = new NSMutableDictionary<String, ConfigurationEntry>()


Detailed Description

This class encapsulates the index configuration logic and configures this Index from the indexModel file associated with this ERIndex instance. One instance of Configuration is created during the ERAutoIndex constructor.

The Configuration class contains a private instance of a configuration dictionary


Member Function Documentation

void clear (  ) 

ConfigurationEntry configureEntity ( String  entityName,
NSArray  keys 
) [protected]

Parameters:
entityName entity to be indexed
keys attributes (keys or keypaths) to be indexed

ConfigurationEntry configureKeyPath ( ConfigurationEntry  config,
String  keyPath,
EOEntity  source 
) [private]

void createAttributes ( NSDictionary  indexDef  )  [protected]

Creates the lucene index attributes from the properties dictionary contained in the indexModel defintion. Each property is a key or keypath.

Parameters:
indexDef 

ConfigurationEntry entryForKey ( String  key  ) 

void initFromDictionary ( NSDictionary  indexDef  )  [protected]

void setEntryForKey ( ConfigurationEntry  entry,
String  key 
)


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:20 2012 for Project Wonder by  doxygen 1.5.8