站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

DateFactory (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.base.evaluators
Class DateFactory

java.lang.Object
  extended by org.drools.base.evaluators.DateFactory
All Implemented Interfaces:
Serializable, EvaluatorFactory

public class DateFactory
extends Object
implements EvaluatorFactory

This will generate evaluators that handle dates. This will also parse strings into dates, according to DEFAULT_FORMAT_MASK, unless it is overridden by the drools.dateformat system property. When parsing dates from a string, no time is included. So you can do expressions like Person(birthday <= "10-Jul-1974") etc.

Author:
Michael Neale
See Also:
Serialized Form

Method Summary
 Evaluator getEvaluator(Operator operator)
           
static EvaluatorFactory getInstance()
           
static Date parseDate(String input)
          Use the simple date formatter to read the date from a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EvaluatorFactory getInstance()

getEvaluator

public Evaluator getEvaluator(Operator operator)
Specified by:
getEvaluator in interface EvaluatorFactory

parseDate

public static Date parseDate(String input)
Use the simple date formatter to read the date from a string



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.