|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.util.ZProperty
ZProperty represents a ZNode client property. It just encapsulates a (key, value) pair, and supports ZSerialization.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
Constructor Summary | |
ZProperty()
Create an empty ZProperty. |
|
ZProperty(java.lang.Object key,
java.lang.Object value)
Create a ZProperty with the specified (key, value) pair |
Method Summary | |
java.lang.Object |
clone()
Duplicates this property by using the copy constructor. |
java.lang.Object |
getKey()
Determine the key of this property. |
java.lang.Object |
getValue()
Determine the value of this property. |
void |
set(java.lang.Object key,
java.lang.Object value)
Set the (key, value) pair stored in this property |
void |
setKey(java.lang.Object key)
Specify the key of this property. |
void |
setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
Set some state of this object as it gets read back in. |
void |
setValue(java.lang.Object value)
Specify the value of this property. |
java.lang.String |
toString()
Generate a string that represents this object for debugging. |
void |
updateObjectReferences(ZObjectReferenceTable objRefTable)
Update object references after a clone. |
void |
writeObject(ZObjectOutputStream out)
Write out all of this object's state. |
void |
writeObjectRecurse(ZObjectOutputStream out)
Specify which objects this object references in order to write out the scenegraph properly |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ZProperty()
public ZProperty(java.lang.Object key, java.lang.Object value)
key
- the new property keyvalue
- the new property valueMethod Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public void set(java.lang.Object key, java.lang.Object value)
key
- the new property keyvalue
- the new property valuepublic java.lang.Object getKey()
public java.lang.Object getValue()
public void setKey(java.lang.Object key)
key
- the new property keypublic void setValue(java.lang.Object value)
value
- the new property valuepublic void updateObjectReferences(ZObjectReferenceTable objRefTable)
ZSceneGraphObject.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)
public java.lang.String toString()
toString
in class java.lang.Object
public void writeObject(ZObjectOutputStream out) throws java.io.IOException
writeObject
in interface ZSerializable
out
- The stream that this object writes intopublic void writeObjectRecurse(ZObjectOutputStream out) throws java.io.IOException
writeObjectRecurse
in interface ZSerializable
out
- The stream that this object writes intopublic void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
setState
in interface ZSerializable
fieldType
- The fully qualified type of the fieldfieldName
- The name of the fieldfieldValue
- The value of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |