org.idoox.wasp.serialization
Interface DeserializedObjectsStack

All Known Subinterfaces:
DeserializationContext

public interface DeserializedObjectsStack

Since:
4.0
Component:
Core

Method Summary
 java.lang.Object[] getDeserializedObjects()
          Returns the context of objects being deserialized.
 int getDeserializedObjectsCount()
          Returns size of stack of deserialized objects.
 java.lang.Object popDeserializedObject()
          Removes one deserialized object from the stack and returns it.
 void pushDeserializedObject(java.lang.Object contextObject)
          Adds the object being serialized so that the inner deserializers know in which context they are deserializing (for example, an interface might be instantiated into two different implementations in two different contexts).
 

Method Detail

pushDeserializedObject

public void pushDeserializedObject(java.lang.Object contextObject)
Adds the object being serialized so that the inner deserializers know in which context they are deserializing (for example, an interface might be instantiated into two different implementations in two different contexts).

Parameters:
contextObject - the context

getDeserializedObjects

public java.lang.Object[] getDeserializedObjects()
Returns the context of objects being deserialized.

For performance reasons, the array being returned is the internal, shared array of object stack. This has some implications:

Returns:
the array of objects being deserialized

getDeserializedObjectsCount

public int getDeserializedObjectsCount()
Returns size of stack of deserialized objects.

Returns:
the size of stack of deserialized objects

popDeserializedObject

public java.lang.Object popDeserializedObject()
Removes one deserialized object from the stack and returns it.

Returns:
the object being removed from the stack.