edu.umd.cs.jazz.scenegraph
Class ZProperty

java.lang.Object
  |
  +--edu.umd.cs.jazz.scenegraph.ZProperty

public class ZProperty
extends java.lang.Object
implements ZSerializable

A class that represents a ZNode property. It just encapsulates a (key, value) pair, and supports ZSerialization.


Field Summary
protected  java.lang.String key
           
protected  java.lang.Object value
           
 
Constructor Summary
ZProperty()
           
ZProperty(java.lang.String key, java.lang.Object value)
           
 
Method Summary
 java.lang.String getKey()
           
 java.lang.Object getValue()
           
 void set(java.lang.String key, java.lang.Object value)
           
 void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
           
 void writeObject(ZObjectOutputStream out)
           
 void writeObjectRecurse(ZObjectOutputStream out)
           
 ZSerializable writeReplace()
          Properties get written out if the value is ZSerializable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected java.lang.String key

value

protected java.lang.Object value
Constructor Detail

ZProperty

public ZProperty()

ZProperty

public ZProperty(java.lang.String key,
                 java.lang.Object value)
Method Detail

set

public void set(java.lang.String key,
                java.lang.Object value)

getKey

public java.lang.String getKey()

getValue

public java.lang.Object getValue()

writeObject

public void writeObject(ZObjectOutputStream out)
                 throws java.io.IOException
Specified by:
writeObject in interface ZSerializable

writeObjectRecurse

public void writeObjectRecurse(ZObjectOutputStream out)
                        throws java.io.IOException
Specified by:
writeObjectRecurse in interface ZSerializable

setState

public void setState(java.lang.String fieldType,
                     java.lang.String fieldName,
                     java.lang.Object fieldValue)
Specified by:
setState in interface ZSerializable

writeReplace

public ZSerializable writeReplace()
Properties get written out if the value is ZSerializable. Else, it is skipped.