|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphMLWriteContext
Interface that defines the context of a GraphML writing context.
All state data that is needed for the writing of a concrete graph instance should go here, allowing all handlers and deserializers to be implemented stateless
Method Summary | |
---|---|
java.lang.Object |
getCurrentObject()
Returns the most current (i.e. the last element) within the container hierarchy as it is returned by getObjectStack() |
Graph |
getGraph()
Returns the currently active graph object |
java.util.Collection |
getObjectStack()
Returns the current nesting of graphs and graph elements. |
java.lang.Object |
getSerializationProperty(java.lang.Object key)
Get a property value that specifies information about how to handle specific cases |
WriteEventHandler |
getWriteEvents()
Returns an implementation of WriteEventHandler that allows to subscribe to various
events in the write process. |
XmlWriter |
getWriter()
Returns the current XmlWriter implementation. |
void |
serialize(GraphMLWriteContext context,
java.lang.Object item,
java.lang.Class serializationType)
Serialize item to an XML representation. |
void |
serialize(java.lang.Object item)
Serialize item to an XML representation. |
Methods inherited from interface y.io.graphml.Lookup |
---|
lookup |
Method Detail |
---|
java.util.Collection getObjectStack()
The list contains the user objects which correspond to the graphml elements.
java.lang.Object getCurrentObject()
getObjectStack()
WriteEventHandler getWriteEvents()
WriteEventHandler
that allows to subscribe to various
events in the write process.
WriteEventHandler
instance.XmlWriter getWriter()
XmlWriter
implementation.
Graph getGraph()
java.lang.Object getSerializationProperty(java.lang.Object key)
key
- The identifier for the property
null
if no such property existsvoid serialize(java.lang.Object item) throws GraphMLWriteException
item
to an XML representation.
item
- The object that should be serialized.
GraphMLWriteException
void serialize(GraphMLWriteContext context, java.lang.Object item, java.lang.Class serializationType) throws GraphMLWriteException
item
to an XML representation.
This method is reserved for special use cases. Usually, you should just call serialize(Object)
instead.
context
- The current write context.item
- The object that should be serialized.serializationType
- The actual type of the serialization, in case it differs from the type of item
.
GraphMLWriteException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |