DRReportModel Class Reference

Collaboration diagram for DRReportModel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addToHList (DRGroup drg)
void addToVList (DRGroup drg)
void addToZList (DRGroup drg)
NSArray attributeList ()
int attributeListDepth ()
void buildGrandTotal ()
void buildOrderings ()
String coordinateKey (NSDictionary coordDict)
NSArray criteriaList ()
NSArray dimensionForName (String dim)
NSDictionary flatAttributeDepthDict ()
NSArray flatAttributeList ()
NSArray flatAttributeListTotal ()
NSDictionary flatAttributeListTotalDict ()
void flatListForAttribute (DRAttribute att)
void flatListForAttributeList ()
void flatListForAttributeListTotals ()
void groupAllRecordGroups ()
DRGroup groupForMasterCriteria (DRMasterCriteria mc)
NSArray groups ()
NSDictionary groupsWithCriteriaArray (NSArray aCritArray)
NSArray hList ()
DRReportModel initWithRawRecords (NSArray rawr, NSArray aCritArray, NSArray aAttribList)
void makeRecordGroupsStaleTotal ()
DRMasterCriteria masterCriteriaForKeyPath (String keypath)
void moveUpDimension (DRGroup vGroup, boolean up, String dim)
NSArray orderings ()
NSArray rawRecords ()
DRRecordGroup recordGroupForCoordinates (NSDictionary coordDict)
NSArray records ()
NSArray recordsForRawRecords (NSArray rawr)
void registerRecordGroupWithCoordinates (DRRecordGroup recGrp, NSDictionary coordDict)
void resetDefaults ()
void setAttributeList (NSArray arr)
void setCriteriaList (NSArray arr)
void setOrderings (NSArray v)
int spanForVListIndexAsCellsShowHeadingShowTotals (boolean forVlist, int indx, boolean asCells, boolean showHeading, boolean showTotals)
void synchModel (NSNotification notification)
void synchModel ()
String toString ()
NSArray vList ()
NSArray zList ()

Static Public Member Functions

static NSArray attributeList (NSArray attList)
static NSArray attributeListString (NSArray attList)
static boolean boolForString (String s)
static NSArray masterCriteriaForKey (String akey)
static NSArray masterCriteriaList (NSArray mcList)
static NSArray masterCriteriaListString (NSArray mcList)
static NSArray masterSubCriteriaListString (NSArray smcList)
static NSDictionary modelDictWithPListString (String plistString)
static NSDictionary modelFromPlistString (String plistString)
static String pListStringAttributeListMasterCriteriaList (NSArray attList, NSArray mcList)
static NSArray possibleValues (NSDictionary smcdict)
static String stringContentsOfFile (String path)
static NSDictionary stringForAttribute (DRAttribute att)
static String stringForBool (boolean b)
static NSArray subMasterCriteriaList (NSArray smcList)
static DRReportModel withRawRecordsCriteriaListAttributeList (NSArray rawr, NSArray aCritArray, NSArray aAttribList)
static boolean writeStringToDiskPathAtomically (String string, String path, boolean flag)

Static Public Attributes

static final String ATTRIBUTE_DEF_KEY = "AttributeDef"
static final String DRReportModelRebuildNotification = "DRReportModelRebuild"
static final String DRReportModelUpdateNotification = "DRReportModelUpdate"
static final String GROUP_DEF_KEY = "GroupDef"

Protected Attributes

NSArray _attributeList
int _attributeListDepth
NSArray _criteriaList
NSMutableDictionary _flatAttributeDepthDict
NSMutableArray _flatAttributeList
NSMutableArray _flatAttributeListTotal
NSMutableDictionary _flatAttributeListTotalDict
NSDictionary _groupDict
NSArray _groups
NSMutableArray _hList
NSArray _orderings
NSArray _rawRecords
NSArray _records
NSMutableDictionary _registeredRecordGroups
NSMutableArray _vList
NSMutableArray _zList

Private Member Functions

void computeRecordValuesForRecords (NSArray recs)
void getFlatAttributeDepthDictTotals ()

Static Private Attributes

static Logger log = Logger.getLogger(DRReportModel.class)


Member Function Documentation

void addToHList ( DRGroup  drg  ) 

void addToVList ( DRGroup  drg  ) 

void addToZList ( DRGroup  drg  ) 

NSArray attributeList (  ) 

static NSArray attributeList ( NSArray  attList  )  [static]

