Class ValueFactory


  • public class ValueFactory
    extends Object
    Factory for Value instances.
    • Constructor Detail

      • ValueFactory

        public ValueFactory()
    • 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 element
        key - xpath expression with {}
        Returns:
        SynapseXpath