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
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
key
protected java.lang.String key
value
protected java.lang.Object value
ZProperty
public ZProperty()
ZProperty
public ZProperty(java.lang.String key,
java.lang.Object value)
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.