com.pmease.quickbuild.migration
Class BeanConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.pmease.quickbuild.migration.BeanConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
public class BeanConverter
- extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException |
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
mapper, reflectionProvider, serializationMethodInvoker |
Constructor Summary |
BeanConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
|
Method Summary |
boolean |
canConvert(java.lang.Class clazz)
|
void |
marshal(java.lang.Object original,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
protected void |
marshallField(com.thoughtworks.xstream.converters.MarshallingContext context,
java.lang.Object newObj,
java.lang.reflect.Field field)
|
java.lang.Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
protected java.lang.Object |
unmarshallField(com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.lang.Object result,
java.lang.Class type,
java.lang.reflect.Field field)
|
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
doMarshal, doUnmarshal, instantiateNewInstance, shouldUnmarshalTransientFields |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanConverter
public BeanConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
marshal
public void marshal(java.lang.Object original,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
- Specified by:
marshal
in interface com.thoughtworks.xstream.converters.Converter
- Overrides:
marshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
marshallField
protected void marshallField(com.thoughtworks.xstream.converters.MarshallingContext context,
java.lang.Object newObj,
java.lang.reflect.Field field)
- Overrides:
marshallField
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
unmarshal
public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
- Specified by:
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
- Overrides:
unmarshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
unmarshallField
protected java.lang.Object unmarshallField(com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.lang.Object result,
java.lang.Class type,
java.lang.reflect.Field field)
- Overrides:
unmarshallField
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
canConvert
public boolean canConvert(java.lang.Class clazz)
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
- Overrides:
canConvert
in class com.thoughtworks.xstream.converters.reflection.ReflectionConverter
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.