de.javakaffee.web.msm.serializer.javolution
Class ReflectionBinding

java.lang.Object
  extended by javolution.xml.XMLBinding
      extended by de.javakaffee.web.msm.serializer.javolution.ReflectionBinding
All Implemented Interfaces:
Serializable, javolution.lang.Reusable, javolution.xml.XMLSerializable

public class ReflectionBinding
extends javolution.xml.XMLBinding

An XMLBinding that provides class bindings based on reflection.

Author:
Martin Grotzke
See Also:
Serialized Form

Nested Class Summary
static class ReflectionBinding.XMLArrayFormat
           
static class ReflectionBinding.XMLCalendarFormat
          An XMLFormat for Calendar that serialized those calendar fields that contain actual data (these fields also are used by Calendar.equals(Object).
static class ReflectionBinding.XMLCollectionFormat
           
static class ReflectionBinding.XMLCurrencyFormat
           
static class ReflectionBinding.XMLJdkProxyFormat
           
static class ReflectionBinding.XMLMapFormat
           
 
Field Summary
static String CLASS
           
static javolution.xml.XMLFormat<StringBuffer> STRING_BUFFER_FORMAT
           
static javolution.xml.XMLFormat<StringBuilder> STRING_BUILDER_FORMAT
           
 
Constructor Summary
ReflectionBinding(ClassLoader classLoader)
           
ReflectionBinding(ClassLoader classLoader, boolean copyCollectionsForSerialization, CustomXMLFormat<?>... customFormats)
           
 
Method Summary
 javolution.xml.XMLFormat<?> getFormat(Class cls)
           
protected  Class readClass(javolution.xml.stream.XMLStreamReader reader, boolean useAttributes)
          
protected  void writeClass(Class cls, javolution.xml.stream.XMLStreamWriter writer, boolean useAttributes)
          
 
Methods inherited from class javolution.xml.XMLBinding
reset, setAlias, setAlias, setClassAttribute, setClassAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final String CLASS
See Also:
Constant Field Values

STRING_BUILDER_FORMAT

public static final javolution.xml.XMLFormat<StringBuilder> STRING_BUILDER_FORMAT

STRING_BUFFER_FORMAT

public static final javolution.xml.XMLFormat<StringBuffer> STRING_BUFFER_FORMAT
Constructor Detail

ReflectionBinding

public ReflectionBinding(ClassLoader classLoader)

ReflectionBinding

public ReflectionBinding(ClassLoader classLoader,
                         boolean copyCollectionsForSerialization,
                         CustomXMLFormat<?>... customFormats)
Method Detail

writeClass

protected void writeClass(Class cls,
                          javolution.xml.stream.XMLStreamWriter writer,
                          boolean useAttributes)
                   throws javolution.xml.stream.XMLStreamException

Overrides:
writeClass in class javolution.xml.XMLBinding
Throws:
javolution.xml.stream.XMLStreamException

readClass

protected Class readClass(javolution.xml.stream.XMLStreamReader reader,
                          boolean useAttributes)
                   throws javolution.xml.stream.XMLStreamException

Overrides:
readClass in class javolution.xml.XMLBinding
Throws:
javolution.xml.stream.XMLStreamException

getFormat

public javolution.xml.XMLFormat<?> getFormat(Class cls)
                                      throws javolution.xml.stream.XMLStreamException
Overrides:
getFormat in class javolution.xml.XMLBinding
Throws:
javolution.xml.stream.XMLStreamException


Copyright © 2009-2012. All Rights Reserved.