-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Converter,icu.windea.breezeframework.core.component.GenericConverter
@ComponentParam(name = "separator", type = "String", defaultValue = ",")@ComponentParam(name = "prefix", type = "String", defaultValue = "")@ComponentParam(name = "suffix", type = "String", defaultValue = "") public class Converters.ListConverter extends AbstractConverter<List<?>> implements GenericConverter<List<?>>
组件参数说明:
separator - 从字符串转化为列表时使用的分隔符。
prefix - 从字符串转化为列表时使用的前缀。
suffix - 从字符串转化为列表时使用的后缀。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverters.ListConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Stringseparatorprivate final Stringprefixprivate final Stringsuffixprivate final Map<String, Object>componentParamsprivate final Class<List<?>>targetTypeprivate final StringcomponentId
-
Constructor Summary
Constructors Constructor Description Converters.ListConverter(Map<String, Object> componentParams)
-
Method Summary
Modifier and Type Method Description final StringgetSeparator()final StringgetPrefix()final StringgetSuffix()final Map<String, Object>getComponentParams()组件参数。组件参数默认会向下传递。Component parameters. Class<List<?>>getTargetType()StringgetComponentId()List<?>convert(Object value, Type targetType)Converters.ListConvertercomponentCopy(Map<String, Object> componentParams)-
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
convert, convertOrNull -
Methods inherited from class icu.windea.breezeframework.core.component.Converters.ListConverter
convertOrNull, equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.Converter
componentEquals, componentHashcode, componentToString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSeparator
final String getSeparator()
-
getComponentParams
final Map<String, Object> getComponentParams()
组件参数。组件参数默认会向下传递。
Component parameters. By default, component parameters will pass down.
-
getTargetType
Class<List<?>> getTargetType()
-
getComponentId
String getComponentId()
-
componentCopy
Converters.ListConverter componentCopy(Map<String, Object> componentParams)
-
-
-
-