com.yworks.yfiles.server.graphml.support
Interface IRoundtripMapper

All Superinterfaces:
DataAcceptor, DataMap, DataProvider
All Known Implementing Classes:
WrappingRoundtripMapper

public interface IRoundtripMapper
extends DataMap

This interface adds information to the DataMap interface that are used for serializing the map's content. Registered data maps that implement this interface and return true in their isAutoSerialize method are auto serialized by the GraphRoundtripSupport if its isAutoWriteMapperData property is true as well.

See Also:
GraphRoundtripSupportBase.setAutoWriteMapperData(boolean), GraphRoundtripSupportBase.isAutoWriteMapperData()

Method Summary
 java.lang.String getName()
          The value of the attr.name property of the key element this data map is serialized to.
 KeyScope getScope()
          The scope this data map be serialized for.
 KeyType getType()
          The type of the data in this data map.
 boolean isAutoSerialize()
          Whether the content of this data map shall be auto serialized by the GraphRoundtripSupport.
 
Methods inherited from interface y.base.DataProvider
get, getBool, getDouble, getInt
 
Methods inherited from interface y.base.DataAcceptor
set, setBool, setDouble, setInt
 

Method Detail

getName

public java.lang.String getName()
The value of the attr.name property of the key element this data map is serialized to.

Returns:
The value of the attr.name property of the key element this data map is serialized to.

getScope

public KeyScope getScope()
The scope this data map be serialized for.


getType

public KeyType getType()
The type of the data in this data map.


isAutoSerialize

public boolean isAutoSerialize()
Whether the content of this data map shall be auto serialized by the GraphRoundtripSupport.

Returns:
true if it shall be auto-serialized, false otherwise.


Copyright © 2000-2013 yWorks GmbH. All rights reserved