public class FunctionEvent extends Event
FUNCTION_UID - the event source function unique identifier.PROPERTY_NAME - the property name.PROPERTY_VALUE - the property value. The property value type
must be a subclass of FunctionData.| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_CLASS
Represents the event class.
|
static String |
EVENT_PACKAGE
Represents the event package.
|
static String |
FUNCTION_UID
Represents an event property key for function UID.
|
static String |
PROPERTY_NAME
Represents an event property key for the function property name.
|
static String |
PROPERTY_VALUE
Represents an event property key for the function property value.
|
static String |
TOPIC_PROPERTY_CHANGED
Represents the event topic for the function property changed.
|
| Constructor and Description |
|---|
FunctionEvent(String topic,
Dictionary<String,?> properties)
Constructs a new event with the specified topic and properties.
|
FunctionEvent(String topic,
Map<String,?> properties)
Constructs a new event with the specified topic and properties.
|
FunctionEvent(String topic,
String functionUID,
String propName,
FunctionData propValue)
Constructs a new event with the specified topic, function UID, property
name and property value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFunctionPropertyName()
Returns the property name.
|
FunctionData |
getFunctionPropertyValue()
Returns the property value.
|
String |
getFunctionUID()
Returns the property value change source function identifier.
|
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toStringpublic static final String EVENT_PACKAGE
public static final String EVENT_CLASS
public static final String TOPIC_PROPERTY_CHANGED
public static final String FUNCTION_UID
java.lang.String. The value represents the property value
change source function identifier.public static final String PROPERTY_NAME
java.lang.String. The value represents the
property name.public static final String PROPERTY_VALUE
FunctionData. The value
represents the property value.public FunctionEvent(String topic, Dictionary<String,?> properties)
topic - The event topic.properties - The event properties.public FunctionEvent(String topic, Map<String,?> properties)
topic - The event topic.properties - The event properties.public FunctionEvent(String topic, String functionUID, String propName, FunctionData propValue)
topic - The event topic.functionUID - The event source function UID.propName - The event source property name.propValue - The event source property value.public String getFunctionUID()
FUNCTION_UID property.public String getFunctionPropertyName()
PROPERTY_NAME.public FunctionData getFunctionPropertyValue()
PROPERTY_VALUE.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0