类 PatternEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.PatternEditor
- 所有已实现的接口:
PropertyEditor
public class PatternEditor extends PropertyEditorSupport
Editor forjava.util.regex.Pattern, to directly populate a Pattern property. Expects the same syntax as Pattern'scompilemethod.- 从以下版本开始:
- 2.0.1
- 作者:
- Juergen Hoeller
- 另请参阅:
Pattern,Pattern.compile(String)
构造器概要
构造器 构造器 说明 PatternEditor()Create a new PatternEditor with default settings.PatternEditor(int flags)Create a new PatternEditor with the given settings.
构造器详细资料
PatternEditor
public PatternEditor()
Create a new PatternEditor with default settings.
PatternEditor
public PatternEditor(int flags)
Create a new PatternEditor with the given settings.- 参数:
flags- thejava.util.regex.Patternflags to apply- 另请参阅:
Pattern.compile(String, int),Pattern.CASE_INSENSITIVE,Pattern.MULTILINE,Pattern.DOTALL,Pattern.UNICODE_CASE,Pattern.CANON_EQ
方法详细资料
setAsText
public void setAsText(String text)
- 指定者:
setAsText在接口中PropertyEditor- 覆盖:
setAsText在类中PropertyEditorSupport
getAsText
public String getAsText()
- 指定者:
getAsText在接口中PropertyEditor- 覆盖:
getAsText在类中PropertyEditorSupport