Search this API

y.io.graphml.graph2d
Interface ResourceDescriptor


public interface ResourceDescriptor

Handle interface for shared resources.

 

Method Summary
 java.lang.String getClassName()
          The class name of the resource
 SerializationHandler getEncoder()
          Callback to serialize the resource.
 java.lang.String getId()
          The id of the resource
 java.lang.Object getResource()
          The resource itself
 

Method Detail

getClassName

java.lang.String getClassName()
The class name of the resource

Returns:
The class name of the resource

getId

java.lang.String getId()
The id of the resource

Returns:
The id of the resource

getEncoder

SerializationHandler getEncoder()
Callback to serialize the resource.

If null, the resource is serialized with GraphMLWriteContext.serialize(y.io.graphml.output.GraphMLWriteContext, Object, Class).

Returns:
A custom callback to serialize the resource, or null to indicate that the context should be used for serialization.

getResource

java.lang.Object getResource()
The resource itself

Returns:
The resource

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