Class PatternEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.PatternEditor
- All Implemented Interfaces:
PropertyEditor
Editor for
java.util.regex.Pattern
, to directly populate a Pattern property.
Expects the same syntax as Pattern's compile
method.- Since:
- 2.0.1
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new PatternEditor with default settings.PatternEditor
(int flags) Create a new PatternEditor with the given settings. -
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
PatternEditor
public PatternEditor()Create a new PatternEditor with default settings. -
PatternEditor
public PatternEditor(int flags) Create a new PatternEditor with the given settings.- Parameters:
flags
- thejava.util.regex.Pattern
flags to apply- See Also:
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-