public static class ImmutableDescription.Builder extends Object
ImmutableDescription.
By default, the list of parameters and permissions will be empty lists.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableDescription |
build()
Build an instance of the description.
|
String |
getHelp()
Get the help text.
|
List<Parameter> |
getParameters()
Get the list of parameters.
|
List<String> |
getPermissions()
Get a list of permissions.
|
String |
getShortDescription()
Get the short description.
|
String |
getUsageOverride()
Get the usage override string.
|
ImmutableDescription.Builder |
setHelp(String help)
Set the help text.
|
ImmutableDescription.Builder |
setParameters(List<Parameter> parameters)
Set the list of parameters.
|
ImmutableDescription.Builder |
setPermissions(List<String> permissions)
Set the list of permissions.
|
ImmutableDescription.Builder |
setShortDescription(String shortDescription)
Set the short description.
|
ImmutableDescription.Builder |
setUsageOverride(String usageOverride)
Set the usage override string.
|
public List<Parameter> getParameters()
public ImmutableDescription.Builder setParameters(List<Parameter> parameters)
parameters - The list of parameterspublic List<String> getPermissions()
public ImmutableDescription.Builder setPermissions(List<String> permissions)
permissions - The list of permissions@Nullable public String getShortDescription()
public ImmutableDescription.Builder setShortDescription(@Nullable String shortDescription)
shortDescription - The short description.public ImmutableDescription.Builder setHelp(@Nullable String help)
help - The help text@Nullable public String getUsageOverride()
If null, then usage information will be generated automatically.
public ImmutableDescription.Builder setUsageOverride(@Nullable String usageOverride)
If null, then usage information will be generated automatically.
usageOverride - The usage overridepublic ImmutableDescription build()
Copyright © 2015. All Rights Reserved.