OptimalTrace
5.2

com.compuware.optimaltrace.tools.common.bizobjects.client
Class ItemFactory

java.lang.Object
  extended by com.compuware.optimaltrace.tools.common.bizobjects.client.ItemFactory
All Implemented Interfaces:
com.compuware.optimaltrace.tools.common.bizobjects.EmptyBizObjectCreatorIfc

public final class ItemFactory
extends java.lang.Object
implements com.compuware.optimaltrace.tools.common.bizobjects.EmptyBizObjectCreatorIfc

Class ItemFactory


Method Summary
 BizObjectIfc createNewEmptyBizObject()
          Creates a new empty Biz object.
 ItemIfc createNewEmptyItem()
          Creates a new empty item.
 ItemIfc createNewItem(ItemListIfc parentScenario)
          Creates a new item.
 ItemIfc createNewItem(ScenarioIfc parentScenario, int pos)
          Creates a new item at specific position.
 ItemIfc createNewItem(java.lang.String name, ItemListIfc parent)
          Creates a new item based on name and parent.
 ItemIfc createNewItem(java.lang.String name, ItemListIfc parent, int pos)
          Creates a new item at specific position based name and position.
static ItemFactory getInstance()
          Gets the instance of this item factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ItemFactory getInstance()
Gets the instance of this item factory.

Returns:
ItemFactory

createNewItem

public ItemIfc createNewItem(ItemListIfc parentScenario)
Creates a new item.

Parameters:
parentScenario -
Returns:
ItemIfc

createNewItem

public ItemIfc createNewItem(ScenarioIfc parentScenario,
                             int pos)
Creates a new item at specific position.

Parameters:
parentScenario -
pos -
Returns:
ItemIfc

createNewItem

public ItemIfc createNewItem(java.lang.String name,
                             ItemListIfc parent)
Creates a new item based on name and parent.

Parameters:
name -
parent -
Returns:
ItemIfc

createNewItem

public ItemIfc createNewItem(java.lang.String name,
                             ItemListIfc parent,
                             int pos)
Creates a new item at specific position based name and position.

Parameters:
name -
parent -
pos -
Returns:
ItemIfc

createNewEmptyItem

public ItemIfc createNewEmptyItem()
Creates a new empty item.

Returns:
ItemIfc

createNewEmptyBizObject

public BizObjectIfc createNewEmptyBizObject()
Creates a new empty Biz object.

Specified by:
createNewEmptyBizObject in interface com.compuware.optimaltrace.tools.common.bizobjects.EmptyBizObjectCreatorIfc
Returns:
BizObjectIfc

OptimalTrace
5.2

Compuware Corporation

OptimalTrace is a trademark or registered trademark of Compuware Corporation in the US and other countries.
Copyright 2008-2009 Compuware Corporation. One Campus Martius,
Detroit, Michigan, 48226, U.S.A. All Rights Reserved.