|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.jato.model.MultipleModelAdapter
A simple model that gathers values from and distributes values to one
or more target models. For example, this class can be used to set a value
on multiple target models using one setValue()
method call.
Constructor Summary | |
MultipleModelAdapter()
Default constructor |
|
MultipleModelAdapter(java.util.Collection targets)
Initialize the adapter with the provided collection of target models |
|
MultipleModelAdapter(Model target1)
Initialize the adapter with the provided target model |
|
MultipleModelAdapter(Model[] targets)
Initialize the adapter with the provided array of target models |
|
MultipleModelAdapter(Model target1,
Model target2)
Initialize the adapter with the provided target models |
|
MultipleModelAdapter(Model target1,
Model target2,
Model target3)
Initialize the adapter with the provided target models |
Method Summary | |
void |
addTargetModel(Model model)
Adds a model to the list of target models. |
void |
clearTargetModels()
Clears the list of models that will be included in the distribution/ gathering of values |
java.lang.String |
getName()
Returns the logical instance name of this model. |
java.util.List |
getTargetModelList()
Returns the models that will be included in the distribution/gathering of values as a list |
Model[] |
getTargetModels()
Returns the models that will be included in the distribution/gathering of values |
java.lang.Object |
getValue(java.lang.String name)
Returns a named value from this model |
java.lang.Object[] |
getValues(java.lang.String name)
Returns a named set of values from this model |
void |
removeTargetModel(Model model)
Removes a model to the list of target models. |
void |
setName(java.lang.String value)
Sets the logical name of this model |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets a named value in this model. |
void |
setValues(java.lang.String name,
java.lang.Object[] values)
Sets a named set of values in this model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipleModelAdapter()
public MultipleModelAdapter(Model target1)
public MultipleModelAdapter(Model target1, Model target2)
public MultipleModelAdapter(Model target1, Model target2, Model target3)
public MultipleModelAdapter(Model[] targets)
public MultipleModelAdapter(java.util.Collection targets)
Method Detail |
public java.lang.String getName()
ModelManager
may assign a name to a model based
on user request.getName
in interface Model
public void setName(java.lang.String value)
setName
in interface Model
name
- The new name of this modelpublic java.lang.Object getValue(java.lang.String name)
Model
getValue
in interface Model
com.iplanet.jato.model.Model
name
- The name of the value to returnpublic void setValue(java.lang.String name, java.lang.Object value)
Model
setValue
in interface Model
com.iplanet.jato.model.Model
name
- The name of the value to setvalue
- The value to set in this modelpublic java.lang.Object[] getValues(java.lang.String name)
Model
getValues
in interface Model
com.iplanet.jato.model.Model
name
- The name of the value set to returnpublic void setValues(java.lang.String name, java.lang.Object[] values)
Model
setValues
in interface Model
com.iplanet.jato.model.Model
name
- The name of the value set to set in the modelvalues
- The set of values to set in this modelpublic void addTargetModel(Model model)
public void removeTargetModel(Model model)
public Model[] getTargetModels()
public java.util.List getTargetModelList()
public void clearTargetModels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |