Class PluginDataConverter
- java.lang.Object
-
- top.focess.qq.api.command.DataConverter<T>
-
- top.focess.qq.api.command.converter.NullDataConverter<Plugin>
-
- top.focess.qq.api.command.converter.PluginDataConverter
-
public class PluginDataConverter extends NullDataConverter<Plugin>
Convert the String argument to Plugin argument
-
-
Field Summary
Fields Modifier and Type Field Description static PluginDataConverterPLUGIN_DATA_CONVERTERConvert the String argument to Plugin argument-
Fields inherited from class top.focess.qq.api.command.DataConverter
BOOLEAN_DATA_CONVERTER, DEFAULT_DATA_CONVERTER, DOUBLE_DATA_CONVERTER, DOUBLE_PREDICATE, INTEGER_DATA_CONVERTER, INTEGER_PREDICATE, LONG_DATA_CONVERTER, LONG_PREDICATE
-
-
Constructor Summary
Constructors Constructor Description PluginDataConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconnect(DataCollection dataCollection, Plugin arg)Used to put data into the dataCollectionPluginconvert(String arg)Convert String argument to target argumentprotected Class<Plugin>getTargetClass()-
Methods inherited from class top.focess.qq.api.command.converter.NullDataConverter
accept
-
-
-
-
Field Detail
-
PLUGIN_DATA_CONVERTER
public static final PluginDataConverter PLUGIN_DATA_CONVERTER
Convert the String argument to Plugin argument
-
-
Method Detail
-
convert
public Plugin convert(String arg)
Description copied from class:DataConverterConvert String argument to target argument- Specified by:
convertin classDataConverter<Plugin>- Parameters:
arg- the target argument in String- Returns:
- the target argument
-
connect
protected void connect(DataCollection dataCollection, Plugin arg)
Description copied from class:DataConverterUsed to put data into the dataCollection- Specified by:
connectin classDataConverter<Plugin>- Parameters:
dataCollection- where stores the dataarg- the target argument- See Also:
DataCollection.write(Class, Object)
-
getTargetClass
protected Class<Plugin> getTargetClass()
- Specified by:
getTargetClassin classDataConverter<Plugin>
-
-