Project Wonder 5.0.0.8794

er.grouping
Class DRReportModel

java.lang.Object
  extended by er.grouping.DRReportModel

public class DRReportModel
extends Object


Field Summary
protected  NSArray _attributeList
           
protected  int _attributeListDepth
           
protected  NSArray _criteriaList
           
protected  NSMutableDictionary _flatAttributeDepthDict
           
protected  NSMutableArray _flatAttributeList
           
protected  NSMutableArray _flatAttributeListTotal
           
protected  NSMutableDictionary _flatAttributeListTotalDict
           
protected  NSDictionary _groupDict
           
protected  NSArray _groups
           
protected  NSMutableArray _hList
           
protected  NSArray _orderings
           
protected  NSArray _rawRecords
           
protected  NSArray _records
           
protected  NSMutableDictionary _registeredRecordGroups
           
protected  NSMutableArray _vList
           
protected  NSMutableArray _zList
           
static String ATTRIBUTE_DEF_KEY
           
static String DRReportModelRebuildNotification
           
static String DRReportModelUpdateNotification
           
static String GROUP_DEF_KEY
           
 
Constructor Summary
DRReportModel()
           
 
Method Summary
 void addToHList(DRGroup drg)
           
 void addToVList(DRGroup drg)
           
 void addToZList(DRGroup drg)
           
 NSArray attributeList()
           
static NSArray attributeList(NSArray attList)
           
 int attributeListDepth()
           
static NSArray attributeListString(NSArray attList)
           
static boolean boolForString(String s)
           
 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()
           
static NSArray masterCriteriaForKey(String akey)
           
 DRMasterCriteria masterCriteriaForKeyPath(String keypath)
           
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)
           
 void moveUpDimension(DRGroup vGroup, boolean up, String dim)
           
 NSArray orderings()
           
static String pListStringAttributeListMasterCriteriaList(NSArray attList, NSArray mcList)
           
static NSArray possibleValues(NSDictionary smcdict)
           
 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 NSDictionary stringForAttribute(DRAttribute att)
           
static String stringForBool(boolean b)
           
static NSArray subMasterCriteriaList(NSArray smcList)
           
 void synchModel()
           
 void synchModel(NSNotification notification)
           
 String toString()
           
 NSArray vList()
           
static DRReportModel withRawRecordsCriteriaListAttributeList(NSArray rawr, NSArray aCritArray, NSArray aAttribList)
           
static boolean writeStringToDiskPathAtomically(String string, String path, boolean flag)
           
 NSArray zList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRReportModelUpdateNotification

public static final String DRReportModelUpdateNotification
See Also:
Constant Field Values

DRReportModelRebuildNotification

public static final String DRReportModelRebuildNotification
See Also:
Constant Field Values

GROUP_DEF_KEY

public static final String GROUP_DEF_KEY
See Also:
Constant Field Values

ATTRIBUTE_DEF_KEY

public static final String ATTRIBUTE_DEF_KEY
See Also:
Constant Field Values

_vList

protected NSMutableArray _vList

_hList

protected NSMutableArray _hList

_zList

protected NSMutableArray _zList

_records

protected NSArray _records

_groups

protected NSArray _groups

_groupDict

protected NSDictionary _groupDict

_rawRecords

protected NSArray _rawRecords

_attributeList

protected NSArray _attributeList

_criteriaList

protected NSArray _criteriaList

_registeredRecordGroups

protected NSMutableDictionary _registeredRecordGroups

_flatAttributeDepthDict

protected NSMutableDictionary _flatAttributeDepthDict

_flatAttributeList

protected NSMutableArray _flatAttributeList

_flatAttributeListTotal

protected NSMutableArray _flatAttributeListTotal

_flatAttributeListTotalDict

protected NSMutableDictionary _flatAttributeListTotalDict

_attributeListDepth

protected int _attributeListDepth

_orderings

protected NSArray _orderings
Constructor Detail

DRReportModel

public DRReportModel()
Method Detail

resetDefaults

public void resetDefaults()

orderings

public NSArray orderings()

setOrderings

public void setOrderings(NSArray v)

buildOrderings

