yext.graphml.processor
Class PostprocessorOutputHandler

java.lang.Object
  extended byyext.graphml.writer.AbstractOutputHandler
      extended byyext.graphml.processor.PostprocessorOutputHandler
All Implemented Interfaces:
OutputHandler

public class PostprocessorOutputHandler
extends AbstractOutputHandler

This output handler writes out a list of YModules and adds postprocessor instructions for them.


Field Summary
static Object PROCESSORS_DPKEY
           
 
Constructor Summary
PostprocessorOutputHandler()
           
 
Method Summary
 void printDataOutput(GraphMLWriteContext context, Graph graph, Object nodeedge, XmlWriter writer)
          Writes the data out.
 void printKeyAttributes(GraphMLWriteContext context, XmlWriter writer)
          Returns yfiles.type="postprocessors".
 void printKeyOutput(GraphMLWriteContext context, XmlWriter ips)
          Write the element content of the key tag for this graphml attribute
 
Methods inherited from class yext.graphml.writer.AbstractOutputHandler
getKeyAttributes, printDataAttributes, printDataOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESSORS_DPKEY

public static final Object PROCESSORS_DPKEY
Constructor Detail

PostprocessorOutputHandler

public PostprocessorOutputHandler()
Method Detail

printKeyAttributes

public void printKeyAttributes(GraphMLWriteContext context,
                               XmlWriter writer)
Returns yfiles.type="postprocessors".

Parameters:
context - the current write context
writer - XMLWriter instance that writes the result

printDataOutput

public void printDataOutput(GraphMLWriteContext context,
                            Graph graph,
                            Object nodeedge,
                            XmlWriter writer)
Description copied from class: AbstractOutputHandler
Writes the data out.

Specified by:
printDataOutput in class AbstractOutputHandler
Parameters:
context - the current writeContext.
graph - the current graph in the context.
nodeedge - the current node/edge in the context.
writer - the output-stream.

printKeyOutput

public void printKeyOutput(GraphMLWriteContext context,
                           XmlWriter ips)
Description copied from interface: OutputHandler
Write the element content of the key tag for this graphml attribute

Parameters:
context - the current write context
ips - XMLWriter instance that writes the result


Copyright ©2000-2008, yWorks GmbH. All rights reserved.