org.zeroexchange.representation
Class DateTimeRepresentation

java.lang.Object
  extended by org.zeroexchange.representation.DateTimeRepresentation
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, DataProcessor, Representation<Date>

public class DateTimeRepresentation
extends Object
implements Representation<Date>, DataProcessor, org.springframework.beans.factory.InitializingBean

Author:
black

Field Summary
 
Fields inherited from interface org.zeroexchange.representation.Representation
UNLIMITED
 
Constructor Summary
DateTimeRepresentation()
           
 
Method Summary
 void afterPropertiesSet()
           
 Class<Date> getProcessingClass()
          Returns root hierarchy current processor can operate
 String getRepresentation(Date date, int limit)
          Returns string representation of the specified entity.
 void setFormat(String formatSpec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeRepresentation

public DateTimeRepresentation()
Method Detail

setFormat

public void setFormat(String formatSpec)
Parameters:
format - the format to set

getProcessingClass

public Class<Date> getProcessingClass()
Returns root hierarchy current processor can operate

Specified by:
getProcessingClass in interface DataProcessor

getRepresentation

public String getRepresentation(Date date,
                                int limit)
                         throws BusinessLogicException
Returns string representation of the specified entity.

Specified by:
getRepresentation in interface Representation<Date>
Throws:
BusinessLogicException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2013. All Rights Reserved.