org.apache.synapse.config.xml
Class ValueFactory

java.lang.Object
  extended by org.apache.synapse.config.xml.ValueFactory

public class ValueFactory
extends Object

Factory for Value instances.


Constructor Summary
ValueFactory()
           
 
Method Summary
 SynapseXPath createSynXpath(OMElement elem, String key)
          Create synapse xpath expression {} type user input is used to create real xpath expression
 Value createValue(String name, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueFactory

public ValueFactory()
Method Detail

createValue

public Value createValue(String name,
                         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 SynapseXPath createSynXpath(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


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.