Constructor and Description |
---|
ValueFactory() |
Modifier and Type | Method and Description |
---|---|
SynapseJsonPath |
createSynJsonPath(String key)
Create synapse jsonpath expression
|
SynapseXPath |
createSynXpath(org.apache.axiom.om.OMElement elem,
String key)
Create synapse xpath expression
{} type user input is used to create real xpath expression
|
Value |
createTextValue(org.apache.axiom.om.OMElement elem)
Create a key instance
|
Value |
createValue(String name,
org.apache.axiom.om.OMElement elem)
Create a key instance
|
boolean |
isDynamicKey(String keyValue)
Validate the given key to identify whether it is static or dynamic key
If the key is in the {} format then it is dynamic key(XPath)
Otherwise just a static key
|
public Value createValue(String name, org.apache.axiom.om.OMElement elem)
elem
- OMElementpublic Value createTextValue(org.apache.axiom.om.OMElement elem)
elem
- OMElementpublic boolean isDynamicKey(String keyValue)
keyValue
- string to validate as a keypublic SynapseXPath createSynXpath(org.apache.axiom.om.OMElement elem, String key)
elem
- the elementkey
- xpath expression with {}public SynapseJsonPath createSynJsonPath(String key)
key
- jsonpath expression eg: json-eval($.info)Copyright © 2005–2024 Apache Software Foundation. All rights reserved.