org.mycore.backend.jdom
Class MCRXalanExtensions

java.lang.Object
  extended by org.mycore.backend.jdom.MCRXalanExtensions

public class MCRXalanExtensions
extends Object

This class implements Xalan extension functions for the JDOM search.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Jens Kupferschmidt

Constructor Summary
MCRXalanExtensions()
           
 
Method Summary
static boolean compareDates(String date_one, String date_two, String compare_operator)
          This method implements a XSLT function to compare two date values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRXalanExtensions

public MCRXalanExtensions()
Method Detail

compareDates

public static boolean compareDates(String date_one,
                                   String date_two,
                                   String compare_operator)
This method implements a XSLT function to compare two date values.

Parameters:
date_one - the date that should be compared with date_two
date_two - the data that date_one is compared with
compare_operator - The operator to compare in the form 'date_one compare_operator date_two'
Returns:
true if the test is correct, else return false