Class IDItoADecorator

  • All Implemented Interfaces:
    IAttributeDecorator

    public class IDItoADecorator
    extends java.lang.Object
    implements IAttributeDecorator
    Same as ItoADecorator, but instead of decorating the attribute with the name "attributeName", the id of the given document is taken. This decorator is needed, since the id of the document isn't an official attribute. The parameter attribute name is ignored.
    Version:
    $Id: $Id
    Author:
    another
    • Constructor Summary

      Constructors 
      Constructor Description
      IDItoADecorator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decorate​(DataObject doc, 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
    • Constructor Detail

      • IDItoADecorator

        public IDItoADecorator()
    • Method Detail

      • decorate

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