org.apache.directory.server.core.configuration
Class AttributesPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.directory.server.core.configuration.AttributesPropertyEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class AttributesPropertyEditor
extends java.beans.PropertyEditorSupport

A JavaBeans PropertyEditor that can convert Attributes to LDIF string and vice versa. This class is useful when you're going to configure a DirectoryService with 3rd party containers such as Spring Framework.

Version:
$Rev: 434579 $, $Date: 2006-08-24 20:19:11 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project

Constructor Summary
AttributesPropertyEditor()
          Creates a new instance.
AttributesPropertyEditor(java.lang.Object source)
          Creates a new instance with source object.
 
Method Summary
 java.lang.String getAsText()
          Returns LDIF string of Attributes object.
 void setAsText(java.lang.String text)
          Converts the specified LDIF string into Attributes.
 
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

AttributesPropertyEditor

public AttributesPropertyEditor()
Creates a new instance.


AttributesPropertyEditor

public AttributesPropertyEditor(java.lang.Object source)
Creates a new instance with source object.

Method Detail

getAsText

public java.lang.String getAsText()
Returns LDIF string of Attributes object.

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Converts the specified LDIF string into Attributes.

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Throws:
java.lang.IllegalArgumentException