| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.output.AbstractOutputHandler
y.io.graphml.graph2d.PostprocessorOutputHandler
public class PostprocessorOutputHandler
This output handler writes out a list of YModule instances and adds
 postprocessor instructions for them.
| Field Summary | |
|---|---|
| static java.lang.Object | PROCESSORS_DPKEYDeprecated. Data provider key for all registered post-processors that should be written by this handler. | 
| Constructor Summary | |
|---|---|
| PostprocessorOutputHandler()Deprecated. | |
| Method Summary | |
|---|---|
| protected  java.lang.String | encodeType(YModule module,
           GraphMLWriteContext context)Deprecated. Returns the external name for the given module. | 
|  java.util.Collection | getKeyDefinitionAttributes()Deprecated. Returns all XML attributes of the keyelement. | 
|  WritePrecedence | getPrecedence()Deprecated. Gets the write precedence for the handler. | 
| protected  java.lang.Object | getValue(GraphMLWriteContext context,
         java.lang.Object key)Deprecated. Callback method that obtains the data for the given key. | 
|  void | writeKeyDefinitionContent(GraphMLWriteContext ctx)Deprecated. Writes the contents of the key definition. | 
| protected  void | writeValueCore(GraphMLWriteContext context,
               java.lang.Object data)Deprecated. 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 | 
| Field Detail | 
|---|
public static final java.lang.Object PROCESSORS_DPKEY
Graph instance.
 The associated value has to be either a YModule instance
 or a List instance holding only YModule
 instances.
| Constructor Detail | 
|---|
public PostprocessorOutputHandler()
| Method Detail | 
|---|
public WritePrecedence getPrecedence()
AbstractOutputHandler
getPrecedence in interface OutputHandlergetPrecedence in class AbstractOutputHandlerAbstractOutputHandler.setPrecedence(WritePrecedence)public java.util.Collection getKeyDefinitionAttributes()
AbstractOutputHandlerkey element.
getKeyDefinitionAttributes in interface OutputHandlergetKeyDefinitionAttributes in class AbstractOutputHandlerkey element.AbstractOutputHandler.addNameToKeyDefinition(String), 
AbstractOutputHandler.addScopeToKeyDefinition(y.io.graphml.KeyScope), 
AbstractOutputHandler.addTypeToKeyDefinition(y.io.graphml.KeyType), 
AbstractOutputHandler.addUriToKeyDefinition(String)public void writeKeyDefinitionContent(GraphMLWriteContext ctx)
AbstractOutputHandler
 Depending on whether AbstractOutputHandler.setWriteKeyDefault(boolean) is enabled and AbstractOutputHandler.hasDefaultValueAssigned()
 is true, this method will write the GraphML 'default' element and use AbstractOutputHandler.writeValueCore(y.io.graphml.output.GraphMLWriteContext,Object)
 to serialize the AbstractOutputHandler.getDefaultValue().
 
writeKeyDefinitionContent in interface OutputHandlerwriteKeyDefinitionContent in class AbstractOutputHandlerctx - The context.
protected void writeValueCore(GraphMLWriteContext context,
                              java.lang.Object data)
AbstractOutputHandler
writeValueCore in class AbstractOutputHandlercontext - The context.data - The data.
protected java.lang.String encodeType(YModule module,
                                      GraphMLWriteContext context)
By default, this method returns the module's qualified class name.
Note: To prevent obfuscation from breaking post-processing support, an explicit name mapping should be specified for class names of modules that are used as post-processors.
NameMapper, 
PostprocessorInputHandler.newModule(String, y.io.graphml.input.GraphMLParseContext)
protected java.lang.Object getValue(GraphMLWriteContext context,
                                    java.lang.Object key)
                             throws GraphMLWriteException
AbstractOutputHandler
getValue in class AbstractOutputHandlercontext - The context.key - The key.
GraphMLWriteException| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||