net.sf.bigyo.container
Class CompactReflectionConverter
java.lang.Object
net.sf.bigyo.container.CompactReflectionConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter
public class CompactReflectionConverter
- extends Object
- implements com.thoughtworks.xstream.converters.Converter
Creates a more 'compact' xml, instead of the verbose default. Usage: XStream
xs = .... xs.registerConverter(new CompactReflectionConverter(xs));
Created on 2004.04.17.
- Author:
- zombi@mailbox.hu
Constructor Summary |
CompactReflectionConverter(com.thoughtworks.xstream.alias.ClassMapper classMapper,
String classAttributeIdentifier,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.converters.ConverterLookup lookup)
|
CompactReflectionConverter(com.thoughtworks.xstream.XStream xstream)
|
Method Summary |
boolean |
canConvert(Class cls)
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
void |
setAccept(boolean b)
|
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompactReflectionConverter
public CompactReflectionConverter(com.thoughtworks.xstream.alias.ClassMapper classMapper,
String classAttributeIdentifier,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.converters.ConverterLookup lookup)
CompactReflectionConverter
public CompactReflectionConverter(com.thoughtworks.xstream.XStream xstream)
- Parameters:
xstream
-
canConvert
public boolean canConvert(Class cls)
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.Converter
setAccept
public void setAccept(boolean b)
marshal
public void marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
- Specified by:
marshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
- Specified by:
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
Copyright © 2004 Sourceforge.net. All Rights Reserved.