org.apache.xbean.server.propertyeditor
Class ObjectNameEditor

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

public class ObjectNameEditor
extends PropertyEditorSupport

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

Since:
2.0
Author:
Dain Sundstrom

Constructor Summary
ObjectNameEditor()
           
 
Method Summary
 String getAsText()
          Converts the stored ObjectName value into a String.
 void setAsText(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, 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

ObjectNameEditor

public ObjectNameEditor()
Method Detail

setAsText

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

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
value - the string to convert into an ObjectName
Throws:
IllegalArgumentException - if the specified string value is not a valid ObjectName

getAsText

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

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
the canonical string form of the current ObjectName value
Throws:
NullPointerException - if the current ObjectName is null


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.