int attributeListDepth (  ) 

static NSArray attributeListString ( NSArray  attList  )  [static]

static boolean boolForString ( String  s  )  [static]

void buildGrandTotal (  ) 

void buildOrderings (  ) 

void computeRecordValuesForRecords ( NSArray  recs  )  [private]

String coordinateKey ( NSDictionary  coordDict  ) 

NSArray criteriaList (  ) 

NSArray dimensionForName ( String  dim  ) 

NSDictionary flatAttributeDepthDict (  ) 

NSArray flatAttributeList (  ) 

NSArray flatAttributeListTotal (  ) 

NSDictionary flatAttributeListTotalDict (  ) 

void flatListForAttribute ( DRAttribute  att  ) 

void flatListForAttributeList (  ) 

void flatListForAttributeListTotals (  ) 

void getFlatAttributeDepthDictTotals (  )  [private]

void groupAllRecordGroups (  ) 

DRGroup groupForMasterCriteria ( DRMasterCriteria  mc  ) 

NSArray groups (  ) 

NSDictionary groupsWithCriteriaArray ( NSArray  aCritArray  ) 

NSArray hList (  ) 

DRReportModel initWithRawRecords ( NSArray  rawr,
NSArray  aCritArray,
NSArray  aAttribList 
)

void makeRecordGroupsStaleTotal (  ) 

static NSArray masterCriteriaForKey ( String  akey  )  [static]

DRMasterCriteria masterCriteriaForKeyPath ( String  keypath  ) 

static NSArray masterCriteriaList ( NSArray  mcList  )  [static]

static NSArray masterCriteriaListString ( NSArray  mcList  )  [static]

static NSArray masterSubCriteriaListString ( NSArray  smcList  )  [static]

static NSDictionary modelDictWithPListString ( String  plistString  )  [static]

static NSDictionary modelFromPlistString ( String  plistString  )  [static]

void moveUpDimension ( DRGroup  vGroup,
boolean  up,
String  dim 
)

NSArray orderings (  ) 

static String pListStringAttributeListMasterCriteriaList ( NSArray  attList,
NSArray  mcList 
) [static]

static NSArray possibleValues ( NSDictionary  smcdict  )  [static]

NSArray rawRecords (  ) 

DRRecordGroup recordGroupForCoordinates ( NSDictionary  coordDict  ) 

NSArray records (  ) 

NSArray recordsForRawRecords ( NSArray  rawr  ) 

void registerRecordGroupWithCoordinates ( DRRecordGroup  recGrp,
NSDictionary  coordDict 
)

void resetDefaults (  ) 

void setAttributeList ( NSArray  arr  ) 

void setCriteriaList ( NSArray  arr  ) 

void setOrderings ( NSArray  v  ) 

int spanForVListIndexAsCellsShowHeadingShowTotals ( boolean  forVlist,
int  indx,
boolean  asCells,
boolean  showHeading,
boolean  showTotals 
)

static String stringContentsOfFile ( String  path  )  [static]

static NSDictionary stringForAttribute ( DRAttribute  att  )  [static]

static String stringForBool ( boolean  b  )  [static]

static NSArray subMasterCriteriaList ( NSArray  smcList  )  [static]

void synchModel ( NSNotification  notification  ) 

void synchModel (  ) 

String toString (  ) 

NSArray vList (  ) 

static DRReportModel withRawRecordsCriteriaListAttributeList ( NSArray  rawr,
NSArray  aCritArray,
NSArray  aAttribList 
) [static]

static boolean writeStringToDiskPathAtomically ( String  string,
String  path,
boolean  flag 
) [static]

NSArray zList (  ) 


Member Data Documentation

NSArray _attributeList [protected]

int _attributeListDepth [protected]

NSArray _criteriaList [protected]

NSDictionary _groupDict [protected]

NSArray _groups [protected]

NSMutableArray _hList [protected]

NSArray _orderings [protected]

NSArray _rawRecords [protected]

NSArray _records [protected]

NSMutableArray _vList [protected]

NSMutableArray _zList [protected]

final String ATTRIBUTE_DEF_KEY = "AttributeDef" [static]

final String DRReportModelRebuildNotification = "DRReportModelRebuild" [static]

final String DRReportModelUpdateNotification = "DRReportModelUpdate" [static]

final String GROUP_DEF_KEY = "GroupDef" [static]

Logger log = Logger.getLogger(DRReportModel.class) [static, private]


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

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