OptimalTrace
5.2

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

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

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

Class UseCaseFactory


Method Summary
 BizObjectIfc createNewEmptyBizObject()
          Creates a new empty biz object.
 UseCaseIfc createNewEmptyUseCase()
          Creates a new empty usecase.
 UseCaseIfc createNewUseCase(java.lang.String name, UseCasePackageIfc ucPackage)
          Creates a new usecase.
 UseCaseIfc createNewUseCase(UseCasePackageIfc pkg)
          Creates a new usecase.
 UseCaseIfc createNewUseCaseUnvalidated(java.lang.String name, UseCasePackageIfc pkg)
          Creates an invalidated new usecase.
static UseCaseFactory getInstance()
          Get the instance of this usecase factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UseCaseFactory getInstance()
Get the instance of this usecase factory.

Returns:
UseCaseFactory

createNewUseCase

public UseCaseIfc createNewUseCase(java.lang.String name,
                                   UseCasePackageIfc ucPackage)
                            throws com.compuware.optimaltrace.tools.common.bizobjects.NameNotUniqueException,
                                   com.compuware.optimaltrace.tools.common.tpn.client.NameAlreadyReservedException
Creates a new usecase.

Parameters:
name -
ucPackage -
Returns:
UseCaseIfc
Throws:
com.compuware.optimaltrace.tools.common.bizobjects.NameNotUniqueException
com.compuware.optimaltrace.tools.common.tpn.client.NameAlreadyReservedException

createNewUseCase

public UseCaseIfc createNewUseCase(UseCasePackageIfc pkg)
Creates a new usecase.

Parameters:
pkg -
Returns:
UseCaseIfc

createNewEmptyUseCase

public UseCaseIfc createNewEmptyUseCase()
Creates a new empty usecase.

Returns:
UseCaseIfc

createNewUseCaseUnvalidated

public UseCaseIfc createNewUseCaseUnvalidated(java.lang.String name,
                                              UseCasePackageIfc pkg)
Creates an invalidated new usecase.

Parameters:
name -
pkg -
Returns:
UseCaseIfc

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.