Package studio.mevera.imperat.command
Interface DescriptionHolder
- All Known Subinterfaces:
AnnotatedParameter<S>,Command<S>,CommandParameter<S>,CommandUsage<S>,FlagParameter<S>,NumericParameter<S>
- All Known Implementing Classes:
AnnotationParameterDecorator,FlagCommandParameter,InputParameter,NumericParameterDecorator
public interface DescriptionHolder
Represents an entity that can have a description.
This interface provides methods to get and set a description.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidSets the description for this entity using a string.voiddescribe(Description description) Sets the description for this entity.Retrieves the current description associated with this entity.
-
Method Details
-
description
Description description()Retrieves the current description associated with this entity.- Returns:
- the current
Description.
-
describe
Sets the description for this entity.- Parameters:
description- theDescriptionto set.
-
describe
Sets the description for this entity using a string.- Parameters:
description- the string to create aDescriptionfrom and set.
-