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, unregisterCreator
public DefaultISupportManager(Client.WithManagement client)
client
- client for which this exists@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> getCreator(@Nonnull String tagName)
ISupportManager
getCreator
in interface ISupportManager
tagName
- parameter@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> registerParameter(@Nonnull String tagName, @Nonnull TriFunction<Client,String,String,? extends ISupportParameter> function)
ISupportManager
ISupportParameter
from a
given parameter and value.registerParameter
in interface ISupportManager
tagName
- name of the parameter to registerfunction
- function that creates tags@Nonnull public Optional<TriFunction<Client,String,String,? extends ISupportParameter>> unregisterParameter(@Nonnull String tagName)
ISupportManager
unregisterParameter
in interface ISupportManager
tagName
- parameter@Nonnull public ISupportParameter createParameter(@Nonnull String tag)
ISupportManager
ISupportParameter
from given input.createParameter
in interface ISupportManager
tag
- inputCopyright © 2013–2019 Kitteh. All rights reserved.