Class ValueFactory
- java.lang.Object
-
- org.wso2.carbon.mediator.calltemplate.util.ValueFactory
-
public class ValueFactory extends Object
Factory forValue
instances.
-
-
Constructor Summary
Constructors Constructor Description ValueFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.synapse.util.xpath.SynapseXPath
createSynXpath(org.apache.axiom.om.OMElement elem, String key)
Create synapse xpath expression {} type user input is used to create real xpath expressionValue
createValue(String name, org.apache.axiom.om.OMElement elem)
Create a key instanceboolean
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
-
-
-
Method Detail
-
createValue
public Value createValue(String name, org.apache.axiom.om.OMElement elem)
Create a key instance- Parameters:
elem
- OMElement- Returns:
- Key
-
isDynamicKey
public 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- Parameters:
keyValue
- string to validate as a key- Returns:
- isDynamicKey representing key type
-
createSynXpath
public org.apache.synapse.util.xpath.SynapseXPath createSynXpath(org.apache.axiom.om.OMElement elem, String key)
Create synapse xpath expression {} type user input is used to create real xpath expression- Parameters:
elem
- the elementkey
- xpath expression with {}- Returns:
- SynapseXpath
-
-