public class InetAddressEditor extends AbstractPropertyEditor
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.InetAddress| Constructor and Description |
|---|
InetAddressEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
defaultText() |
protected Object |
defaultValue() |
protected String |
toText(Object value)
Returns a String representation of the given value
|
protected Object |
toValue(String text)
Returns an instance from a String representation of an object
|
getAsText, getValue, setAsText, setTrimText, setValueaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorprotected String toText(Object value)
AbstractPropertyEditortoText in class AbstractPropertyEditorvalue - The valueprotected Object toValue(String text) throws IllegalArgumentException
AbstractPropertyEditortoValue in class AbstractPropertyEditortext - The String representation to convertIllegalArgumentExceptionprotected String defaultText()
defaultText in class AbstractPropertyEditorprotected Object defaultValue()
defaultValue in class AbstractPropertyEditorCopyright © 2004–2023 Apache MINA Project. All rights reserved.