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
 java.lang.Object getResourceForID(java.lang.String id, DeserializationHandler decoder, java.lang.Class targetType, GraphMLParseContext context)
          Retrieve the shared resource that is referenced by id.
 void registerResourceNode(java.lang.String id, org.w3c.dom.Node domNode)
          Used to register the XML representation of a shared resource.
 

Method Detail

getResourceForID

java.lang.Object getResourceForID(java.lang.String id,
                                  DeserializationHandler decoder,
                                  java.lang.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.

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

registerResourceNode

void registerResourceNode(java.lang.String id,
                          org.w3c.dom.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-2022,
yWorks GmbH.
All rights reserved.