|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SortBy>
com.bea.alcs.service.search.query.SortBy
public enum SortBy
Represents different types of sorts within a Product search.
| Enum Constant Summary | |
|---|---|
FEATURED_ANYWHERE
Sorts by feature-ness regardless of the category. |
|
FEATURED_CATEGORY
Sorts by feature-ness within a particular category and then by featured elsewhere. |
|
PRICE
Sorts by product price ascending (lower to higher). |
|
PRODUCT_NAME
Sorts by product name ascending (a to z). |
|
RELEVANCE
Sorts via highest match (relevance). |
|
TOP_SELLER
Sorts by the physical sales counts of products. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSortString()
Returns the string representation of the sorting type. |
static SortBy |
parseSortString(java.lang.String sortString)
Attempts to parse a sorting string into a SortBy. |
java.lang.String |
toString()
Returns the string representation of the sorting type. |
static SortBy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SortBy[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SortBy RELEVANCE
public static final SortBy PRODUCT_NAME
public static final SortBy PRICE
public static final SortBy TOP_SELLER
public static final SortBy FEATURED_CATEGORY
public static final SortBy FEATURED_ANYWHERE
| Method Detail |
|---|
public static final SortBy[] values()
for(SortBy c : SortBy.values())
System.out.println(c);
public static SortBy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String getSortString()
public java.lang.String toString()
toString in class java.lang.Enum<SortBy>public static SortBy parseSortString(java.lang.String sortString)
SortBy. Returns null
if there are no sort type matches.
sortString - the sort string
SortBy representation of the string or null if there is none
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||