org.apache.xbean.server.propertyeditor
Class ObjectNameEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.apache.xbean.server.propertyeditor.ObjectNameEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class ObjectNameEditor
extends java.beans.PropertyEditorSupport

ObjectNameEditor is a java beans property editor that can convert an ObjectName to and from a String.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Constructor Summary
ObjectNameEditor()
           
 
Method Summary
 java.lang.String getAsText()
          Converts the stored ObjectName value into a String.
 void setAsText(java.lang.String value)
          Converts the specified string value into an ObjectName and stores the value in this instance.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, 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

ObjectNameEditor

public ObjectNameEditor()
Method Detail

setAsText

public void setAsText(java.lang.String value)
               throws java.lang.IllegalArgumentException
Converts the specified string value into an ObjectName and stores the value in this instance.

Parameters:
value - the string to convert into an ObjectName
Throws:
java.lang.IllegalArgumentException - if the specified string value is not a valid ObjectName

getAsText

public java.lang.String getAsText()
Converts the stored ObjectName value into a String.

Returns:
the canonical string form of the current ObjectName value
Throws:
java.lang.NullPointerException - if the current ObjectName is null


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.