org.carrot2.util.simplexml
Class DefaultConstructorSimpleXmlWrapper

java.lang.Object
  extended by org.carrot2.util.simplexml.DefaultConstructorSimpleXmlWrapper
All Implemented Interfaces:
ISimpleXmlWrapper<Object>

public class DefaultConstructorSimpleXmlWrapper
extends Object
implements ISimpleXmlWrapper<Object>

A generic wrapper for values of classes with default constructors. This wrapper serializes the value's class name and upon deserialization request, it invokes the class' default constructor and returns the newly created instance.


Constructor Summary
DefaultConstructorSimpleXmlWrapper()
           
 
Method Summary
 Object getValue()
          Returns the value represented by this wrapper.
 void setValue(Object value)
          Sets value to be wrapped by this wrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConstructorSimpleXmlWrapper

public DefaultConstructorSimpleXmlWrapper()
Method Detail

getValue

public Object getValue()
Description copied from interface: ISimpleXmlWrapper
Returns the value represented by this wrapper.

Specified by:
getValue in interface ISimpleXmlWrapper<Object>

setValue

public void setValue(Object value)
Description copied from interface: ISimpleXmlWrapper
Sets value to be wrapped by this wrapper.

Specified by:
setValue in interface ISimpleXmlWrapper<Object>


Copyright (c) Dawid Weiss, Stanislaw Osinski