org.alfresco.service.cmr.search
Class SearchParameters.SortDefinition

java.lang.Object
  extended by org.alfresco.service.cmr.search.SearchParameters.SortDefinition
Enclosing class:
SearchParameters

public static class SearchParameters.SortDefinition
extends java.lang.Object

A helper class for sort definition. Encapsulated using the lucene sortType, field name and a flag for ascending/descending.


Nested Class Summary
static class SearchParameters.SortDefinition.SortType
          What is used for the sort
 
Method Summary
 java.lang.String getField()
          Field
 SearchParameters.SortDefinition.SortType getSortType()
          What is used for the sort
 boolean isAscending()
          Is ascending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAscending

public boolean isAscending()
Is ascending

Returns:
true if ascending

getField

public java.lang.String getField()
Field

Returns:
- the field

getSortType

public SearchParameters.SortDefinition.SortType getSortType()
What is used for the sort

Returns:
sort type


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.