com.sas.util
Class PropertySerializer

com.sas.util.PropertySerializer
All Implemented Interfaces:
java.io.Serializable

public class PropertySerializer
implements java.io.Serializable

This class serializes the properties of an arbitrary class This class will serialize the public properties of any class. This is used in our generated code to get to the properties of a Frame or Applet

See Also:
Serialized Form

Constructor Summary
PropertySerializer()
           
 
Method Summary
 void setObject(java.lang.Object comp)
          Gathers the property values for serialization Only readable properties with no parameters on the read method are saved There must also be a write method, of course
 void updateObject(java.lang.Object comp)
          applies the serialized property values to an instance of the serialized class Only readable properties with no parameters on the read method are saved There must also be a write method, of course
 void updateSafeObject(java.lang.Object comp)
          applies the serialized property values to an instance of the Frame class Only readable properties with no parameters on the read method are saved There must also be a write method, of course This is used to apply properties saved on an arbitrary window class back to the Frame used by the IDE
 

Constructor Detail

PropertySerializer

public PropertySerializer()
Method Detail

setObject

public void setObject(java.lang.Object comp)
               throws java.beans.IntrospectionException,
                      java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Gathers the property values for serialization Only readable properties with no parameters on the read method are saved There must also be a write method, of course

Parameters:
Object - The object to be serialized
Throws:
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

updateObject

public void updateObject(java.lang.Object comp)
                  throws java.lang.ClassNotFoundException,
                         java.beans.IntrospectionException,
                         java.lang.ClassCastException,
                         java.lang.IllegalAccessException,
                         java.lang.reflect.InvocationTargetException
applies the serialized property values to an instance of the serialized class Only readable properties with no parameters on the read method are saved There must also be a write method, of course

Parameters:
Object - The object to be serialized
Throws:
java.lang.ClassCastException - Thrown when the class of Object does not match the class of the serialized object
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
java.beans.IntrospectionException

updateSafeObject

public void updateSafeObject(java.lang.Object comp)
                      throws java.beans.IntrospectionException,
                             java.lang.ClassCastException,
                             java.lang.IllegalAccessException,
                             java.lang.reflect.InvocationTargetException
applies the serialized property values to an instance of the Frame class Only readable properties with no parameters on the read method are saved There must also be a write method, of course This is used to apply properties saved on an arbitrary window class back to the Frame used by the IDE

Parameters:
Object - The object to be serialized
Throws:
java.lang.ClassCastException - Thrown when the class of Object does not match the class of the serialized object
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.beans.IntrospectionException



Copyright © 2009 SAS Institute Inc. All Rights Reserved.