org.apache.mina.integration.beans
Class TrafficMaskEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.mina.integration.beans.AbstractPropertyEditor
          extended by org.apache.mina.integration.beans.TrafficMaskEditor
All Implemented Interfaces:
PropertyEditor

public class TrafficMaskEditor
extends AbstractPropertyEditor

A PropertyEditor which converts a String into a TrafficMask and vice versa. "all", "read", "write" and "none" are allowed.

Version:
$Revision: 671827 $, $Date: 2008-06-26 10:49:48 +0200 (jeu, 26 jun 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)
See Also:
VmPipeAddress

Constructor Summary
TrafficMaskEditor()
           
 
Method Summary
protected  String toText(Object value)
           
protected  Object toValue(String text)
           
 
Methods inherited from class org.apache.mina.integration.beans.AbstractPropertyEditor
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValue
 
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
 

Constructor Detail

TrafficMaskEditor

public TrafficMaskEditor()
Method Detail

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.