org.apache.directory.server.core.entry
Class ServerEntryPropertyEditor

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

public class ServerEntryPropertyEditor
extends java.beans.PropertyEditorSupport

A JavaBeans PropertyEditor that can convert ServerEntry 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: 582462 $, $Date: 2007-10-06 08:48:35 +0200 (Sat, 06 Oct 2007) $
Author:
Apache Directory Project

Constructor Summary
ServerEntryPropertyEditor()
          Creates a new instance.
ServerEntryPropertyEditor(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

ServerEntryPropertyEditor

public ServerEntryPropertyEditor()
Creates a new instance.


ServerEntryPropertyEditor

public ServerEntryPropertyEditor(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


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.