org.apache.mina.integration.beans
Class InetAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
org.apache.mina.integration.beans.InetAddressEditor
- All Implemented Interfaces:
- PropertyEditor
public class InetAddressEditor
- extends AbstractPropertyEditor
A PropertyEditor
which converts a String
into an
InetAddress
.
This editor simply calls InetAddress.getByName(java.lang.String)
when converting from a String
, and InetAddress.getHostAddress()
when converting to a String
.
- Version:
- $Revision: 601972 $, $Date: 2007-12-07 04:34:55 +0100 (ven, 07 déc 2007) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
- See Also:
InetAddress
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetAddressEditor
public InetAddressEditor()
toText
protected String toText(Object value)
- Specified by:
toText
in class AbstractPropertyEditor
toValue
protected Object toValue(String text)
throws IllegalArgumentException
- Specified by:
toValue
in class AbstractPropertyEditor
- Throws:
IllegalArgumentException
defaultText
protected String defaultText()
- Overrides:
defaultText
in class AbstractPropertyEditor
defaultValue
protected Object defaultValue()
- Overrides:
defaultValue
in class AbstractPropertyEditor
Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.