public interface HelpMap
addTopic()
HelpTopicFactory
objects to create topics
| Modifier and Type | Method | Description |
|---|---|---|
void |
addTopic(HelpTopic topic) |
Adds a topic to the server's help index.
|
void |
clear() |
Clears out the contents of the help index.
|
HelpTopic |
getHelpTopic(java.lang.String topicName) |
Returns a help topic for a given topic name.
|
java.util.Collection<HelpTopic> |
getHelpTopics() |
Returns a collection of all the registered help topics.
|
java.util.List<java.lang.String> |
getIgnoredPlugins() |
Gets the list of plugins the server administrator has chosen to exclude
from the help index.
|
void |
registerHelpTopicFactory(java.lang.Class<?> commandClass,
HelpTopicFactory<?> factory) |
Associates a
HelpTopicFactory object with given command base
class. |
HelpTopic getHelpTopic(java.lang.String topicName)
topicName - The help topic name to look up.HelpTopic object matching the topic name or null if
none can be found.java.util.Collection<HelpTopic> getHelpTopics()
void addTopic(HelpTopic topic)
topic - The new help topic to add.void clear()
void registerHelpTopicFactory(java.lang.Class<?> commandClass,
HelpTopicFactory<?> factory)
HelpTopicFactory object with given command base
class. Plugins typically call this method during onLoad(). Once
registered, the custom HelpTopicFactory will be used to create a custom
HelpTopic for all commands deriving from the
commandClass base class, or all commands deriving from PluginCommand who's executor derives from
commandClass base class.commandClass - The class for which the custom HelpTopicFactory
applies. Must derive from either Command
or CommandExecutor.factory - The HelpTopicFactory implementation to associate
with the commandClass.java.lang.IllegalArgumentException - Thrown if commandClass does
not derive from a legal base class.java.util.List<java.lang.String> getIgnoredPlugins()
Command instead of PluginCommand will need to check this collection in
their HelpTopicFactory implementations to ensure they meet the
server administrator's expectations.Copyright © 2018. All rights reserved.