Class ExactArgument
java.lang.Object
org.core.command.argument.arguments.operation.ExactArgument
- All Implemented Interfaces:
CommandArgument<String>
,ParseCommandArgument<String>
,SuggestCommandArgument<String>
-
Constructor Summary
ConstructorDescriptionExactArgument(String id)
ExactArgument(String id, boolean caseSens, String... lookup)
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the ID of the command argument.String[]
getUsage()
Gets the usage of the argumentparse(CommandContext context, CommandArgumentContext<String> argument)
suggest(CommandContext context, CommandArgumentContext<String> argument)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.core.command.argument.SuggestCommandArgument
errorMessage
-
Constructor Details
-
ExactArgument
-
ExactArgument
-
-
Method Details
-
getLookup
-
getId
Description copied from interface:CommandArgument
Gets the ID of the command argument. A command argument id needs to be unique within the command, the ID is what separates the arguments. There isn't a standard message structure, however by default the id will be what shows in the usage- Specified by:
getId
in interfaceCommandArgument<String>
- Returns:
- a string Id
-
parse
public CommandArgumentResult<String> parse(CommandContext context, CommandArgumentContext<String> argument) throws IOException- Specified by:
parse
in interfaceParseCommandArgument<String>
- Throws:
IOException
-
suggest
- Specified by:
suggest
in interfaceSuggestCommandArgument<String>
-
getUsage
Description copied from interface:CommandArgument
Gets the usage of the argument- Specified by:
getUsage
in interfaceCommandArgument<String>
- Returns:
- a string version of the usage of the argument
-