Package org.exolab.castor.xml.util
Class ContainerElement
java.lang.Object
org.exolab.castor.xml.util.ContainerElement
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
ConstructorsConstructorDescriptionCreates a new empty ContainerElement.ContainerElement
(Object object) Creates a ContainerElement with the specified object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the object contained within this ContainerElement.Returns the parent of the contained object.void
Sets the object that is contained within this ContainerElement.void
Sets the parent of the contained object.
-
Constructor Details
-
ContainerElement
public ContainerElement()Creates a new empty ContainerElement. -
ContainerElement
Creates a ContainerElement with the specified object.- Parameters:
object
- the Object to set
-
-
Method Details
-
getObject
Returns the object contained within this ContainerElement.- Returns:
- the object contained within this ContainerElement.
-
getParent
Returns the parent of the contained object.- Returns:
- the parent of the contained object.
-
setObject
Sets the object that is contained within this ContainerElement.- Parameters:
object
- the Object to set
-
setParent
Sets the parent of the contained object.- Parameters:
parent
- the parent of the contained object
-