Class AbstractPropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.mina.integration.beans.AbstractPropertyEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
- Direct Known Subclasses:
ArrayEditor,BooleanEditor,CharacterEditor,ClassEditor,CollectionEditor,DateEditor,EnumEditor,FileEditor,InetAddressEditor,InetSocketAddressEditor,MapEditor,NullEditor,NumberEditor,PatternEditor,StringEditor,URIEditor,URLEditor,VmPipeAddressEditor
public abstract class AbstractPropertyEditor extends java.beans.PropertyEditorSupportAn abstract bi-directionalPropertyEditor.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertyEditor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdefaultText()protected java.lang.ObjectdefaultValue()java.lang.StringgetAsText()java.lang.ObjectgetValue()voidsetAsText(java.lang.String text)protected voidsetTrimText(boolean trimText)voidsetValue(java.lang.Object value)protected abstract java.lang.StringtoText(java.lang.Object value)Returns a String representation of the given valueprotected abstract java.lang.ObjecttoValue(java.lang.String text)Returns an instance from a String representation of an object
-
-
-
Method Detail
-
setTrimText
protected void setTrimText(boolean trimText)
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfacejava.beans.PropertyEditor- Overrides:
getValuein classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text)
- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfacejava.beans.PropertyEditor- Overrides:
setValuein classjava.beans.PropertyEditorSupport
-
defaultText
protected java.lang.String defaultText()
- Returns:
- The default text
-
defaultValue
protected java.lang.Object defaultValue()
- Returns:
- The default value
-
toText
protected abstract java.lang.String toText(java.lang.Object value)
Returns a String representation of the given value- Parameters:
value- The value- Returns:
- A String representation of the value
-
toValue
protected abstract java.lang.Object toValue(java.lang.String text)
Returns an instance from a String representation of an object- Parameters:
text- The String representation to convert- Returns:
- A instance of an object
-
-