com.fatwire.search.query
Class SortOrderImpl

java.lang.Object
  extended by com.fatwire.search.query.SortOrderImpl
All Implemented Interfaces:
SortOrder

public final class SortOrderImpl
extends java.lang.Object
implements SortOrder

The default implementation of the SortOrder


Constructor Summary
SortOrderImpl(java.lang.String fieldname, boolean ase)
          Creates a SortOrder by field given in the field name and the order in which the results will be sorted
SortOrderImpl(java.lang.String fieldname, boolean ase, java.util.Locale locale)
          Creates a SortOrder by field given in the field name and the order in which the results will be sorted using the Locale specified
 
Method Summary
 boolean getAse()
          Gets whether sort according to ascending or descending order
 java.lang.String getFieldName()
          Gets the field name on which the SortOrder would be for
 java.util.Locale getLocale()
          Gets Locale that the sorting would be using
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOrderImpl

public SortOrderImpl(java.lang.String fieldname,
                     boolean ase)
Creates a SortOrder by field given in the field name and the order in which the results will be sorted

Parameters:
fieldname - the name of the field that will be used for sorting
ase - the order that will be used for sorting

SortOrderImpl

public SortOrderImpl(java.lang.String fieldname,
                     boolean ase,
                     java.util.Locale locale)
Creates a SortOrder by field given in the field name and the order in which the results will be sorted using the Locale specified

Parameters:
fieldname - the name of the field that will be used for sorting
ase - the order that will be used for sorting
locale - the Locale in which the field is used for sorting purpose
Method Detail

getFieldName

public java.lang.String getFieldName()
Gets the field name on which the SortOrder would be for

Specified by:
getFieldName in interface SortOrder
Returns:
the String field name

getAse

public boolean getAse()
Gets whether sort according to ascending or descending order

Specified by:
getAse in interface SortOrder
Returns:
true indicates it is ascending order; false indicates it is descending order

getLocale

public java.util.Locale getLocale()
Gets Locale that the sorting would be using

Specified by:
getLocale in interface SortOrder
Returns:
the Locate that the sorting would be using


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.