org.graphdrawing.graphml.writer
Class XMLAttributesProviderAdapter

java.lang.Object
  extended byorg.graphdrawing.graphml.writer.XMLAttributesProviderAdapter
All Implemented Interfaces:
XMLAttributesProvider
Direct Known Subclasses:
FolderTypeXMLAttributesProvider

public class XMLAttributesProviderAdapter
extends Object
implements XMLAttributesProvider

Adapter implementation of XMLAttributesProvider that provides empty implementations of all methods in the interface


Constructor Summary
XMLAttributesProviderAdapter()
           
 
Method Summary
 void printEdgeAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <edge> element
 void printGraphAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <graph> element
 void printGraphMLAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <graphml> element
 void printHyperEdgeAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <hyperedge> element
 void printNodeAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <node> element
 void printPortAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write additional XML attributes for a <port> element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLAttributesProviderAdapter

public XMLAttributesProviderAdapter()
Method Detail

printNodeAttributes

public void printNodeAttributes(GraphMLWriteContext context,
                                XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <node> element

Specified by:
printNodeAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output

printEdgeAttributes

public void printEdgeAttributes(GraphMLWriteContext context,
                                XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <edge> element

Specified by:
printEdgeAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output

printPortAttributes

public void printPortAttributes(GraphMLWriteContext context,
                                XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <port> element

Specified by:
printPortAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output

printHyperEdgeAttributes

public void printHyperEdgeAttributes(GraphMLWriteContext context,
                                     XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <hyperedge> element

Specified by:
printHyperEdgeAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output

printGraphAttributes

public void printGraphAttributes(GraphMLWriteContext context,
                                 XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <graph> element

Specified by:
printGraphAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output

printGraphMLAttributes

public void printGraphMLAttributes(GraphMLWriteContext context,
                                   XmlWriter writer)
Description copied from interface: XMLAttributesProvider
Write additional XML attributes for a <graphml> element

Specified by:
printGraphMLAttributes in interface XMLAttributesProvider
Parameters:
context - the current write context
writer - the writer instance that writes the output


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