Package org.apache.unomi.api
Class ValueType
- java.lang.Object
-
- org.apache.unomi.api.ValueType
-
- All Implemented Interfaces:
PluginType
public class ValueType extends Object implements PluginType
A value type to be used to constrain property values.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescriptionKey()
Retrieves theResourceBundle
key used to localize this ValueType's description.String
getId()
Retrieves this ValueType's identifier.String
getNameKey()
Retrieves theResourceBundle
key used to localize this ValueType's name.long
getPluginId()
Retrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.Set<String>
getTags()
Retrieves the tags used by this ValueType.int
hashCode()
void
setDescriptionKey(String descriptionKey)
Sets the description key.void
setId(String id)
Sets this ValueType's identifier.void
setNameKey(String nameKey)
Sets the name key.void
setPluginId(long pluginId)
Associates this plugin with its associated OSGi bundle identifier.void
setTags(Set<String> tags)
Sets the tags used by this ValueType.
-
-
-
Constructor Detail
-
ValueType
public ValueType()
Instantiates a new Value type.
-
ValueType
public ValueType(String id)
Instantiates a new Value type with the specified identifier.- Parameters:
id
- the identifier
-
-
Method Detail
-
getId
public String getId()
Retrieves this ValueType's identifier.- Returns:
- this ValueType's identifier
-
setId
public void setId(String id)
Sets this ValueType's identifier.- Parameters:
id
- this ValueType's identifier
-
getNameKey
public String getNameKey()
Retrieves theResourceBundle
key used to localize this ValueType's name.- Returns:
- the
ResourceBundle
key used to localize this ValueType's name
-
setNameKey
public void setNameKey(String nameKey)
Sets the name key.- Parameters:
nameKey
- the name key
-
getDescriptionKey
public String getDescriptionKey()
Retrieves theResourceBundle
key used to localize this ValueType's description.- Returns:
- the
ResourceBundle
key used to localize this ValueType's name
-
setDescriptionKey
public void setDescriptionKey(String descriptionKey)
Sets the description key.- Parameters:
descriptionKey
- the description key
-
getPluginId
public long getPluginId()
Description copied from interface:PluginType
Retrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.- Specified by:
getPluginId
in interfacePluginType
- Returns:
- the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin
-
setPluginId
public void setPluginId(long pluginId)
Description copied from interface:PluginType
Associates this plugin with its associated OSGi bundle identifier.- Specified by:
setPluginId
in interfacePluginType
- Parameters:
pluginId
- the OSGi bundle identifier associated with this plugin
-
getTags
public Set<String> getTags()
Retrieves the tags used by this ValueType.- Returns:
- the tags used by this ValueType
-
setTags
public void setTags(Set<String> tags)
Sets the tags used by this ValueType.- Parameters:
tags
- the tags used by this ValueType
-
-