|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface GenericEdgeRealizer.UserDataHandler
This interface is used by GenericEdgeRealizer to delegate the copying and serialization/deserialization of any user-defined data to. Registered implementations of this interface will be used to perform the actual serialization and deserialization of the user-defined data object. Additionally, implementations are responsible for creating appropriate copies of the user-defined data.
| Method Summary | |
|---|---|
Object |
copyUserData(EdgeRealizer srcContext,
Object srcData,
EdgeRealizer targetContext)
Copies the user-defined data appropriately. |
Object |
readUserData(EdgeRealizer context,
ObjectInputStream ois)
Retrieves the user-defined data object from the ObjectInputStream. |
void |
storeUserData(EdgeRealizer context,
Object userData,
ObjectOutputStream oos)
Stores the user-defined data object to the ObjectOutputStream. |
| Method Detail |
|---|
void storeUserData(EdgeRealizer context,
Object userData,
ObjectOutputStream oos)
throws IOException
ObjectOutputStream. Used for YGF serialization.
IOException - if an exception occurscontext - the edge to store the user-defined datauserData - the user-defined data objectoos - the stream to store the user-defined data object to
Object readUserData(EdgeRealizer context,
ObjectInputStream ois)
throws IOException
ObjectInputStream. Used for YGF deserialization.
IOException - if an exception occurscontext - the edge to read the user-defined data forois - the stream to read the user-defined data object from
Object copyUserData(EdgeRealizer srcContext,
Object srcData,
EdgeRealizer targetContext)
srcContext - the edge that will be copiedsrcData - the data associated with the srcContexttargetContext - the edge the copy will be associated with
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||