- All Superinterfaces:
PropertyProvider<Plugin,String, net.dv8tion.jda.api.entities.Guild, PluginPropertyMapping>
public interface PluginPropertyProvider
extends PropertyProvider<Plugin,String,net.dv8tion.jda.api.entities.Guild,PluginPropertyMapping>
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(PropertyInfo info) Get aPluginPropertylinked to the specifiedPropertyInfo.getProperty(Plugin plugin, String key) getPropertyByID(int id) Get aPluginPropertybased on the specified property informationid.upsertProperty(Plugin plugin, String key, boolean modifiable, PropertyType type) Register aPropertyInfoif it does not exist inside the configuration and return a newPluginPropertycreated with the property information.Methods inherited from interface net.foxgenesis.property.PropertyProvider
getPropertyList, propertyExists, registerProperty
-
Method Details
-
upsertProperty
Register aPropertyInfoif it does not exist inside the configuration and return a newPluginPropertycreated with the property information.- Specified by:
upsertPropertyin interfacePropertyProvider<Plugin,String, net.dv8tion.jda.api.entities.Guild, PluginPropertyMapping> - Parameters:
plugin- - property ownerkey- - property namemodifiable- - if can be modified by the end usertype- - property storage type- Returns:
- Returns a
PluginPropertywith the specifiedPropertyInfo
-
getPropertyByID
Get aPluginPropertybased on the specified property informationid.- Specified by:
getPropertyByIDin interfacePropertyProvider<Plugin,String, net.dv8tion.jda.api.entities.Guild, PluginPropertyMapping> - Parameters:
id- -PropertyInfoid- Returns:
- Returns a
PluginPropertyusing the specifiedPropertyInfoid
-
getProperty
- Specified by:
getPropertyin interfacePropertyProvider<Plugin,String, net.dv8tion.jda.api.entities.Guild, PluginPropertyMapping> - Parameters:
plugin- - property ownerkey- - property name- Returns:
- Returns a
PluginPropertylinked to thePropertyInfocategoryandname
-
getProperty
Get aPluginPropertylinked to the specifiedPropertyInfo.- Specified by:
getPropertyin interfacePropertyProvider<Plugin,String, net.dv8tion.jda.api.entities.Guild, PluginPropertyMapping> - Parameters:
info- - property information- Returns:
- Returns a
PluginPropertywith the specifiedinfo
-