Search this API

y.io.graphml.graph2d
Interface ResourceDeserializationHandler


public interface ResourceDeserializationHandler

Interface for classes that provide methods to manage shared object resources for the input process


Method Summary
 Object getResourceForID(String id, DeserializationHandler decoder, Class targetType, GraphMLParseContext context)
          Retrieve the shared resource that is referenced by id.
 void registerResourceNode(String id, Node domNode)
          Used to register the XML representation of a shared resource.
 

Method Detail

getResourceForID

Object getResourceForID(String id,
                        DeserializationHandler decoder,
                        Class targetType,
                        GraphMLParseContext context)
                        throws GraphMLParseException
Retrieve the shared resource that is referenced by id.

If this is the first request for id, this will deserialize the resource either with decoder or with GraphMLParseContext.deserialize(y.io.graphml.input.GraphMLParseContext,Node,Class) if decoder is null.

Throws:
GraphMLParseException
Parameters:
id - the id that identifies the resource.
decoder - The deserialization handler
context - The context for the operation.
Returns:
The resource.

registerResourceNode

void registerResourceNode(String id,
                          Node domNode)
Used to register the XML representation of a shared resource.

Parameters:
domNode - The domNode that contains the resource description.
id - The id of the resource.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.