01: package com.jidesoft.grouper;
02:
03: /**
04: * Default implenmentation of <code>ObjectGrouper</code>.
05: * Its getGroupValue simply returns the value directly.
06: */
07: public class DefaultObjectGrouper extends AbstractObjectGrouper {
08: private String _name;
09:
10: public DefaultObjectGrouper() {
11: this ("");
12: }
13:
14: public DefaultObjectGrouper(String name) {
15: _name = name;
16: }
17:
18: public Object getValue(Object value) {
19: return value;
20: }
21:
22: public Class<?> getType() {
23: return Object.class;
24: }
25:
26: public String getName() {
27: return _name;
28: }
29:
30: public void setName(String name) {
31: _name = name;
32: }
33: }
|