Class AnnotationRenamer

  • All Implemented Interfaces:
    java.io.Serializable, Annotation, Changeable

    public class AnnotationRenamer
    extends AbstractAnnotation
    AnnotationRenamer remaps the keys of an Annotation to new keys specified by a TagMapper. This will rename properties, but not alter their values. For writing light-weigth adaptors to project one type of Annotation to another using a TagMapper.
    Since:
    1.3
    Author:
    Matthew Pocock, Keith James (docs)
    See Also:
    Serialized Form
    • Constructor Detail

      • AnnotationRenamer

        public AnnotationRenamer​(Annotation wrapped,
                                 PropertyChanger mapper)
        Creates a new AnnotationRenamer using the specified TagMapper to remap its keys.
        Parameters:
        wrapped - an Annotation.
        mapper - a TagMapper.