Class DateTimeDecorator

  • All Implemented Interfaces:
    IAttributeDecorator

    public class DateTimeDecorator
    extends java.lang.Object
    implements IAttributeDecorator
    This decorator decorates long value to date time representation.
    Version:
    $Id: $Id
    Author:
    Alexandr Bolbat
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATE_FORMAT
      Date format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decorate​(DataObject obj, java.lang.String attributeName, java.lang.String rule)
      Returns the decorated form.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DATE_FORMAT

        public static final java.lang.String DATE_FORMAT
        Date format.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DateTimeDecorator

        public DateTimeDecorator()
    • Method Detail

      • decorate

        public java.lang.String decorate​(DataObject obj,
                                         java.lang.String attributeName,
                                         java.lang.String rule)
        Returns the decorated form.
        Specified by:
        decorate in interface IAttributeDecorator
        Parameters:
        obj - target document.
        attributeName - name of the attribute for decoration.
        rule - evtl decoration rule (if configured in view definition file).
        Returns:
        a String object.