public class CommandGroupMetadata extends Object
Constructor and Description |
---|
CommandGroupMetadata(String name,
String description,
boolean hidden,
Iterable<OptionMetadata> options,
Iterable<CommandGroupMetadata> subGroups,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> commands) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(CommandMetadata command)
Adds a command to the group
|
void |
addSubGroup(CommandGroupMetadata subGroup)
Adds a sub-group to the group
|
List<CommandMetadata> |
getCommands()
Gets the commands for the group
|
CommandMetadata |
getDefaultCommand()
Gets the default command for the group
|
String |
getDescription()
Gets the description for the group
|
String |
getName()
Gets the name of the group
|
List<OptionMetadata> |
getOptions()
Gets the group options
|
CommandGroupMetadata |
getParent()
Gets the parent group which may be null
|
List<CommandGroupMetadata> |
getSubGroups()
Gets the sub-groups of this group
|
boolean |
isHidden()
Gets whether the group is hidden
|
void |
setParent(CommandGroupMetadata parent)
Sets the parent for a group
|
String |
toString() |
public CommandGroupMetadata(String name, String description, boolean hidden, Iterable<OptionMetadata> options, Iterable<CommandGroupMetadata> subGroups, CommandMetadata defaultCommand, Iterable<CommandMetadata> commands)
public String getName()
public String getDescription()
public boolean isHidden()
public List<OptionMetadata> getOptions()
public CommandMetadata getDefaultCommand()
public List<CommandMetadata> getCommands()
public void addCommand(CommandMetadata command)
command
- Commandpublic List<CommandGroupMetadata> getSubGroups()
public void addSubGroup(CommandGroupMetadata subGroup)
subGroup
- Sub-grouppublic void setParent(CommandGroupMetadata parent)
parent
- Parent grouppublic CommandGroupMetadata getParent()
Copyright © 2012–2017. All rights reserved.