com.sybase.uep.bobclient.data
Class SPTreeHelper

java.lang.Object
  extended by com.sybase.uep.bobclient.data.SPTreeHelper

public class SPTreeHelper
extends java.lang.Object

Helper class for structure parameter hierarchy tree

Author:
haowang

Field Summary
static char PATH_SEPARATOR
           
 
Constructor Summary
SPTreeHelper()
           
 
Method Summary
static void addNodeAt(SPTreeNode node, SPTreeNode parentNode, java.lang.String path, java.lang.String packageName)
          Add the node to the tree at the given path.
static SPTreeNode findChildAt(SPTreeNode root, java.lang.String path)
          Find the child at path
static ObjectList getSubmitValues(SPTreeNode root)
          Collect all the value that needs to be passed to Object API
static boolean isAllLeafFillFrom(SPTreeNode node)
          Checks every submitElement from leaf nodes, if all of them has fill from attribute, return true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final char PATH_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SPTreeHelper

public SPTreeHelper()
Method Detail

addNodeAt

public static void addNodeAt(SPTreeNode node,
                             SPTreeNode parentNode,
                             java.lang.String path,
                             java.lang.String packageName)
Add the node to the tree at the given path.

Parameters:
node -
tree -
path - path should be separated by dot. For example: Sales_order.employee.id

isAllLeafFillFrom

public static boolean isAllLeafFillFrom(SPTreeNode node)
Checks every submitElement from leaf nodes, if all of them has fill from attribute, return true. Otherwise, return false

Parameters:
node -
parentNode -
Returns:

getSubmitValues

public static ObjectList getSubmitValues(SPTreeNode root)
Collect all the value that needs to be passed to Object API

Parameters:
root -
Returns:

findChildAt

public static SPTreeNode findChildAt(SPTreeNode root,
                                     java.lang.String path)
Find the child at path

Parameters:
root -
path -
Returns: