Public Member Functions

cern.gp.nodes.children.NodeMap Interface Reference

Inheritance diagram for cern.gp.nodes.children.NodeMap:
cern.gp.nodes.children.NodeCollection

List of all members.

Public Member Functions

void addNode (Object key, GPNode node)
void addNode (GPNode node)
void addNodes (GPNode[] nodes)
void addNodes (Map nodesMap)
GPNode removeNode (Object key)
void removeNodes (Object[] keys)
GPNode getNode (Object key)
Set keySet ()

Detailed Description

A class implementing this interface hold a collection of nodes as a Map.

Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Lionel Mestre

Member Function Documentation

void cern.gp.nodes.children.NodeMap.addNode ( Object  key,
GPNode  node 
)

Adds the new node to the map using the given key

Parameters:
key the key of the node to add
node the node to add to the map
void cern.gp.nodes.children.NodeMap.addNode ( GPNode  node  ) 

Adds the new node to the map using the name returned by the method node.getName() as the key.

Parameters:
node the node to add to the map
void cern.gp.nodes.children.NodeMap.addNodes ( Map  nodesMap  ) 

Adds all nodes in the given map to this node map. The key for each node in the given map is used as the key in this node map.

Parameters:
nodesMap the nodes to add to this map
void cern.gp.nodes.children.NodeMap.addNodes ( GPNode[]  nodes  ) 

Adds all nodes in the given array to the map using the name returned by the method node.getName() as the key for each node.

Parameters:
nodes the nodes to add to the map

Referenced by cern.gp.nodes.children.DefaultChildrenMapManager.initChildrenMap().

GPNode cern.gp.nodes.children.NodeMap.getNode ( Object  key  ) 

Returns the node associated to the given key or null

Parameters:
key the key of the node to return
Returns:
the node associated with the key or null

Referenced by cern.gp.explorer.GPListExplorerPanel.getListNodes().

Set cern.gp.nodes.children.NodeMap.keySet (  ) 

Returns a set view of the keys contained in this map.

Returns:
a set view of the keys contained in this map.

Referenced by cern.gp.explorer.GPListExplorerPanel.getListNodes().

GPNode cern.gp.nodes.children.NodeMap.removeNode ( Object  key  ) 

Removes the node associated to the given key

Parameters:
key the key of the node to remove
Returns:
the node that has been removed or null if the key did not match any node.
void cern.gp.nodes.children.NodeMap.removeNodes ( Object[]  keys  ) 

Removes all nodes associated to the given keys

Parameters:
keys the keys of the nodes to remove

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties