org.apache.geronimo.common.propertyeditor
Class PropertiesEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
          extended byorg.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.

Version:
$Rev: 405651 $

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, getTags, isPaintable, paintValue, removePropertyChangeListener, 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.

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.

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 © 2003-2007 Apache Software Foundation. All Rights Reserved.