org.codehaus.waffle.view
Class BeanPropertyConverter
java.lang.Object
org.codehaus.waffle.view.BeanPropertyConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
public class BeanPropertyConverter
- extends java.lang.Object
- implements com.thoughtworks.xstream.converters.Converter
Used to make XStream use bean getters to serialize, no attributes
- Author:
- Paulo Silveira, Michael Ward
Method Summary |
boolean |
canConvert(java.lang.Class clazz)
|
void |
marshal(java.lang.Object object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
java.lang.Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanPropertyConverter
public BeanPropertyConverter()
marshal
public void marshal(java.lang.Object object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
- Specified by:
marshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
- Specified by:
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
canConvert
public boolean canConvert(java.lang.Class clazz)
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
Copyright © 2008. All Rights Reserved.