equip.data
Class SerializedObjectImpl

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.SerializedObject
              extended byequip.data.SerializedObjectImpl
All Implemented Interfaces:
java.lang.Cloneable

public class SerializedObjectImpl
extends SerializedObject

Implementation of IDL'd abstract class SerializedObject


Field Summary
 
Fields inherited from class equip.data.SerializedObject
data, serializationMethod
 
Constructor Summary
SerializedObjectImpl()
           
SerializedObjectImpl(java.io.Serializable o)
          convenience constructor - assign value by serialising object
 
Method Summary
(package private)  java.lang.Object getJavaValue()
          get value using Java deserializationn - internal op.
 java.lang.Object getValue()
          get value by deserialization of data.
 void setValue(java.io.Serializable o)
          assign value by serialising object.
 
Methods inherited from class equip.data.SerializedObject
_equals_helper, _matches_helper, equals, getModuleName, matches, readObject, writeObject
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedObjectImpl

public SerializedObjectImpl()

SerializedObjectImpl

public SerializedObjectImpl(java.io.Serializable o)
                     throws java.io.IOException
convenience constructor - assign value by serialising object

Method Detail

setValue

public void setValue(java.io.Serializable o)
              throws java.io.IOException
assign value by serialising object. encodes null as no data.

Throws:
java.io.IOException

getValue

public java.lang.Object getValue()
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
get value by deserialization of data. returns null if there is no data.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

getJavaValue

java.lang.Object getJavaValue()
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
get value using Java deserializationn - internal op. pre-requisites: serializationMethod=="java", data!=null, data.length!=0.

Throws:
java.io.IOException
java.lang.ClassNotFoundException