net.sf.jagg.msd
Interface Discriminable


public interface Discriminable

A Discriminable object knows which properties in itself to be discriminated.

Since:
0.5.0
Author:
Randy Gettman

Method Summary
 java.util.List<java.lang.String> getDiscriminableProperties()
          Returns a List of properties on which to discriminate on this object.
 

Method Detail

getDiscriminableProperties

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:

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.

Returns:
A List of properties.


Copyright © 2010-2013 jAgg Team. All Rights Reserved.