|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.converters.extended.PropertyEditorCapableConverter
public class PropertyEditorCapableConverter
A SingleValueConverter that can utilize a PropertyEditor
implementation used for a
specific type. The converter ensures that the editors can be used concurrently.
Constructor Summary | |
---|---|
PropertyEditorCapableConverter(java.lang.Class propertyEditorType,
java.lang.Class type)
|
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type. |
java.lang.Object |
fromString(java.lang.String str)
Unmarshals an Object from its single value representation. |
java.lang.String |
toString(java.lang.Object obj)
Marshals an Object into a single value representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyEditorCapableConverter(java.lang.Class propertyEditorType, java.lang.Class type)
Method Detail |
---|
public boolean canConvert(java.lang.Class type)
ConverterMatcher
canConvert
in interface ConverterMatcher
type
- the Class representing the object type to be convertedpublic java.lang.Object fromString(java.lang.String str)
SingleValueConverter
fromString
in interface SingleValueConverter
str
- the String with the single value of the Object
public java.lang.String toString(java.lang.Object obj)
SingleValueConverter
toString
in interface SingleValueConverter
obj
- the Object to be converted
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |