public class PossibleValueComparator
extends java.lang.Object
implements java.util.Comparator<atg.repository.servlet.PossibleValues.PossibleValue>
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.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
PossibleValueComparator() |
Modifier and Type | Method and Description |
---|---|
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.
|
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>