org.drools.type
Class DateFormatsImpl

java.lang.Object
  extended by org.drools.type.DateFormatsImpl
All Implemented Interfaces:
Externalizable, Serializable, DateFormats

public class DateFormatsImpl
extends Object
implements DateFormats, Externalizable

See Also:
Serialized Form

Field Summary
static ThreadLocal<DateFormats> dateFormats
          This is here for any static classes, such as MVEL DataConverters, to access.
 
Constructor Summary
DateFormatsImpl()
           
 
Method Summary
 DateFormat get(String identifier)
           
 Date parse(String identifier, String date)
           
 void readExternal(ObjectInput in)
           
 void set(String identifier, DateFormat calendar)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormats

public static ThreadLocal<DateFormats> dateFormats
This is here for any static classes, such as MVEL DataConverters, to access. It is expected this will be set, before access.

Constructor Detail

DateFormatsImpl

public DateFormatsImpl()
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

get

public DateFormat get(String identifier)
Specified by:
get in interface DateFormats

set

public void set(String identifier,
                DateFormat calendar)
Specified by:
set in interface DateFormats

parse

public Date parse(String identifier,
                  String date)
Specified by:
parse in interface DateFormats


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