com.ibm.mashups.enabler.model
Interface Model


public Model

Base class for all models


Method Summary
 void setStrategy(Strategy[] strategy)
           Sets the specified array of strategies or in case none has been defined falls back to the default strategy
 Strategy[] getStrategies()
           Returns the array of strategies which are in use
 Strategy getStrategy(strategy strategy)
           Returns the specified strategy
 int addStrategy(Strategy strategy)
           Adds a strategy to the strategies array
 void removeStrategy(strategy strategy)
           Removes the specified strategy
 

Method Detail

setStrategy

void setStrategy(Strategy[] strategy)
Sets the specified array of strategies or in case none has been defined falls back to the default strategy

Parameters:
strategy - array of strategies to set; may be null

getStrategies

Strategy[] getStrategies()
Returns the array of strategies which are in use

Returns:
array of strategies in use, null if no strategies are in use

getStrategy

Strategy getStrategy(strategy strategy)
Returns the specified strategy

Parameters:
strategy - class name or array index of strategy
Returns:
strategy in use, null if no strategy with the specified type is in use

addStrategy

int addStrategy(Strategy strategy)
Adds a strategy to the strategies array

Parameters:
strategy - strategy to add; must not be null
Returns:
index where the strategy was added in the strategies array

removeStrategy

void removeStrategy(strategy strategy)
Removes the specified strategy

Parameters:
strategy - class name or array index of the strategy; must not be null


Copyright IBM Corp. 2010 All Rights Reserved.