org.dspace.sort
Class OrderFormatDate

java.lang.Object
  extended by org.dspace.sort.OrderFormatDate
All Implemented Interfaces:
OrderFormatDelegate

public class OrderFormatDate
extends Object
implements OrderFormatDelegate

Standard date ordering delegate implementation. The only "special" need is for treat with date with only "small" year < 4 digit

Author:
Andrea Bollini

Constructor Summary
OrderFormatDate()
           
 
Method Summary
 String makeSortString(String value, String language)
          Prepare the appropriate sort string for the given value in the given language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderFormatDate

public OrderFormatDate()
Method Detail

makeSortString

public String makeSortString(String value,
                             String language)
Description copied from interface: OrderFormatDelegate
Prepare the appropriate sort string for the given value in the given language. Languate should be supplied with the ISO-6390-1 or ISO-639-2 standards. For example "en" or "eng".

Specified by:
makeSortString in interface OrderFormatDelegate
Parameters:
value - the string value
language - the language to interpret in


Copyright © 2010 DuraSpace. All Rights Reserved.