com.sap.mdm.group
Class HierGroupNodeFactory

java.lang.Object
  extended bycom.sap.mdm.group.HierGroupNodeFactory

public class HierGroupNodeFactory
extends Object

The HierGroupNodeFactory is factory class responsible for creation of a new instances of HierDataGroupNode, HierValidationGroupNode and HierLocationGroupNode. These instances is used for dealing with grouping structures.

See Also:
CreateGroupCommand, RetrieveGroupTreeCommand, DeleteGroupCommand

Constructor Summary
HierGroupNodeFactory()
           
 
Method Summary
static HierDataGroupNode createHierDataGroupNode(String name, int position)
          Creates HierDataGroupNode.
static HierLocationGroupNode createHierLocationGroupNode(String name, int locationType)
          Creates HierLocationGroupNode.
static HierValidationGroupNode createHierValidationGroupNode(String name)
          Creates HierValidationGroupNode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierGroupNodeFactory

public HierGroupNodeFactory()
Method Detail

createHierDataGroupNode

public static HierDataGroupNode createHierDataGroupNode(String name,
                                                        int position)
Creates HierDataGroupNode.

Parameters:
name - The node name. Can't be null or empty string.
position - The position of new item among the siblings. Providing the negative value means the item should be appended after the last existing sibling, note there is an additional overhead in this case. Possible values: 0 - the new item will be the first child, up to the current number of children of the parent.
Returns:
Created node.

createHierLocationGroupNode

public static HierLocationGroupNode createHierLocationGroupNode(String name,
                                                                int locationType)
Creates HierLocationGroupNode.

Parameters:
name - The node name. Can't be null or empty string.
locationType - The type of location node. Use DataLocationTypes class for possible values.
Returns:
Created node.

createHierValidationGroupNode

public static HierValidationGroupNode createHierValidationGroupNode(String name)
Creates HierValidationGroupNode.

Parameters:
name - The node name. Can't be null or empty string.
Returns:
Created node.


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.