org.jboss.util.propertyeditor
Class StringEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jboss.util.propertyeditor.StringEditor
All Implemented Interfaces:
PropertyEditor

public class StringEditor
extends PropertyEditorSupport

A property editor for String. It is really a no-op but it is hoped to provide slightly better performance, by avoiding the continuous lookup/failure of a property editor for plain Strings within the org.jboss.util.propertyeditor package, before falling back to the jdk provided String editor.

Version:
$Revision: 1.1.2.3 $
Author:
Dimitris Andreadis

Constructor Summary
StringEditor()
           
 
Method Summary
 void setAsText(String text)
          Keep the provided String as is.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringEditor

public StringEditor()
Method Detail

setAsText

public void setAsText(String text)
Keep the provided String as is.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.