org.apache.xbean.server.propertyeditor
Class URIEditor

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

public class URIEditor
extends java.beans.PropertyEditorSupport

URIEditor is a java beans property editor that can convert an URI to and from a String.

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

Constructor Summary
URIEditor()
           
 
Method Summary
 java.lang.String getAsText()
          Converts the stored URI value into a String.
 void setAsText(java.lang.String value)
          Converts the specified string value into an URI 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

URIEditor

public URIEditor()
Method Detail

setAsText

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

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

getAsText

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

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


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