01: package com.jamonapi;
02:
03: /** key that allows for a monitor to be passed any number of keys used in the equivalent
04: * of a group by clause. Put in hashmap to identify a Monitor. Implementations will need
05: * to implement equals, and hashcode. MonKeys are the way Monitors are identified in the
06: * storing Map
07: */
08:
09: public interface MonKey extends RowData, MonKeyItem {
10: final String LABEL_HEADER = "Label";
11: final String UNITS_HEADER = "Units";
12:
13: /** return any value associated with the key.
14: * new MonKey(label, units). would return the value associated with label
15: * or units if: getValue("label"), or getValue("units");
16: */
17: public Object getValue(String primaryKey);
18:
19: /** Uses this value to look up an associated Range */
20: public String getRangeKey();
21: // public String getDetailLabel();
22:
23: }
|