Class CommentMediator
- java.lang.Object
-
- org.wso2.carbon.mediator.service.ui.AbstractMediator
-
- org.wso2.carbon.mediator.service.ui.AbstractListMediator
-
- org.wso2.carbon.mediator.service.builtin.CommentMediator
-
- All Implemented Interfaces:
ListMediator
,Mediator
public class CommentMediator extends AbstractListMediator
Comment Mediator handles comment nodes in Synapse Configurations
-
-
Field Summary
-
Fields inherited from class org.wso2.carbon.mediator.service.ui.AbstractListMediator
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 CommentMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(org.apache.axiom.om.OMComment elem)
Build the mediator with given OMComment nodevoid
build(org.apache.axiom.om.OMElement elem)
Build the mediator with given OMElement nodeString
getCommentText()
Returns the comment text valueString
getTagLocalName()
Returns TagLocalName of the mediatororg.apache.axiom.om.OMElement
serialize(org.apache.axiom.om.OMElement parent)
Serialize Mediator into the repective OMElement structire and add to the provided parentvoid
setCommentText(String commentText)
Set the comment text value-
Methods inherited from class org.wso2.carbon.mediator.service.ui.AbstractListMediator
addChild, addChildren, getChild, getList, removeChild, removeChild, serializeChildren
-
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
disableStatistics, enableStatistics, getTraceState, isAuditConfigurable, isStatisticsEnable, setTraceState
-
-
-
-
Method Detail
-
serialize
public org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent)
Serialize Mediator into the repective OMElement structire and add to the provided parent- Parameters:
parent
- if present the serialize node will be added to the parent- Returns:
- Serialized OMElement structure
-
build
public void build(org.apache.axiom.om.OMElement elem)
Build the mediator with given OMElement node- Parameters:
elem
- synapse mediator configuration
-
build
public void build(org.apache.axiom.om.OMComment elem)
Build the mediator with given OMComment node- Parameters:
elem
- synapse mediator configuration
-
getTagLocalName
public String getTagLocalName()
Returns TagLocalName of the mediator- Returns:
-
getCommentText
public String getCommentText()
Returns the comment text value- Returns:
- String value of comment text
-
setCommentText
public void setCommentText(String commentText)
Set the comment text value- Parameters:
commentText
- value
-
-