public void buildOrderings()

masterCriteriaForKey

public static NSArray masterCriteriaForKey(String akey)

writeStringToDiskPathAtomically

public static boolean writeStringToDiskPathAtomically(String string,
                                                      String path,
                                                      boolean flag)

stringContentsOfFile

public static String stringContentsOfFile(String path)

boolForString

public static boolean boolForString(String s)

stringForBool

public static String stringForBool(boolean b)

possibleValues

public static NSArray possibleValues(NSDictionary smcdict)

subMasterCriteriaList

public static NSArray subMasterCriteriaList(NSArray smcList)

masterCriteriaList

public static NSArray masterCriteriaList(NSArray mcList)

attributeList

public static NSArray attributeList(NSArray attList)

modelDictWithPListString

public static NSDictionary modelDictWithPListString(String plistString)

modelFromPlistString

public static NSDictionary modelFromPlistString(String plistString)

masterSubCriteriaListString

public static NSArray masterSubCriteriaListString(NSArray smcList)

masterCriteriaListString

public static NSArray masterCriteriaListString(NSArray mcList)

stringForAttribute

public static NSDictionary stringForAttribute(DRAttribute att)

attributeListString

public static NSArray attributeListString(NSArray attList)

pListStringAttributeListMasterCriteriaList

public static String pListStringAttributeListMasterCriteriaList(NSArray attList,
                                                                NSArray mcList)

withRawRecordsCriteriaListAttributeList

public static DRReportModel withRawRecordsCriteriaListAttributeList(NSArray rawr,
                                                                    NSArray aCritArray,
                                                                    NSArray aAttribList)

buildGrandTotal

public void buildGrandTotal()

initWithRawRecords

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

synchModel

public void synchModel()

synchModel

public void synchModel(NSNotification notification)

groupAllRecordGroups

public void groupAllRecordGroups()

recordsForRawRecords

public NSArray recordsForRawRecords(NSArray rawr)

attributeListDepth

public int attributeListDepth()

flatAttributeList

public NSArray flatAttributeList()

flatListForAttribute

public void flatListForAttribute(DRAttribute att)

flatListForAttributeList

public void flatListForAttributeList()

flatListForAttributeListTotals

public void flatListForAttributeListTotals()

flatAttributeDepthDict

public NSDictionary flatAttributeDepthDict()

flatAttributeListTotalDict

public NSDictionary flatAttributeListTotalDict()

flatAttributeListTotal

public NSArray flatAttributeListTotal()

groupsWithCriteriaArray

public NSDictionary groupsWithCriteriaArray(NSArray aCritArray)

spanForVListIndexAsCellsShowHeadingShowTotals

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

dimensionForName

public NSArray dimensionForName(String dim)

moveUpDimension

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

zList

public NSArray zList()

hList

public NSArray hList()

vList

public NSArray vList()

addToVList

public void addToVList(DRGroup drg)

addToHList

public void addToHList(DRGroup drg)

addToZList

public void addToZList(DRGroup drg)

records

public NSArray records()

groups

public NSArray groups()

groupForMasterCriteria

public DRGroup groupForMasterCriteria(DRMasterCriteria mc)

masterCriteriaForKeyPath

public DRMasterCriteria masterCriteriaForKeyPath(String keypath)

rawRecords

public NSArray rawRecords()

criteriaList

public NSArray criteriaList()

setCriteriaList

public void setCriteriaList(NSArray arr)

attributeList

public NSArray attributeList()

setAttributeList

public void setAttributeList(NSArray arr)

toString

public String toString()
Overrides:
toString in class Object

coordinateKey

public String coordinateKey(NSDictionary coordDict)

registerRecordGroupWithCoordinates

public void registerRecordGroupWithCoordinates(DRRecordGroup recGrp,
                                               NSDictionary coordDict)

makeRecordGroupsStaleTotal

public void makeRecordGroupsStaleTotal()

recordGroupForCoordinates

public DRRecordGroup recordGroupForCoordinates(NSDictionary coordDict)

Last updated: Thu, Jan 8, 2009 • 12:32 PM EST

Copyright © 2002 – 2007 Project Wonder.