Package org.springframework.beans.propertyeditors
@NonNullApi
@NonNullFields
package org.springframework.beans.propertyeditors
Properties editors used to convert from String values to object
types such as java.util.Properties.
Some of these editors are registered automatically by BeanWrapperImpl. "CustomXxxEditor" classes are intended for manual registration in specific binding processes, as they are localized or the like.
-
ClassDescriptionEditor for byte arrays.Editor for char arrays.Editor for
java.nio.charset.Charset
, translating charset String representations into Charset objects and back.Property editor for an array ofClasses
, to enable the direct population of aClass[]
property without having to use aString
class name property as bridge.Property editor forjava.lang.Class
, to enable the direct population of aClass
property without recourse to having to use a String class name property as bridge.Editor forjava.util.Currency
, translating currency codes into Currency objects.Property editor for Boolean/boolean properties.Property editor for Collections, converting any source Collection to a given target Collection type.Property editor forjava.util.Date
, supporting a customjava.text.DateFormat
.Property editor for Maps, converting any source Map to a given target Map type.Property editor for any Number subclass such as Short, Integer, Long, BigInteger, Float, Double, BigDecimal.Editor forjava.io.File
, to directly populate a File property from a Spring resource location.Editor fororg.xml.sax.InputSource
, converting from a Spring resource location String to a SAX InputSource object.One-way PropertyEditor which can convert from a text String to ajava.io.InputStream
, interpreting the given String as a Spring resource location (e.g.Editor forjava.util.Locale
, to directly populate a Locale property.Editor forjava.nio.file.Path
, to directly populate a Path property instead of using a String property as bridge.Editor forjava.util.regex.Pattern
, to directly populate a Pattern property.CustomPropertyEditor
forProperties
objects.One-way PropertyEditor which can convert from a text String to ajava.io.Reader
, interpreting the given String as a Spring resource location (e.g.PropertyEditor
implementation for standard JDKResourceBundles
.CustomPropertyEditor
for String arrays.Property editor that trims Strings.Editor forjava.util.TimeZone
, translating timezone IDs intoTimeZone
objects.Editor forjava.net.URI
, to directly populate a URI property instead of using a String property as bridge.Editor forjava.net.URL
, to directly populate a URL property instead of using a String property as bridge.Editor forjava.util.UUID
, translating UUID String representations into UUID objects and back.Editor forjava.time.ZoneId
, translating time zone Strings intoZoneId
objects.