Package org.apache.unomi.api
Class EventProperty
java.lang.Object
org.apache.unomi.api.EventProperty
- All Implemented Interfaces:
Serializable
An event property.
- Author:
- Sergiy Shyrkov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes an instance of this class.EventProperty(String id) Initializes an instance of an event property with the string value type.EventProperty(String id, String type) Initializes an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Retrieves the identifier for this EventProperty.Retrieves the type.voidSets the identifier.voidsetValueType(String type) Sets the value type.
-
Constructor Details
-
EventProperty
public EventProperty()Initializes an instance of this class. -
EventProperty
Initializes an instance of an event property with the string value type.- Parameters:
id- the event property id
-
EventProperty
Initializes an instance of this class.- Parameters:
id- the event property idtype- the type of the value for this property
-
-
Method Details
-
getId
Retrieves the identifier for this EventProperty.- Returns:
- the identifier for this EventProperty
-
setId
Sets the identifier.- Parameters:
id- the id
-
getValueType
Retrieves the type.- Returns:
- the value type
-
setValueType
Sets the value type.- Parameters:
type- the type
-