Class AnnotationNameGenerator

  • All Implemented Interfaces:
    NodeNameGenerator<Annotation>

    public class AnnotationNameGenerator
    extends Object
    implements NodeNameGenerator<Annotation>
    Since an Annotation isn't Nameable we construct the name from the name of the annotation type, or from the value type if we are not allowed to access the annotation type.
    Version:
    2.10
    Author:
    Nicklas
    Last modified
    $Date: 2012-03-29 11:50:36 +0200 (to, 29 mar 2012) $
    • Constructor Detail

      • AnnotationNameGenerator

        public AnnotationNameGenerator()
    • Method Detail

      • getNodeName

        public String getNodeName​(Annotation item,
                                  Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a name for the new node that is about to be created.
        Specified by:
        getNodeName in interface NodeNameGenerator<Annotation>
        Parameters:
        item - The item that is attached to the node (never null)
        parentNode - The parent node of the new node
        Returns:
        A name for the node
      • getNodeTitle

        public String getNodeTitle​(Annotation item,
                                   Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a title for the new node that is about to be created.
        Specified by:
        getNodeTitle in interface NodeNameGenerator<Annotation>
        Parameters:
        item - The item that is attached to the node (never null)
        parentNode - The parent node of the new node
        Returns:
        A title for the node
      • getDeniedNodeName

        public String getDeniedNodeName​(Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.
        Specified by:
        getDeniedNodeName in interface NodeNameGenerator<Annotation>
        Parameters:
        parentNode - The parent node
        Returns:
        A name for the node
      • getDeniedNodeTitle

        public String getDeniedNodeTitle​(Node parentNode)
        Description copied from interface: NodeNameGenerator
        Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.
        Specified by:
        getDeniedNodeTitle in interface NodeNameGenerator<Annotation>
        Parameters:
        parentNode - The parent node
        Returns:
        A name for the node