Static Public Member Functions

cern.gp.nodes.impl.NodeUtils Class Reference

List of all members.

Static Public Member Functions

static GPNode[] copyToNewGPNodeArray (GPNode[] origNodes)
static boolean haveOneCommonParent (final GPNode[] nodes)
static GPNode[] cloneNodes (GPNode[] origNodes)

Detailed Description

Author:
Vito Baggiolini
Version:
Revision:
1.2

,

Date:
2006/09/25 08:52:36

Member Function Documentation

static GPNode [] cern.gp.nodes.impl.NodeUtils.cloneNodes ( GPNode[]  origNodes  )  [static]

a method that creates a new array of GPNodes with copies of the original GPNodes The domain beans associated with the GPNodes are not copied.

Parameters:
origNodes the array of nodes to be cloned
Returns:
the array of copied nodes
static GPNode [] cern.gp.nodes.impl.NodeUtils.copyToNewGPNodeArray ( GPNode[]  origNodes  )  [static]

creates an array of new GPNode objects without from the origNodes. Use this in case you need to "cut" the children below your nodes for some reason, e.g. because you want to display a list of children in a Tree

Deprecated:
-- this should use a FilterNode
Parameters:
origNodes the nodes with children that need to be cut off
Returns:
an array of new GPNode objects that refer to the same beans as the GPNodes passed as argument
static boolean cern.gp.nodes.impl.NodeUtils.haveOneCommonParent ( final GPNode[]  nodes  )  [static]

checks whether the nodes in the array all have a common parent

Returns:
true if there is a parent and it's the same for all nodes, false otherwise

References cern.gp.nodes.GPNode.getParent().


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