org.exolab.castor.xml.util
Class ContainerElement

java.lang.Object
  extended by org.exolab.castor.xml.util.ContainerElement

public class ContainerElement
extends java.lang.Object

A light-weight object used to wrap any object. This allows Castor to effectively "wrap" and "unwrap" elements during marshaling and unmarshaling.

Author:
Keith Visco

Constructor Summary
ContainerElement()
          Creates a new empty ContainerElement.
ContainerElement(java.lang.Object object)
          Creates a ContainerElement with the specified object.
 
Method Summary
 java.lang.Object getObject()
          Returns the object contained within this ContainerElement.
 java.lang.Object getParent()
          Returns the parent of the contained object.
 void setObject(java.lang.Object object)
          Sets the object that is contained within this ContainerElement.
 void setParent(java.lang.Object parent)
          Sets the parent of the contained object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerElement

public ContainerElement()
Creates a new empty ContainerElement.


ContainerElement

public ContainerElement(java.lang.Object object)
Creates a ContainerElement with the specified object.

Parameters:
object - the Object to set
Method Detail

getObject

public java.lang.Object getObject()
Returns the object contained within this ContainerElement.

Returns:
the object contained within this ContainerElement.

getParent

public java.lang.Object getParent()
Returns the parent of the contained object.

Returns:
the parent of the contained object.

setObject

public void setObject(java.lang.Object object)
Sets the object that is contained within this ContainerElement.

Parameters:
object - the Object to set

setParent

public void setParent(java.lang.Object parent)
Sets the parent of the contained object.

Parameters:
parent - the parent of the contained object


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com