Class ConfigItemDescriptor

java.lang.Object
net.storm.api.plugins.config.ConfigItemDescriptor
All Implemented Interfaces:
ConfigObject

public class ConfigItemDescriptor extends Object implements ConfigObject
Describes a single configuration item within a Config interface.

ConfigItemDescriptor holds the metadata for a configuration item including its ConfigItem annotation, return type, and any additional annotations like Range, Alpha, or Units.

This class implements ConfigObject to participate in the configuration object hierarchy alongside sections and titles.

See Also:
  • Constructor Details

    • ConfigItemDescriptor

      public ConfigItemDescriptor()
  • Method Details

    • key

      public String key()
      Gets the configuration key name.
      Specified by:
      key in interface ConfigObject
      Returns:
      the key name from the ConfigItem annotation
    • name

      public String name()
      Gets the display name.
      Specified by:
      name in interface ConfigObject
      Returns:
      the name from the ConfigItem annotation
    • position

      public int position()
      Gets the display position.
      Specified by:
      position in interface ConfigObject
      Returns:
      the position from the ConfigItem annotation