@Override public boolean isContentAware() { if (xpath != null) { return xpath.isContentAware(); } else if (source != null) { return source.isContentAware(); } return false; } }
/** * Set the given XPath as the source XPath * * @param source an XPath to be set as the source */ public void setSource(SynapseXPath source) { this.source.setXPath(source); }
/** * Get the source XPath which yields the source element for validation * * @return the XPath which yields the source element for validation */ public SynapseXPath getSource() { return source.getXPath(); }
private SynapseXPath createXPath(String expression) throws JaxenException { SynapseXPath xpath = new SynapseXPath(expression); xpath.addNamespace("m0", "http://services.samples/xsd"); xpath.addNamespace("m1", "http://services.samples/xsd2"); return xpath; }
public String getEvaluatedExpression(MessageContext synCtx) { return expression.stringValueOf(synCtx); }
/** * Get a string representation of the XPath expression for debugging purposes. */ @Override public String toString() { if (xpathString != null) { return xpathString; } else if (xpath == null) { return DEFAULT_XPATH; } else { return xpath.toString(); } } }
public static SynapseJsonPath getSynapseJsonPath(final String jsonPathExpression) throws JaxenException { return new SynapseJsonPath(jsonPathExpression); }
public void setSourceXPathString(String sourceXPathString) { this.source.setXPathString(sourceXPathString); }
/** * Set the given XPath as the source XPath * @param source an XPath to be set as the source */ public void setSource(SynapsePath source) { this.sourcePath = source; if (source instanceof SynapseXPath) { this.source.setXPath((SynapseXPath) source); } }
public SynapseXPath getSource() { return source.getXPath(); }
/** * Get a string representation of the XPath expression for debugging purposes. */ @Override public String toString() { if (xpathString != null) { return xpathString; } else if (xpath == null) { return DEFAULT_XPATH; } else { return xpath.toString(); } } }
private SynapseJsonPath createJSONPath(String expression) throws JaxenException { SynapseJsonPath xpath = new SynapseJsonPath(expression); return xpath; }
public void setSourceXPathString(String sourceXPathString) { this.source.setXPathString(sourceXPathString); }
public void setSource(SynapseXPath source) { this.source.setXPath(source); }
public SynapseXPath getTarget() { return target.getXPath(); }
public void setTarget(SynapseXPath source) { this.target.setXPath(source); }
public SynapseXPath getTarget() { return target.getXPath(); }
public void setSource(SynapseXPath source) { this.source.setXPath(source); }
public SynapseXPath getSource() { return source.getXPath(); }
public void setTarget(SynapseXPath source) { this.target.setXPath(source); }