org.jproggy.snippetory.engine.spi
Class DateFormater

java.lang.Object
  extended by org.jproggy.snippetory.engine.spi.DateFormater
All Implemented Interfaces:
Format

public class DateFormater
extends Object
implements Format


Nested Class Summary
static class DateFormater.Factory
           
 
Field Summary
 
Fields inherited from interface org.jproggy.snippetory.spi.Format
REGISTRY
 
Constructor Summary
DateFormater(DateFormat d)
           
 
Method Summary
 CharSequence format(Object value)
          may only be called for supported values.
 boolean supports(Object value)
          Many formats only apply to a special type or even specific values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormater

public DateFormater(DateFormat d)
Method Detail

format

public CharSequence format(Object value)
Description copied from interface: Format
may only be called for supported values.

Specified by:
format in interface Format

supports

public boolean supports(Object value)
Description copied from interface: Format
Many formats only apply to a special type or even specific values. The format method will only be called for supported values

Specified by:
supports in interface Format