Project Wonder 5.0.0.8794

er.grouping
Class DRCriteria

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

public class DRCriteria
extends Object

The "value" for the DRMasterCriteria. For example, given a category key, it would contain "Drama", "Sci-Fi" and "Comedy". It also assigns a score() to objects to support header sorting. Some DRCriteria have very high scores and so always end up on the bottom; for example: "OTHER" and "TOTAL".
For numeric DRCriteria, the value is a really huge number and 1 + a really huge number (MAXNUMBER), respectively. For alpha DRCriteria. the value is a long word filled with z's (MAXSTRING) and the same with one z concatenated, respectively.


Field Summary
static String _defaultCalendarFormatString
           
protected  boolean _isOther
           
protected  boolean _isTotal
           
protected  String _label
           
protected  DRMasterCriteria _masterCriteria
           
protected  Object _score
           
protected  NSDictionary _valueDict
           
static double MAXNUMBER
           
static String MAXSTRING
           
 
Constructor Summary
DRCriteria()
           
 
Method Summary
static DRCriteria asOtherWithMasterCriteria(DRMasterCriteria mc)
           
static DRCriteria asTotalWithMasterCriteria(DRMasterCriteria mc)
           
 String calendarFormatForDates()
           
 String compoundSeparator()
           
static Format formatterForFormat(String calFormat)
           
 boolean isOther()
           
 boolean isTotal()
           
 String keyDesc()
           
 String label()
           
 String labelForDict(NSDictionary dict)
           
 DRMasterCriteria masterCriteria()
           
 String rangeSeparator()
           
 Object score()
           
static void setFormatterForFormat(Format formatter, String calFormat)
           
 void setIsOther(boolean v)
           
 void setIsTotal(boolean v)
           
 void setLabel(String lbl)
           
 void setMasterCriteria(DRMasterCriteria val)
           
 void setValueDict(NSDictionary val)
           
 String toString()
           
 NSDictionary valueDict()
           
static DRCriteria withMasterCriteriaValueDict(DRMasterCriteria mc, NSDictionary valD)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_valueDict

protected NSDictionary _valueDict

_masterCriteria

protected DRMasterCriteria _masterCriteria

_label

protected String _label

MAXNUMBER

public static final double MAXNUMBER
See Also:
Constant Field Values

MAXSTRING

public static final String MAXSTRING
See Also:
Constant Field Values

_defaultCalendarFormatString

public static String _defaultCalendarFormatString

_isTotal

protected boolean _isTotal

_isOther

protected boolean _isOther

_score

protected Object _score
Constructor Detail

DRCriteria

public DRCriteria()
Method Detail

isTotal

public boolean isTotal()

setIsTotal

public void setIsTotal(boolean v)

isOther

public boolean isOther()

setIsOther

public void setIsOther(boolean v)

asOtherWithMasterCriteria

public static DRCriteria asOtherWithMasterCriteria(DRMasterCriteria mc)

asTotalWithMasterCriteria

public static DRCriteria asTotalWithMasterCriteria(DRMasterCriteria mc)

withMasterCriteriaValueDict

public static DRCriteria withMasterCriteriaValueDict(DRMasterCriteria mc,
                                                     NSDictionary valD)

setMasterCriteria

public void setMasterCriteria(DRMasterCriteria val)

masterCriteria

public DRMasterCriteria masterCriteria()

setValueDict

public void setValueDict(NSDictionary val)

valueDict

public NSDictionary valueDict()

toString

public String toString()
Overrides:
toString in class Object

keyDesc

public String keyDesc()

calendarFormatForDates

public String calendarFormatForDates()

rangeSeparator

public String rangeSeparator()

compoundSeparator

public String compoundSeparator()

formatterForFormat

public static Format formatterForFormat(String calFormat)

setFormatterForFormat

public static void setFormatterForFormat(Format formatter,
                                         String calFormat)

labelForDict

public String labelForDict(NSDictionary dict)

label

public String label()

setLabel

public void setLabel(String lbl)

score

public Object score()

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

Copyright © 2002 – 2007 Project Wonder.