OptimalTrace
5.2

com.compuware.optimaltrace.framework.relations
Interface AssociateIfc

All Superinterfaces:
RelationIfc
All Known Subinterfaces:
AbstractRequirementIfc, AbstractStepIfc, AlternativeScenarioIfc, BizObjectIfc, com.compuware.optimaltrace.tools.common.bizobjectslocal.ClearableSuspectLinkIfc, CustomPropertyTemplateIfc, CustomPropertyTemplateListIfc, GoalLevelIfc, GoalLevelsIfc, ItemIfc, ItemListIfc, MainSuccessScenarioIfc, ProjectIfc, RefinementIfc, ScenarioIfc, SimpleRequirementIfc, StepIfc, TableHolderListContainerIfc, ToolSettingsIfc, UseCaseIfc, UseCasePackageIfc
All Known Implementing Classes:
com.compuware.optimaltrace.framework.business.AbstractBizObject, com.compuware.optimaltrace.tools.common.bizobjects.AbstractStep, ProjectContainer, Step

public interface AssociateIfc
extends RelationIfc

Interface AssociateIfc


Method Summary
 boolean addAssociate(AssociateIfc associate)
          Adds the associate.
 void addAssociateListener(com.compuware.optimaltrace.framework.relations.AssociateListenerIfc listener)
          Adds the associate listener.
 boolean addInwardAssociate(AssociateIfc associate)
          Adds the inward associate.
 void fireAssociateEvent(AssociateIfc associate, int index, long eventType)
          Fires the associate event.
 AssociateIfc getAssociate(java.lang.String name, java.lang.Class associateClass)
          Gets the associate
 java.util.List getAssociateListeners()
          Gets the associate listeners.
 java.util.List getAssociates()
          Gets the associates.
 java.util.List getAssociates(java.lang.Class associateClass)
          Gets the associates.
 java.util.List getInwardAssociates()
          Gets the inward associates.
 java.util.List getInwardAssociates(java.lang.Class associateClass)
          Gets the inward associates.
 java.util.List getOutwardAssociates()
          Gets the outward associates.
 java.util.List getOutwardAssociates(java.lang.Class associateClass)
          Gets the outward associates.
 boolean hasAssociate(AssociateIfc associate)
          Checks if it has the associate.
 boolean hasInwardAssociate(AssociateIfc associate)
          Checks if it has the inward associate.
 boolean hasOutwardAssociate(AssociateIfc associate)
          Checks if it has the outward associate.
 int numAssociates()
          Gets the number of the associates.
 int numInwardAssociates()
          Gets the number of the inward associates.
 int numOutwardAssociates()
          Gets the number of the outward associates.
 boolean removeAssociate(AssociateIfc associate)
          Removes the associate.
 void removeAssociateListener(com.compuware.optimaltrace.framework.relations.AssociateListenerIfc listener)
          Removes the associate listener.
 boolean removeInwardAssociate(AssociateIfc associate)
          Removes the inward associate.
 

Method Detail

addAssociate

boolean addAssociate(AssociateIfc associate)
Adds the associate.

Parameters:
associate -
Returns:
boolean

addInwardAssociate

boolean addInwardAssociate(AssociateIfc associate)
Adds the inward associate.

Parameters:
associate -
Returns:
boolean

removeInwardAssociate

boolean removeInwardAssociate(AssociateIfc associate)
Removes the inward associate.

Parameters:
associate -
Returns:
boolean

removeAssociate

boolean removeAssociate(AssociateIfc associate)
Removes the associate.

Parameters:
associate -
Returns:
boolean

getAssociates

java.util.List getAssociates()
Gets the associates.

Returns:
List

getInwardAssociates

java.util.List getInwardAssociates()
Gets the inward associates.

Returns:
List

getOutwardAssociates

java.util.List getOutwardAssociates()
Gets the outward associates.

Returns:
List

getAssociates

java.util.List getAssociates(java.lang.Class associateClass)
Gets the associates.

Parameters:
associateClass -
Returns:
List

getInwardAssociates

java.util.List getInwardAssociates(java.lang.Class associateClass)
Gets the inward associates.

Parameters:
associateClass -
Returns:
List

getOutwardAssociates

java.util.List getOutwardAssociates(java.lang.Class associateClass)
Gets the outward associates.

Parameters:
associateClass -
Returns:
List

getAssociate

AssociateIfc getAssociate(java.lang.String name,
                          java.lang.Class associateClass)
Gets the associate

Parameters:
name -
associateClass -
Returns:
AssociateIfc

addAssociateListener

void addAssociateListener(com.compuware.optimaltrace.framework.relations.AssociateListenerIfc listener)
Adds the associate listener.

Parameters:
listener -

removeAssociateListener

void removeAssociateListener(com.compuware.optimaltrace.framework.relations.AssociateListenerIfc listener)
Removes the associate listener.

Parameters:
listener -

hasAssociate

boolean hasAssociate(AssociateIfc associate)
Checks if it has the associate.

Parameters:
associate -
Returns:
boolean

hasInwardAssociate

boolean hasInwardAssociate(AssociateIfc associate)
Checks if it has the inward associate.

Parameters:
associate -
Returns:
boolean

hasOutwardAssociate

boolean hasOutwardAssociate(AssociateIfc associate)
Checks if it has the outward associate.

Parameters:
associate -
Returns:
boolean

numAssociates

int numAssociates()
Gets the number of the associates.

Returns:
int

numInwardAssociates

int numInwardAssociates()
Gets the number of the inward associates.

Returns:
int

numOutwardAssociates

int numOutwardAssociates()
Gets the number of the outward associates.

Returns:
int

getAssociateListeners

java.util.List getAssociateListeners()
Gets the associate listeners.

Returns:
List

fireAssociateEvent

void fireAssociateEvent(AssociateIfc associate,
                        int index,
                        long eventType)
Fires the associate event.

Parameters:
associate - an AssociateIfc value
index - an int value
eventType - a long value

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.