Class IDItoADecorator
- java.lang.Object
-
- net.anotheria.asg.util.decorators.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.Stringdecorate(DataObject doc, java.lang.String attributeName, java.lang.String rule)Returns the decorated form.
-
-
-
Method Detail
-
decorate
public java.lang.String decorate(DataObject doc, java.lang.String attributeName, java.lang.String rule)
Returns the decorated form.- Specified by:
decoratein interfaceIAttributeDecorator- Parameters:
doc- target document.attributeName- name of the attribute for decoration.rule- evtl decoration rule (if configured in view definition file).- Returns:
- a
Stringobject.
-
-