-
- 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.SequenceConverter extends AbstractConverter<Sequence<?>> implements GenericConverter<Sequence<?>>
组件参数说明:
separator - 从字符串转化为序列时使用的分隔符。
prefix - 从字符串转化为序列时使用的前缀。
suffix - 从字符串转化为序列时使用的后缀。
delegate - 委托的转化器(列表转化器/集转化器)。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverters.SequenceConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, Object>componentParamsprivate final Class<Sequence<?>>targetTypeprivate final StringcomponentId
-
Constructor Summary
Constructors Constructor Description Converters.SequenceConverter(Map<String, Object> componentParams)
-
Method Summary
Modifier and Type Method Description final Map<String, Object>getComponentParams()组件参数。组件参数默认会向下传递。Component parameters. Class<Sequence<?>>getTargetType()StringgetComponentId()Sequence<?>convert(Object value, Type targetType)Sequence<?>convertOrNull(Object value, Type targetType)Converters.SequenceConvertercomponentCopy(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.SequenceConverter
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
-
getComponentParams
final Map<String, Object> getComponentParams()
组件参数。组件参数默认会向下传递。
Component parameters. By default, component parameters will pass down.
-
getTargetType
Class<Sequence<?>> getTargetType()
-
getComponentId
String getComponentId()
-
convertOrNull
Sequence<?> convertOrNull(Object value, Type targetType)
-
componentCopy
Converters.SequenceConverter componentCopy(Map<String, Object> componentParams)
-
-
-
-