org.apache.xbean.server.propertyeditor
Class InetAddressEditor

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

public class InetAddressEditor
extends java.beans.PropertyEditorSupport

InetAddressEditor is a java beans property editor that can convert an InetAddreass to and from a String.

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

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

InetAddressEditor

public InetAddressEditor()
Method Detail

setAsText

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

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

getAsText

public java.lang.String getAsText()
                           throws java.lang.NullPointerException
Converts the stored InetAddress value into a String.

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


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