|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for classes that provide methods to manage shared object resources for the output process
| Method Summary | |
boolean |
isRegistered(Object resource)
Return whether a resource has already been registered at this handler |
GraphMLWriteContext.ResourceDescriptor |
registerResource(Object resource,
GraphMLWriteContext.ResourceEncoder encoder)
Register a shared resource to this handler. |
| Method Detail |
public GraphMLWriteContext.ResourceDescriptor registerResource(Object resource,
GraphMLWriteContext.ResourceEncoder encoder)
resource, this should create and return a descriptor for the resource.
On further calls for the same resource, this should return only the descriptor reference.
The exact semantics which resources are considered as "the same" depends on the actual implementation. The default implementation
that is returned by GraphMLWriteContext uses object identity.
resource - the shared resourceencoder - The encoder instance that is used when the resource is serialized
public boolean isRegistered(Object resource)
resource -
true iff the resource has already been registered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||