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.PropertyEditorSupport
An 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.String
defaultText()
protected java.lang.Object
defaultValue()
java.lang.String
getAsText()
java.lang.Object
getValue()
void
setAsText(java.lang.String text)
protected void
setTrimText(boolean trimText)
void
setValue(java.lang.Object value)
protected abstract java.lang.String
toText(java.lang.Object value)
Returns a String representation of the given valueprotected abstract java.lang.Object
toValue(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:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfacejava.beans.PropertyEditor
- Overrides:
getValue
in classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String text)
- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejava.beans.PropertyEditor
- Overrides:
setValue
in 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
-
-