|
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.graph2d.AbstractWriteNodePortHandler
public abstract class AbstractWriteNodePortHandler
Abstract output handler for NodePort
data attributes in GraphML.
Constructor Summary | |
---|---|
protected |
AbstractWriteNodePortHandler()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getKey()
Returns the data type key that identifies the data that is written by this handler. |
java.util.Collection |
getKeyDefinitionAttributes()
Returns all XML attributes of the key element. |
protected java.lang.Object |
getValue(GraphMLWriteContext context,
java.lang.Object key)
Callback method that obtains the data for the given key. |
protected abstract void |
writePort(NodePort port,
XmlWriter writer,
GraphMLWriteContext context)
Serializes port data to the specified writer. |
protected void |
writeValueCore(GraphMLWriteContext context,
java.lang.Object data)
Core write that performs the actual writing of the data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractWriteNodePortHandler()
Method Detail |
---|
public java.util.Collection getKeyDefinitionAttributes()
AbstractOutputHandler
key
element.
getKeyDefinitionAttributes
in interface OutputHandler
getKeyDefinitionAttributes
in class AbstractOutputHandler
key
element.AbstractOutputHandler.addNameToKeyDefinition(String)
,
AbstractOutputHandler.addScopeToKeyDefinition(y.io.graphml.KeyScope)
,
AbstractOutputHandler.addTypeToKeyDefinition(y.io.graphml.KeyType)
,
AbstractOutputHandler.addUriToKeyDefinition(String)
protected abstract java.lang.String getKey()
protected java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key) throws GraphMLWriteException
AbstractOutputHandler
getValue
in class AbstractOutputHandler
context
- The context.key
- The key.
GraphMLWriteException
protected void writeValueCore(GraphMLWriteContext context, java.lang.Object data) throws GraphMLWriteException
AbstractOutputHandler
writeValueCore
in class AbstractOutputHandler
context
- The context.data
- The data.
GraphMLWriteException
protected abstract void writePort(NodePort port, XmlWriter writer, GraphMLWriteContext context) throws GraphMLWriteException
port
- the port instance whose data has to be serialized.writer
- the writer used for writing the port data.context
- miscellaneous context information.
GraphMLWriteException
- if the port data could not be serialized.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |