|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.PropertyComparator
A utility class that can be used to compare two instances of a class
by comparing the instances values of a Comparable
property
of the class.
Supported API: false
Extendable: false
Comparable
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private PropertyDescriptor |
comparableProperty
|
static String |
DEFAULT_PROPERTY_NAME
Supported API: false |
private static String |
RESOURCE
|
Constructor Summary | |
PropertyComparator()
Supported API: false |
|
PropertyComparator(Class target_class)
Supported API: false |
|
PropertyComparator(Class target_class,
String property_name)
Supported API: false |
Method Summary | |
private void |
comparablePropertyValidate(PropertyDescriptor a_ComparableProperty)
|
int |
compare(Object o1,
Object o2)
Compares the two object's values of the comparableProperty
Supported API: false |
PropertyDescriptor |
getComparableProperty()
Gets the value of the attribute: comparableProperty; Comparable
must be assignable from the property type. |
void |
setComparableProperty(Class target_class)
Sets the property to the class's "name" property. |
void |
setComparableProperty(Class target_class,
String property_name)
Supported API: false |
void |
setComparableProperty(PropertyDescriptor a_ComparableProperty)
Sets the value of the attribute: comparableProperty; Comparable
must be assignable from the property type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String DEFAULT_PROPERTY_NAME
private PropertyDescriptor comparableProperty
Constructor Detail |
public PropertyComparator()
public PropertyComparator(Class target_class) throws WTException
target_class
-
WTException
public PropertyComparator(Class target_class, String property_name) throws WTException
target_class
- property_name
-
WTException
Method Detail |
public PropertyDescriptor getComparableProperty()
Comparable
must be assignable from the property type.
public void setComparableProperty(PropertyDescriptor a_ComparableProperty) throws WTPropertyVetoException
Comparable
must be assignable from the property type.
a_ComparableProperty
-
WTPropertyVetoException
private void comparablePropertyValidate(PropertyDescriptor a_ComparableProperty) throws WTPropertyVetoException
a_ComparableProperty
-
WTPropertyVetoException
public int compare(Object o1, Object o2)
comparableProperty
compare
in interface Comparator
o1
- o2
-
public void setComparableProperty(Class target_class) throws WTPropertyVetoException
target_class
-
WTPropertyVetoException
public void setComparableProperty(Class target_class, String property_name) throws WTPropertyVetoException
target_class
- property_name
-
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |