Interface ListMediator
-
- All Superinterfaces:
Mediator
- All Known Implementing Classes:
AbstractListMediator
,CommentMediator
,SequenceMediator
,UILessMediator
public interface ListMediator extends Mediator
Defines a mediator with child mediators within its configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChild(Mediator mediator)
Add the child to this mediatorMediator
getChild(int pos)
Get the child from the positionList<Mediator>
getList()
Get the child list of mediatorsMediator
removeChild(int pos)
Remove a child from this positionboolean
removeChild(Mediator mediator)
Remove this child-
Methods inherited from interface org.wso2.carbon.mediator.service.ui.Mediator
build, disableStatistics, enableStatistics, getTagLocalName, getTraceState, isAuditConfigurable, isStatisticsEnable, serialize, setTraceState
-
-
-
-
Method Detail
-
getChild
Mediator getChild(int pos)
Get the child from the position- Parameters:
pos
- position of the child- Returns:
- mediator of this position. If the position invalid null will be returned
-
removeChild
Mediator removeChild(int pos)
Remove a child from this position- Parameters:
pos
- position of the child- Returns:
- mediator that is removed
-
removeChild
boolean removeChild(Mediator mediator)
Remove this child- Parameters:
mediator
- mediator to be removed- Returns:
- true if the remove successful
-
addChild
void addChild(Mediator mediator)
Add the child to this mediator- Parameters:
mediator
- child mediator to be added
-
-