public class DRCriteria extends Object
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DRCriteria() |
Modifier and Type | Method and Description |
---|---|
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) |
protected NSDictionary _valueDict
protected DRMasterCriteria _masterCriteria
protected String _label
public static final double MAXNUMBER
public static final String MAXSTRING
public static String _defaultCalendarFormatString
protected boolean _isTotal
protected boolean _isOther
protected Object _score
public boolean isTotal()
public void setIsTotal(boolean v)
public boolean isOther()
public void setIsOther(boolean v)
public static DRCriteria asOtherWithMasterCriteria(DRMasterCriteria mc)
public static DRCriteria asTotalWithMasterCriteria(DRMasterCriteria mc)
public static DRCriteria withMasterCriteriaValueDict(DRMasterCriteria mc, NSDictionary valD)
public void setMasterCriteria(DRMasterCriteria val)
public DRMasterCriteria masterCriteria()
public void setValueDict(NSDictionary val)
public NSDictionary valueDict()
public String keyDesc()
public String calendarFormatForDates()
public String rangeSeparator()
public String compoundSeparator()
public String labelForDict(NSDictionary dict)
public String label()
public void setLabel(String lbl)
public Object score()
Copyright © 2002 – 2024 Project Wonder.