org.jboss.util.propertyeditor
Class PropertiesEditor

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

public class PropertiesEditor
extends PropertyEditorSupport

A property editor for Properties.

Version:
$Revision: 1.8 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Constructor Summary
PropertiesEditor()
           
 
Method Summary
 String getAsText()
          Returns the properties as text.
 void setAsText(String propsText)
          Initializes a Properties object with text value interpretted as a .properties file contents.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, 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

PropertiesEditor

public PropertiesEditor()
Method Detail

setAsText

public void setAsText(String propsText)
Initializes a Properties object with text value interpretted as a .properties file contents. This replaces any references of the form ${x} with the corresponding system property.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
NestedRuntimeException - An IOException occured.

getAsText

public String getAsText()
Returns the properties as text.

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


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