org.apache.mina.transport.serial
Class SerialAddressEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
org.apache.mina.transport.serial.SerialAddressEditor
- All Implemented Interfaces:
- PropertyEditor
public class SerialAddressEditor
- extends AbstractPropertyEditor
A PropertyEditor
which converts a String
into a
SerialAddress
and vice versa. Valid values specify 6 address
components separated by colon (e.g. COM1:9600:7:1:even:rtscts-in);
port name, bauds, data bits, stop bits, parity and flow control respectively.
- Version:
- $Revision: 645790 $, $Date: 2008-04-08 10:38:03 +0200 (mar, 08 avr 2008) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
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 |
SerialAddressEditor
public SerialAddressEditor()
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
Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.