Class ConfigSectionDescriptor

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

public class ConfigSectionDescriptor extends Object implements ConfigObject
Describes a configuration section defined in a Config interface.

ConfigSectionDescriptor holds the metadata for a section including its key and the ConfigSection annotation. Sections group related configuration items in a collapsible UI element.

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

See Also:
  • Constructor Details

    • ConfigSectionDescriptor

      public ConfigSectionDescriptor()
  • Method Details

    • key

      public String key()
      Gets the section key.
      Specified by:
      key in interface ConfigObject
      Returns:
      the unique section identifier
    • name

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

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