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 |
---|---|
@NonNull ISupportParameter |
createParameter(@NonNull String tag)
Creates a
ISupportParameter from given input. |
@NonNull Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
getCreator(@NonNull String tagName)
Gets the registered ISUPPORT creator for a given parameter name.
|
@NonNull Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
registerParameter(@NonNull String tagName,
@NonNull TriFunction<Client,String,String,? extends ISupportParameter> function)
Registers a function that creates an
ISupportParameter from a
given parameter and value. |
@NonNull Optional<TriFunction<Client,String,String,? extends ISupportParameter>> |
unregisterParameter(@NonNull 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 existspublic @NonNull Optional<TriFunction<Client,String,String,? extends ISupportParameter>> getCreator(@NonNull String tagName)
ISupportManager
getCreator
in interface ISupportManager
tagName
- parameterpublic @NonNull 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 tagspublic @NonNull Optional<TriFunction<Client,String,String,? extends ISupportParameter>> unregisterParameter(@NonNull String tagName)
ISupportManager
unregisterParameter
in interface ISupportManager
tagName
- parameterpublic @NonNull ISupportParameter createParameter(@NonNull String tag)
ISupportManager
ISupportParameter
from given input.createParameter
in interface ISupportManager
tag
- inputCopyright © 2013–2021 Kitteh. All rights reserved.