org.openbp.cockpit.itemeditor
Class ItemCreationUtil

java.lang.Object
  extended by org.openbp.cockpit.itemeditor.ItemCreationUtil

public class ItemCreationUtil
extends java.lang.Object

Item creation utilities.

Author:
Heiko Erhardt

Method Summary
static Item createItem(Model model, java.lang.String suggestedName, java.lang.String suggestedDisplayName, ItemTypeDescriptor itd, java.lang.String processType)
          Creates and initializes a new item.
static Item createItem(Model model, java.lang.String suggestedName, java.lang.String suggestedDisplayName, java.lang.String itemType, java.lang.String processType)
          Creates and initializes a new item.
static void setupStandardConfiguration(Item item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createItem

public static Item createItem(Model model,
                              java.lang.String suggestedName,
                              java.lang.String suggestedDisplayName,
                              java.lang.String itemType,
                              java.lang.String processType)
Creates and initializes a new item.

Parameters:
model - Model the item shall belong to
suggestedName - Suggested name or null for a default item-type-specific name. The method guarantees that the generated name will be unique within the items of this type of this model.
suggestedDisplayName - Suggested display name or null
itemType - Type of the item to create
processType - Process type in case of a process item
Returns:
The new item

createItem

public static Item createItem(Model model,
                              java.lang.String suggestedName,
                              java.lang.String suggestedDisplayName,
                              ItemTypeDescriptor itd,
                              java.lang.String processType)
Creates and initializes a new item.

Parameters:
itd - Type of the item to create
suggestedName - Suggested name or null for a default item-type-specific name. The method guarantees that the generated name will be unique within the items of this type of this model.
suggestedDisplayName - Suggested display name or null
processType - Process type in case of a process item
Returns:
The new item

setupStandardConfiguration

public static void setupStandardConfiguration(Item item)


Copyright © 2011. All Rights Reserved.