Class ValueType

  • All Implemented Interfaces:
    PluginType

    public class ValueType
    extends Object
    implements PluginType
    A value type to be used to constrain property values.
    • 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 the ResourceBundle 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 the ResourceBundle 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 interface PluginType
        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 interface PluginType
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object