public class DefaultISupportManager extends AbstractNameValueProcessor<ISupportParameter> implements ISupportManager
ISupportManager.AbstractNameValueProcessor.Creator<NameValue>| Constructor and Description |
|---|
DefaultISupportManager(Client.WithManagement client)
Constructs the manager.
|
| Modifier and Type | Method and Description |
|---|---|
ISupportParameter |
createParameter(String tag)
Creates a
ISupportParameter from given input. |
Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
getCreator(String tagName)
Gets the registered ISUPPORT creator for a given parameter name.
|
Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
registerParameter(String tagName,
TriFunction<Client,String,String,? extends ISupportParameter> function)
Registers a function that creates an
ISupportParameter from a
given parameter and value. |
Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
unregisterParameter(String tagName)
Removes the registered creator for a given parameter.
|
getClient, getCreatorByName, getRegistrations, registerCreator, toString, unregisterCreatorpublic DefaultISupportManager(Client.WithManagement client)
client - client for which this exists@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> getCreator(@Nonnull String tagName)
ISupportManagergetCreator in interface ISupportManagertagName - parameter@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> registerParameter(@Nonnull String tagName, @Nonnull TriFunction<Client,String,String,? extends ISupportParameter> function)
ISupportManagerISupportParameter from a
given parameter and value.registerParameter in interface ISupportManagertagName - name of the parameter to registerfunction - function that creates tags@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> unregisterParameter(@Nonnull String tagName)
ISupportManagerunregisterParameter in interface ISupportManagertagName - parameter@Nonnull public ISupportParameter createParameter(@Nonnull String tag)
ISupportManagerISupportParameter from given input.createParameter in interface ISupportManagertag - inputCopyright © 2013–2019 Kitteh. All rights reserved.