-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Converter
@ComponentParam(name = "raw", type = "Boolean", defaultValue = "false")@ComponentParam(name = "format", type = "String", defaultValue = "yyyy-MM-dd")@ComponentParam(name = "dateFormat", type = "String", defaultValue = "yyyy-MM-dd")@ComponentParam(name = "timeFormat", type = "String", defaultValue = "HH:mm:ss")@ComponentParam(name = "dateTimeFormat", type = "String", defaultValue = "yyyy-MM-dd HH:mm:ss")@ComponentParam(name = "locale", type = "String | Locale", defaultValue = "<default>")@ComponentParam(name = "timeZone", type = "String | TimeZone", defaultValue = "<utc>") public class Converters.StringConverter extends AbstractConverter<String>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverters.StringConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Booleanrawprivate final Stringformatprivate final StringdateFormatprivate final StringtimeFormatprivate final StringdateTimeFormatprivate final Localelocaleprivate final TimeZonetimeZoneprivate final Map<String, Object>componentParamsprivate final Class<String>targetTypeprivate final StringcomponentId
-
Constructor Summary
Constructors Constructor Description Converters.StringConverter(Map<String, Object> componentParams)
-
Method Summary
Modifier and Type Method Description final BooleangetRaw()final StringgetFormat()final StringgetDateFormat()final StringgetTimeFormat()final StringgetDateTimeFormat()final LocalegetLocale()final TimeZonegetTimeZone()final Map<String, Object>getComponentParams()组件参数。组件参数默认会向下传递。Component parameters. Class<String>getTargetType()StringgetComponentId()Stringconvert(Object value)将指定的对象转化为另一个类型。如果转化失败,则抛出异常。 Converters.StringConvertercomponentCopy(Map<String, Object> componentParams)-
Methods inherited from class icu.windea.breezeframework.core.component.Converters.StringConverter
equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
convertOrNull -
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
-
getDateFormat
final String getDateFormat()
-
getTimeFormat
final String getTimeFormat()
-
getDateTimeFormat
final String getDateTimeFormat()
-
getTimeZone
final TimeZone getTimeZone()
-
getComponentParams
final Map<String, Object> getComponentParams()
组件参数。组件参数默认会向下传递。
Component parameters. By default, component parameters will pass down.
-
getTargetType
Class<String> getTargetType()
-
getComponentId
String getComponentId()
-
componentCopy
Converters.StringConverter componentCopy(Map<String, Object> componentParams)
-
-
-
-