public static OMElement serializeTextXPath(SynapseXPath xpath, String expression, OMElement elem, String attribName) { if (xpath != null && expression != null) { elem.setText(expression); serializeNamespaces(elem, xpath); } else { handleException("Couldn't find the xpath in the SynapseXPath"); } return elem; }
public static OMElement serializeXPath(SynapseXPath xpath, String expression, OMElement elem, String attribName) { OMNamespace nullNS = elem.getOMFactory() .createOMNamespace(XMLConfigConstants.NULL_NAMESPACE, ""); if (xpath != null && expression != null) { elem.addAttribute(elem.getOMFactory().createOMAttribute( attribName, nullNS, expression)); serializeNamespaces(elem, xpath); } else { handleException("Couldn't find the xpath in the SynapseXPath"); } return elem; }
public static OMElement serializeXPath(SynapseXPath xpath, String expression, OMElement elem, String attribName) { OMNamespace nullNS = elem.getOMFactory() .createOMNamespace(XMLConfigConstants.NULL_NAMESPACE, ""); if (xpath != null && expression != null) { elem.addAttribute(elem.getOMFactory().createOMAttribute( attribName, nullNS, expression)); serializeNamespaces(elem, xpath); } else { handleException("Couldn't find the xpath in the SynapseXPath"); } return elem; }
public static OMElement serializeXPath(SynapseXPath xpath, OMElement elem, String attribName) { OMNamespace nullNS = elem.getOMFactory() .createOMNamespace(XMLConfigConstants.NULL_NAMESPACE, ""); if (xpath != null) { elem.addAttribute(elem.getOMFactory().createOMAttribute( attribName, nullNS, xpath.toString())); serializeNamespaces(elem, xpath); } else { handleException("Couldn't find the xpath in the SynapseXPath"); } return elem; }
public static OMElement serializeXPath(SynapseXPath xpath, OMElement elem, String attribName) { OMNamespace nullNS = elem.getOMFactory() .createOMNamespace(XMLConfigConstants.NULL_NAMESPACE, ""); if (xpath != null) { elem.addAttribute(elem.getOMFactory().createOMAttribute( attribName, nullNS, xpath.toString())); serializeNamespaces(elem, xpath); } else { handleException("Couldn't find the xpath in the SynapseXPath"); } return elem; }