| Home >> All >> org >> springframework >> beans >> [ propertyeditors Javadoc ] |
org.springframework.beans.propertyeditors: Javadoc index of package org.springframework.beans.propertyeditors.
Package Samples:
org.springframework.beans.propertyeditors
Classes:
CustomNumberEditor: Property editor for any Number subclass like Integer, Long, Float, Double. Can use a given NumberFormat for (locale-specific) parsing and rendering, or alternatively the default valueOf respectively toString methods. This is not meant to be used as system PropertyEditor but rather as locale-specific number editor within custom controller code, to parse user-entered number strings into Number properties of beans, and render them in the UI form. In web MVC code, this editor will typically be registered with binder.registerCustomEditor calls in an implementation of BaseCommandController's initBinder ...
CustomDateEditor: PropertyEditor for java.util.Date, supporting a custom DateFormat. This is not meant to be used as system PropertyEditor but rather as locale-specific date editor within custom controller code, to parse user-entered date strings into Date properties of beans, and render them in the UI form. In web MVC code, this editor will typically be registered with binder.registerCustomEditor calls in an implementation of BaseCommandController's initBinder method.
CustomBooleanEditor: Property editor for Boolean/boolean properties. This is not meant to be used as system PropertyEditor but rather as locale-specific Boolean editor within custom controller code, to parse UI-caused boolean strings into boolean properties of beans and check them in the UI form. In web MVC code, this editor will typically be registered with binder.registerCustomEditor calls in an implementation of BaseCommandController's initBinder method.
InputStreamEditor: One-way PropertyEditor, which can convert from a text string to a java.io.InputStream , allowing InputStream properties to be set directly as a text string. Supports Spring-style URL notation: any fully qualified standard URL ("file:", "http:", etc) and Spring's special "classpath:" pseudo-URL. Note that in the default usage, the stream is not closed by Spring itself!
PropertiesEditor: Editor for java.util.Properties objects. Handles conversion from String to Properties object. Also handles Map to Properties conversion, for populating a Properties object via XML "map" entries. The required format is defined in java.util.Properties documentation. Each property must be on a new line.
ClassEditor: Editor for java.lang.Class , to directly populate a Class property instead of using a String class name property as bridge. Also supports "java.lang.String[]"-style array class names, in contrast to the standard Class.forName method. Delegates to ClassUtils for actual class name resolution.
LocaleEditor: Editor for java.util.Locale , to directly populate a Locale property. Expects the same syntax as Locale's toString , i.e. language + optionally country + optionally variant, separated by "_" (e.g. "en", "en_US"). Also accepts spaces as separators, as alternative to underscores.
CustomCollectionEditor: Property editor for Collections, converting any source Collection to a given target Collection type. By default registered for Set, SortedSet and List, to automatically convert any given Collection to one of those target types if the type does not match the target property.
CharacterEditor: Editor for a java.lang.Character , to populate a property of type Character or char from a String value. Note that the JDK does not contain a default property editor for char ! BeanWrapperImpl will register this editor by default.
URLEditor: Editor for java.net.URL , to directly populate a URL property instead of using a String property as bridge. Supports Spring-style URL notation: any fully qualified standard URL ("file:", "http:", etc) and Spring's special "classpath:" pseudo-URL.
FileEditor: Editor for java.io.File , to directly populate a File property instead of using a String file name property as bridge. Supports any pathname accepted by the File(pathname) constructor.
StringTrimmerEditor: Property editor that trims Strings. Optionally allows transforming an empty string into a null value. Needs to be explictly registered, e.g. for command binding.
ByteArrayPropertyEditor: Editor for byte arrays. Strings will simply be converted to their corresponding byte representations.
StringArrayPropertyEditor: Editor for String arrays. Strings must be in CSV format.
| Home | Contact Us | Privacy Policy | Terms of Service |