Class Property
- java.lang.Object
-
- org.wso2.carbon.mediator.publishevent.Property
-
public class Property extends Object
Property of a Stream Definition
-
-
Field Summary
Fields Modifier and Type Field Description static String
DATA_TYPE_BOOLEAN
static String
DATA_TYPE_DOUBLE
static String
DATA_TYPE_FLOAT
static String
DATA_TYPE_INTEGER
static String
DATA_TYPE_LONG
static String
DATA_TYPE_STRING
-
Constructor Summary
Constructors Constructor Description Property()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
extractPropertyValue(org.apache.synapse.MessageContext messageContext)
Extracts the property value from message context based on either value of expression attributeorg.wso2.carbon.databridge.commons.AttributeType
getDatabridgeAttributeType()
Returns the data bridge attribute type of this objectString
getDefaultValue()
org.apache.synapse.util.xpath.SynapseXPath
getExpression()
String
getKey()
String
getType()
String
getValue()
void
setDefaultValue(String defaultValue)
void
setExpression(org.apache.synapse.util.xpath.SynapseXPath expression)
void
setKey(String key)
void
setType(String type)
void
setValue(String value)
-
-
-
Field Detail
-
DATA_TYPE_STRING
public static final String DATA_TYPE_STRING
- See Also:
- Constant Field Values
-
DATA_TYPE_INTEGER
public static final String DATA_TYPE_INTEGER
- See Also:
- Constant Field Values
-
DATA_TYPE_FLOAT
public static final String DATA_TYPE_FLOAT
- See Also:
- Constant Field Values
-
DATA_TYPE_DOUBLE
public static final String DATA_TYPE_DOUBLE
- See Also:
- Constant Field Values
-
DATA_TYPE_BOOLEAN
public static final String DATA_TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
DATA_TYPE_LONG
public static final String DATA_TYPE_LONG
- See Also:
- Constant Field Values
-
-
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
-
-