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 java.lang.String |
defaultText() |
protected java.lang.Object |
defaultValue() |
protected java.lang.String |
toText(java.lang.Object value) |
protected java.lang.Object |
toValue(java.lang.String text) |
getAsText, getValue, setAsText, setTrimText, setValue
protected java.lang.String toText(java.lang.Object value)
toText
in class AbstractPropertyEditor
protected java.lang.Object toValue(java.lang.String text) throws java.lang.IllegalArgumentException
toValue
in class AbstractPropertyEditor
java.lang.IllegalArgumentException
protected java.lang.String defaultText()
defaultText
in class AbstractPropertyEditor
protected java.lang.Object defaultValue()
defaultValue
in class AbstractPropertyEditor
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.