2.17.2: 2011-06-17

net.sf.basedb.util.overview.node
Interface NodeNameGenerator<I>

All Known Implementing Classes:
AnnotationNameGenerator, AnyToAnyNameGenerator, FileSetMemberNameGenerator, LabeledExtractNameGenerator, NameableNameGenerator

public interface NodeNameGenerator<I>

A name generator is an object that can create the name and title for a node when given the item that should be attached to the node. The name and title are used to create the new node: Node.Node(String, String, Node, BasicItem, ChildNodeDirection).

Version:
2.10
Author:
Nicklas
This class/package is not part of the Public API
This class is still being developed. It may change without notice in future versions of BASE.
Last modified
$Date: 2009-02-18 14:26:21 +0100 (Wed, 18 Feb 2009) $

Method Summary
 String getDeniedNodeName(Node parentNode)
          Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.
 String getDeniedNodeTitle(Node parentNode)
          Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.
 String getMissingNodeName(Node parentNode)
          Generate a name for a node when the item is missing.
 String getMissingNodeTitle(Node parentNode)
          Generate a title for a node when the item is missing.
 String getNodeName(I item, Node parentNode)
          Generate a name for the new node that is about to be created.
 String getNodeTitle(I item, Node parentNode)
          Generate a title for the new node that is about to be created.
 

Method Detail

getMissingNodeName

String getMissingNodeName(Node parentNode)
Generate a name for a node when the item is missing.

Parameters:
parentNode - The parent node
Returns:
A name for the node

getMissingNodeTitle

String getMissingNodeTitle(Node parentNode)
Generate a title for a node when the item is missing.

Parameters:
parentNode - The parent node
Returns:
A title for the node

getDeniedNodeName

String getDeniedNodeName(Node parentNode)
Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.

Parameters:
parentNode - The parent node
Returns:
A name for the node

getDeniedNodeTitle

String getDeniedNodeTitle(Node parentNode)
Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.

Parameters:
parentNode - The parent node
Returns:
A name for the node

getNodeName

String getNodeName(I item,
                   Node parentNode)
Generate a name for the new node that is about to be created.

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

String getNodeTitle(I item,
                    Node parentNode)
Generate a title for the new node that is about to be created.

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

2.17.2: 2011-06-17