org.apache.geronimo.common.propertyeditor
Class PropertiesEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
          extended by org.apache.geronimo.common.propertyeditor.PropertiesEditor
All Implemented Interfaces:
PropertyEditor

public class PropertiesEditor
extends TextPropertyEditorSupport

A property editor for indirect property bundles. This editor transforms the text value of the propery into a Property resource bundle.


Constructor Summary
PropertiesEditor()
           
 
Method Summary
 String getAsText()
          Provides a String version of a Properties object suitable for loading into a Properties table using the load method.
 Object getValue()
          Treats the text value of this property as an input stream that is converted into a Property bundle.
 
Methods inherited from class org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
setAsText
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, 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

PropertiesEditor

public PropertiesEditor()
Method Detail

getValue

public Object getValue()
Treats the text value of this property as an input stream that is converted into a Property bundle.

Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
a Properties object
Throws:
PropertyEditorException - An error occurred creating the Properties object.

getAsText

public String getAsText()
Provides a String version of a Properties object suitable for loading into a Properties table using the load method.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
The String value of the Properties object as created by the store method.
Throws:
PropertyEditorException - An error occurred converting the Properties object
See Also:
Properties.store(java.io.OutputStream, String)


Copyright © 2006 Apache Software Foundation. All Rights Reserved.