|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.PropertySerializer
public class PropertySerializer
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
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 |
---|
public PropertySerializer()
Method Detail |
---|
public void setObject(java.lang.Object comp) throws java.beans.IntrospectionException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Object
- The object to be serialized
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void updateObject(java.lang.Object comp) throws java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.ClassCastException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Object
- The object to be serialized
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
public void updateSafeObject(java.lang.Object comp) throws java.beans.IntrospectionException, java.lang.ClassCastException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Object
- The object to be serialized
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
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |