|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.projects.store.repository.servlet.PossibleValueComparator
public class PossibleValueComparator
Comparator class for PossibleValue objects. Sorts PossibleValue objects alphabetically
by their labels (or localized labels for EnumeratedOptionPossibleValue type) with the
exception that the possible value which settableValue
is the same as firstElementValue
will be always at the beginning of the list
and possible value with settableValue
the same as in lastElementValue
property will be always at the end of the list.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
PossibleValueComparator()
|
Method Summary | |
---|---|
int |
compare(atg.repository.servlet.PossibleValues.PossibleValue pObj1,
atg.repository.servlet.PossibleValues.PossibleValue pObj2)
Compares two PossibleValue objects alphabetically by their labels (or localized labels for EnumeratedOptionPossibleValue type) with the exception that the possible value which settableValue
is the same as firstElementValue will be always at the beginning of the list
and possible value with settableValue the same as in lastElementValue
property will be always at the end of the list. |
java.lang.String |
getFirstElementValue()
Gets the element value that always should be put at the beginning of the list |
java.lang.String |
getLastElementValue()
Gets the element value that always should be put at the end of the list |
void |
setFirstElementValue(java.lang.String pFirstElementValue)
Sets the element value that always should be put at the beginning of the list. |
void |
setLastElementValue(java.lang.String pLastElementValue)
Sets the element value that always should be put at the end of the list. |
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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public PossibleValueComparator()
Method Detail |
---|
public java.lang.String getFirstElementValue()
public void setFirstElementValue(java.lang.String pFirstElementValue)
pFirstElementValue
- - the element value that always should be put at the beginning of the list.public java.lang.String getLastElementValue()
public void setLastElementValue(java.lang.String pLastElementValue)
pLastElementValue
- - the element value that always should be put at the end of the list.public int compare(atg.repository.servlet.PossibleValues.PossibleValue pObj1, atg.repository.servlet.PossibleValues.PossibleValue pObj2)
settableValue
is the same as firstElementValue
will be always at the beginning of the list
and possible value with settableValue
the same as in lastElementValue
property will be always at the end of the list.
compare
in interface java.util.Comparator<atg.repository.servlet.PossibleValues.PossibleValue>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |