|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.output.AbstractOutputHandler y.io.graphml.output.AbstractDataProviderOutputHandler y.io.graphml.output.ComplexDataProviderOutputHandler
public class ComplexDataProviderOutputHandler
An implementation of the AbstractOutputHandler
class,
that can use a getSerializer()
callback for the serialization
or delegate to one of GraphMLWriteContext
's
serialize
callbacks.
GraphMLWriteContext.serialize(Object)
,
GraphMLWriteContext.serialize(GraphMLWriteContext, Object, Class)
Constructor Summary | |
---|---|
ComplexDataProviderOutputHandler(java.lang.String name,
KeyScope scope,
KeyType type)
Initializes a new instance of the ComplexDataProviderOutputHandler class. |
Method Summary | |
---|---|
SerializationHandler |
getSerializer()
Gets the serialization callback to use for serializing the value in writeValueCore(GraphMLWriteContext, Object) . |
java.lang.Class |
getSourceType()
Gets the source type of the serialization. |
void |
setSerializer(SerializationHandler value)
Sets the serialization callback to use for serializing the value in writeValueCore(GraphMLWriteContext, Object) . |
void |
setSourceType(java.lang.Class value)
Sets the source type of the serialization. |
protected void |
writeValueCore(GraphMLWriteContext context,
java.lang.Object data)
Callback method that performs the actual writing of the data using either the getSerializer() or one of
GraphMLWriteContext 's serialize
callbacks. |
Methods inherited from class y.io.graphml.output.AbstractDataProviderOutputHandler |
---|
getDataProvider, getValue, setDataProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComplexDataProviderOutputHandler(java.lang.String name, KeyScope scope, KeyType type)
ComplexDataProviderOutputHandler
class.
name
- The name to use for the definition.scope
- The scope of the handler.type
- The type of the data.Method Detail |
---|
public void setSerializer(SerializationHandler value)
writeValueCore(GraphMLWriteContext, Object)
.
value
- The serialization callback or null
to indicate that the context should be used instead.setSourceType(Class)
,
getSerializer()
public SerializationHandler getSerializer()
writeValueCore(GraphMLWriteContext, Object)
.
null
to indicate that the context should be used instead.setSourceType(Class)
,
setSerializer(SerializationHandler)
public void setSourceType(java.lang.Class value)
This type will be used as the SerializationEvent.SourceType()
.
value
- The desired type of the Object that is serialized.SerializationEvent
,
getSourceType()
public java.lang.Class getSourceType()
This type will be used as the SerializationEvent.SourceType()
.
setSourceType(Class)
,
SerializationEvent
protected void writeValueCore(GraphMLWriteContext context, java.lang.Object data) throws GraphMLWriteException
getSerializer()
or one of
GraphMLWriteContext
's serialize
callbacks.
writeValueCore
in class AbstractOutputHandler
context
- The context to use for writing.data
- The data to write.
GraphMLWriteException
GraphMLWriteContext.serialize(Object)
,
GraphMLWriteContext.serialize(GraphMLWriteContext, Object, Class)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |