org.marketcetera.util.ws.wrappers
Class RootElementWrapper<T>

java.lang.Object
  extended by org.marketcetera.util.ws.wrappers.BaseWrapper<T>
      extended by org.marketcetera.util.ws.wrappers.RootElementWrapper<T>

public class RootElementWrapper<T>
extends BaseWrapper<T>

A wrapper for any object, allowing it to become a root element in JAXB marshalling.

Since:
2.0.0
Version:
$Id: RootElementWrapper.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
RootElementWrapper(T object)
          Creates a new wrapper that wraps the given object.
 
Method Summary
 T getObject()
          Returns the receiver's wrapped object.
 void setObject(T object)
          Sets the receiver's wrapped object to the given one.
 
Methods inherited from class org.marketcetera.util.ws.wrappers.BaseWrapper
equals, getValue, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootElementWrapper

public RootElementWrapper(T object)
Creates a new wrapper that wraps the given object.

Parameters:
object - The object, which may be null.
Method Detail

setObject

public void setObject(T object)
Sets the receiver's wrapped object to the given one.

Parameters:
object - The object, which may be null.

getObject

public T getObject()
Returns the receiver's wrapped object.

Returns:
The object, which may be null.


Copyright © 2012. All Rights Reserved.