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.
Class Summary Class Description ByteArrayPropertyEditor Editor for byte arrays.CharacterEditor CharArrayPropertyEditor Editor for char arrays.CharsetEditor Editor forjava.nio.charset.Charset
, translating charset String representations into Charset objects and back.ClassArrayEditor Property editor for an array ofClasses
, to enable the direct population of aClass[]
property without having to use aString
class name property as bridge.ClassEditor 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.CurrencyEditor Editor forjava.util.Currency
, translating currency codes into Currency objects.CustomBooleanEditor Property editor for Boolean/boolean properties.CustomCollectionEditor Property editor for Collections, converting any source Collection to a given target Collection type.CustomDateEditor Property editor forjava.util.Date
, supporting a customjava.text.DateFormat
.CustomMapEditor Property editor for Maps, converting any source Map to a given target Map type.CustomNumberEditor Property editor for any Number subclass such as Short, Integer, Long, BigInteger, Float, Double, BigDecimal.FileEditor Editor forjava.io.File
, to directly populate a File property from a Spring resource location.InputSourceEditor Editor fororg.xml.sax.InputSource
, converting from a Spring resource location String to a SAX InputSource object.InputStreamEditor 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.LocaleEditor Editor forjava.util.Locale
, to directly populate a Locale property.PathEditor Editor forjava.nio.file.Path
, to directly populate a Path property instead of using a String property as bridge.PatternEditor Editor forjava.util.regex.Pattern
, to directly populate a Pattern property.PropertiesEditor CustomPropertyEditor
forProperties
objects.ReaderEditor 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.ResourceBundleEditor PropertyEditor
implementation for standard JDKResourceBundles
.StringArrayPropertyEditor CustomPropertyEditor
for String arrays.StringTrimmerEditor Property editor that trims Strings.TimeZoneEditor Editor forjava.util.TimeZone
, translating timezone IDs intoTimeZone
objects.URIEditor Editor forjava.net.URI
, to directly populate a URI property instead of using a String property as bridge.URLEditor Editor forjava.net.URL
, to directly populate a URL property instead of using a String property as bridge.UUIDEditor Editor forjava.util.UUID
, translating UUID String representations into UUID objects and back.ZoneIdEditor Editor forjava.time.ZoneId
, translating zone ID Strings intoZoneId
objects.