| Access | Constructor and Description |
|---|---|
| public | JavaClassConverter(ClassLoaderReference
the reference to the classLoaderReference)ClassLoader of the XStream instanceConstruct a JavaClassConverter. |
| public | JavaClassConverter(ClassLoader classLoader)
Deprecated
As of 1.4.5 use
JavaClassConverter(ClassLoaderReference)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted clazz)Implements abstract com. Implements com. |
| public Object | fromString(String
the String with the single value of the Object str)Implements abstract com. Implements com. |
| public String | toString(Object
the Object to be converted obj)Overrides com. Implements com. |
| mapper | back to summary |
|---|---|
| private Mapper mapper | |
| JavaClassConverter | back to summary |
|---|---|
| public JavaClassConverter(ClassLoaderReference classLoaderReference) Construct a JavaClassConverter.
| |
| JavaClassConverter | back to summary |
|---|---|
| public JavaClassConverter(ClassLoader classLoader)
Deprecated As of 1.4.5 use | |
| JavaClassConverter | back to summary |
|---|---|
| protected JavaClassConverter(Mapper mapper) Construct a JavaClassConverter that uses a provided mapper. Depending on the mapper chain it will not only be used to load classes, but also to support type aliases.
| |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> clazz) Implements abstract com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| fromString | back to summary |
|---|---|
| public Object fromString(String str) Implements abstract com. Implements com. Doc from com. Unmarshals an Object from its single value representation. | |
| toString | back to summary |
|---|---|
| public String toString(Object obj) Overrides com. Implements com. Doc from com. Marshals an Object into a single value representation. | |