Class Property


  • public class Property
    extends Object
    Property of a Stream Definition
    • Constructor Detail

      • Property

        public Property()
    • Method Detail

      • getKey

        public String getKey()
      • setKey

        public void setKey​(String key)
      • getValue

        public String getValue()
      • setValue

        public void setValue​(String value)
      • getDefaultValue

        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • getExpression

        public org.apache.synapse.util.xpath.SynapseXPath getExpression()
      • setExpression

        public void setExpression​(org.apache.synapse.util.xpath.SynapseXPath expression)
      • getType

        public String getType()
      • getDatabridgeAttributeType

        public org.wso2.carbon.databridge.commons.AttributeType getDatabridgeAttributeType()
                                                                                    throws org.apache.synapse.SynapseException
        Returns the data bridge attribute type of this object
        Returns:
        Data bridge attribute type of this object
        Throws:
        org.apache.synapse.SynapseException
      • setType

        public void setType​(String type)
      • extractPropertyValue

        public Object extractPropertyValue​(org.apache.synapse.MessageContext messageContext)
                                    throws org.apache.synapse.SynapseException
        Extracts the property value from message context based on either value of expression attribute
        Parameters:
        messageContext - Message context from which the value should be extracted
        Returns:
        Extracted property value
        Throws:
        org.apache.synapse.SynapseException