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.
|
Java Source File Name | Type | Comment |
ByteArrayPropertyEditor.java | Class | Editor for byte arrays. |
CharacterEditor.java | Class | Editor for a
java.lang.Character , to populate a property
of type Character or char from a String value. |
CharArrayPropertyEditor.java | Class | Editor for char arrays. |
ClassArrayEditor.java | Class | Property editor for an array of
java.lang.Class Classes , to enable
the direct population of a Class[] property without having to
use a String class name property as bridge. |
ClassEditor.java | Class | Property editor for
java.lang.Class java.lang.Class , to enable the direct
population of a Class property without recourse to having to use a
String class name property as bridge. |
CustomBooleanEditor.java | Class | Property editor for Boolean/boolean properties. |
CustomCollectionEditor.java | Class | Property editor for Collections, converting any source Collection
to a given target Collection type. |
CustomDateEditor.java | Class | PropertyEditor for java.util.Date , supporting a custom
java.text.DateFormat . |
CustomMapEditor.java | Class | Property editor for Maps, converting any source Map
to a given target Map type. |
CustomNumberEditor.java | Class | Property editor for any Number subclass like Integer, Long, Float, Double. |
FileEditor.java | Class | Editor for java.io.File , to directly populate a File property
from a Spring resource location. |
InputStreamEditor.java | Class | 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. |
LocaleEditor.java | Class | Editor for java.util.Locale , to directly populate a Locale property.
Expects the same syntax as Locale's toString , i.e. |
PatternEditor.java | Class | Editor for java.util.regex.Pattern , to directly populate a Pattern property. |
PropertiesEditor.java | Class | Custom
java.beans.PropertyEditor for
Properties objects.
Handles conversion from content
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 the standard Properties
documentation. |
ResourceBundleEditor.java | Class | java.beans.PropertyEditor implementation for
java.util.ResourceBundle ResourceBundles . |
StringArrayPropertyEditor.java | Class | Custom
java.beans.PropertyEditor for
String String[] arrays. |
StringTrimmerEditor.java | Class | Property editor that trims Strings.
Optionally allows transforming an empty string into a null value.
Needs to be explictly registered, e.g. |
URIEditor.java | Class | Editor for java.net.URI , to directly populate a URI property
instead of using a String property as bridge.
Supports Spring-style URI notation: any fully qualified standard URI
("file:", "http:", etc) and Spring's special "classpath:" pseudo-URL,
which will be resolved to a corresponding URI.
Note: A URI is more relaxed than a URL in that it does not require
a valid protocol to be specified. |
URLEditor.java | Class | 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,
as well as Spring's context-specific relative file paths.
Note: A URL must specify a valid protocol, else it will be rejected
upfront. |