|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.graphml.support.WrappingRoundtripMapper
Default implementation of IRoundtripMapper that wraps an existing DataMap.
| Constructor Summary | |
WrappingRoundtripMapper(DataMap delegate,
java.lang.String name,
KeyScope scope,
KeyType type)
A new instance using the provided DataMap to delegate to.
|
|
WrappingRoundtripMapper(DataMap delegate,
java.lang.String name,
KeyScope scope,
KeyType type,
boolean autoSerialize)
A new instance using the provided DataMap to delegate to. |
|
| Method Summary | |
java.lang.Object |
get(java.lang.Object dataHolder)
|
boolean |
getBool(java.lang.Object dataHolder)
|
double |
getDouble(java.lang.Object dataHolder)
|
int |
getInt(java.lang.Object dataHolder)
|
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. |
IRoundtripMapper |
register(Graph graph)
Registers itself at the given graph using name property as tag. |
void |
set(java.lang.Object dataHolder,
java.lang.Object value)
|
void |
setBool(java.lang.Object dataHolder,
boolean value)
|
void |
setDouble(java.lang.Object dataHolder,
double value)
|
void |
setInt(java.lang.Object dataHolder,
int value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WrappingRoundtripMapper(DataMap delegate,
java.lang.String name,
KeyScope scope,
KeyType type)
DataMap to delegate to.
This constructor sets the autoSerialize property to false.
delegate - The DataMap delegate.name - The name that shall be used for serialization.scope - The scope that shall be used for serialization.type - The type that shall be used for serialization.GraphRoundtripSupportBase.setAutoWriteMapperData(boolean)
public WrappingRoundtripMapper(DataMap delegate,
java.lang.String name,
KeyScope scope,
KeyType type,
boolean autoSerialize)
DataMap to delegate to.
delegate - The DataMap delegate.name - The name that shall be used for serialization.scope - The scope that shall be used for serialization.type - The type that shall be used for serialization.autoSerialize - If this mapper shall be auto-serialized.GraphRoundtripSupportBase.setAutoWriteMapperData(boolean)| Method Detail |
public java.lang.String getName()
IRoundtripMapper
getName in interface IRoundtripMapperpublic KeyScope getScope()
IRoundtripMapper
getScope in interface IRoundtripMapperpublic KeyType getType()
IRoundtripMapper
getType in interface IRoundtripMapperpublic boolean isAutoSerialize()
IRoundtripMapper
isAutoSerialize in interface IRoundtripMappertrue if it shall be auto-serialized, false otherwise.public java.lang.Object get(java.lang.Object dataHolder)
get in interface DataProviderpublic int getInt(java.lang.Object dataHolder)
getInt in interface DataProviderpublic double getDouble(java.lang.Object dataHolder)
getDouble in interface DataProviderpublic boolean getBool(java.lang.Object dataHolder)
getBool in interface DataProvider
public void set(java.lang.Object dataHolder,
java.lang.Object value)
set in interface DataAcceptor
public void setInt(java.lang.Object dataHolder,
int value)
setInt in interface DataAcceptor
public void setDouble(java.lang.Object dataHolder,
double value)
setDouble in interface DataAcceptor
public void setBool(java.lang.Object dataHolder,
boolean value)
setBool in interface DataAcceptorpublic IRoundtripMapper register(Graph graph)
name property as tag.
graph - The graph to register itself.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||