|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Discriminable
A Discriminable object knows which properties in itself to
be discriminated.
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getDiscriminableProperties()
Returns a List of properties on which to discriminate on
this object. |
| Method Detail |
|---|
java.util.List<java.lang.String> getDiscriminableProperties()
Returns a List of properties on which to discriminate on
this object. Such properties must map to an actual method name on the
object in the bean naming convention, e.g. a property of "value" maps to
a method "getValue()" that takes no arguments. All properties must map
to methods whose returns types are themselves Discriminable,
or of a Java built-in type:
Boolean
Character
CharSequence (all implementing classes such as
String, CharBuffer,
StringBuffer, and StringBuilder)
Number (includes BigDecimal,
BigInteger, Byte, Double,
Float, Integer, Long, and
Short)
Date
Calendar
Enum
Collection
List
boolean, char,
byte, short, int,
long, float, double.
If a Discriminable object is also
Comparable, then the properties listed here should also be
the same properties used in compareTo, for consistency.
The List of properties returned must be the same for any
and every instance of each Discriminable class. For this
reason, it is recommended to return a static final List.
List of properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||