org.apache.mina.integration.beans
Class VmPipeAddressEditor

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

public class VmPipeAddressEditor
extends AbstractPropertyEditor

A PropertyEditor which converts a String into a VmPipeAddress and vice versa. Valid values specify an integer port number optionally prefixed with a ':'. E.g.: :80, 22.

Version:
$Revision: 635429 $, $Date: 2008-03-10 05:12:28 +0100 (lun, 10 mar 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)
See Also:
VmPipeAddress

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

VmPipeAddressEditor

public VmPipeAddressEditor()
Method Detail

toText

protected String toText(Object value)
Specified by:
toText in class AbstractPropertyEditor

defaultText

protected String defaultText()
Overrides:
defaultText in class AbstractPropertyEditor

defaultValue

protected Object defaultValue()
Overrides:
defaultValue 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.