Class AbstractListMediator
- java.lang.Object
-
- org.wso2.carbon.mediator.service.ui.AbstractMediator
-
- org.wso2.carbon.mediator.service.ui.AbstractListMediator
-
- All Implemented Interfaces:
ListMediator
,Mediator
- Direct Known Subclasses:
CommentMediator
,SequenceMediator
,UILessMediator
public abstract class AbstractListMediator extends AbstractMediator implements ListMediator
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Mediator>
mediators
-
Fields inherited from class org.wso2.carbon.mediator.service.ui.AbstractMediator
ATT_EXPRN, ATT_KEY, ATT_NAME, ATT_ONERROR, ATT_REGEX, ATT_SEQUENCE, ATT_SOURCE, ATT_STATS, ATT_TARGET, ATT_VALUE, ATT_XPATH, fac, FEATURE_Q, nullNS, PROP_Q, synNS, TARGET_Q
-
-
Constructor Summary
Constructors Constructor Description AbstractListMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(Mediator mediator)
Add the child to this mediatorprotected void
addChildren(org.apache.axiom.om.OMElement el, ListMediator m)
Mediator
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 childprotected void
serializeChildren(org.apache.axiom.om.OMElement parent, List<Mediator> list)
-
Methods inherited from class org.wso2.carbon.mediator.service.ui.AbstractMediator
collectNameValuePairs, disableStatistics, enableStatistics, getMediatorProperties, getMediatorProperties, getTraceState, isAuditConfigurable, isStatisticsEnable, processAuditStatus, saveTracingState, serializeMediatorProperties, serializeNamespaces, setAuditConfigurable, setTraceState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wso2.carbon.mediator.service.ui.Mediator
build, disableStatistics, enableStatistics, getTagLocalName, getTraceState, isAuditConfigurable, isStatisticsEnable, serialize, setTraceState
-
-
-
-
Method Detail
-
getList
public List<Mediator> getList()
Description copied from interface:ListMediator
Get the child list of mediators- Specified by:
getList
in interfaceListMediator
- Returns:
- list of child mediators
-
getChild
public Mediator getChild(int pos)
Description copied from interface:ListMediator
Get the child from the position- Specified by:
getChild
in interfaceListMediator
- Parameters:
pos
- position of the child- Returns:
- mediator of this position. If the position invalid null will be returned
-
removeChild
public Mediator removeChild(int pos)
Description copied from interface:ListMediator
Remove a child from this position- Specified by:
removeChild
in interfaceListMediator
- Parameters:
pos
- position of the child- Returns:
- mediator that is removed
-
removeChild
public boolean removeChild(Mediator mediator)
Description copied from interface:ListMediator
Remove this child- Specified by:
removeChild
in interfaceListMediator
- Parameters:
mediator
- mediator to be removed- Returns:
- true if the remove successful
-
addChild
public void addChild(Mediator mediator)
Description copied from interface:ListMediator
Add the child to this mediator- Specified by:
addChild
in interfaceListMediator
- Parameters:
mediator
- child mediator to be added
-
serializeChildren
protected void serializeChildren(org.apache.axiom.om.OMElement parent, List<Mediator> list)
-
addChildren
protected void addChildren(org.apache.axiom.om.OMElement el, ListMediator m)
-
-