Class MessageRefUrlParser
java.lang.Object
dev.sympho.modular_commands.utils.parse.entity.EntityRefUrlParser<EntityRef.MessageRef>
dev.sympho.modular_commands.utils.parse.entity.MessageRefUrlParser
- All Implemented Interfaces:
ParserFunction<String,,EntityRef.MessageRef> UrlParser<EntityRef.MessageRef>,BiFunction<CommandContext,String, Mono<EntityRef.MessageRef>>
A parser for message URLs.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.sympho.modular_commands.utils.parse.UrlParser
UrlParser.Choice<T extends @NonNull Object>, UrlParser.ChoiceBase<T extends @NonNull Object,P extends UrlParser<T>>, UrlParser.PostParser<I extends @NonNull Object, T extends @NonNull Object, P1 extends @NonNull UrlParser<I>, P2 extends @NonNull ParserFunction<I, T>> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.sympho.modular_commands.utils.parse.entity.EntityRefUrlParser
parse, parse, parse, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface dev.sympho.modular_commands.api.command.parameter.parse.ParserFunction
apply
-
Constructor Details
-
MessageRefUrlParser
public MessageRefUrlParser()Creates a new instance.
-
-
Method Details
-
typeName
Description copied from class:EntityRefUrlParserGets the display name for this type.- Specified by:
typeNamein classEntityRefUrlParser<EntityRef.MessageRef>- Returns:
- The name.
-
validPath
Description copied from class:EntityRefUrlParserChecks if the given path (endpoint) is valid for the entity type of this parser.- Specified by:
validPathin classEntityRefUrlParser<EntityRef.MessageRef>- Parameters:
path- The path.- Returns:
- If the path is valid for this parser.
-
parsePath
Description copied from class:EntityRefUrlParserParses the URL path.- Specified by:
parsePathin classEntityRefUrlParser<EntityRef.MessageRef>- Parameters:
path- The path.- Returns:
- The parsed entity, or
nullif the path is not valid.
-