yext.graphml.module
Class XMLToGraphMLInput

java.lang.Object
  extended byy.module.YModule
      extended byy.module.io.IOHandlerModule
          extended byyext.graphml.module.XMLToGraphMLInput

public class XMLToGraphMLInput
extends IOHandlerModule

A module that imports graphs given in arbitrary XML format. A XSL stylesheet must be specified that transforms the input to a valid GraphML file. This module provides an option handler that allows to specify the location of the XSL stylesheet. Additionally, it provides a list of predefined XSL stylesheets useful for specific XML formats.


Field Summary
 
Fields inherited from class y.module.io.IOHandlerModule
INPUT_MODE, OPTION_CLIP_GRAPH, OPTION_CLIP_TYPE, OPTION_CLIP_VIEW, OPTION_CUSTOM_HEIGHT, OPTION_CUSTOM_WIDTH, OPTION_GENERATE_HTML_TABLE, OPTION_MARGIN, OPTION_SCALING_FACTOR, OPTION_SIZE_TYPE, OPTION_SIZE_USE_CUSTOM_HEIGHT, OPTION_SIZE_USE_CUSTOM_WIDTH, OPTION_SIZE_USE_ORIGINAL, OPTION_TILE_COLUMN_COUNT, OPTION_TILE_ROW_COUNT, OPTION_TILING_ACTIVE, OUTPUT_MODE, TAB_TILING, TAB_VIEWPORT, vpc
 
Fields inherited from class y.module.YModule
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS
 
Constructor Summary
XMLToGraphMLInput()
          Creates a new instance of XMLToGrapHMLInput.
 
Method Summary
protected  IOHandler createIOHandler()
          Returns an XMLXSLIOHandler that uses GraphMLIOHandler as the delegate reader.
 OptionHandler createOptionHandler()
          Creates a new OptionHandler that allows to specify the location of a stylesheet.
 String getXSLFile()
          Returns the XSL stylesheet that will be used to transform the given XML file to a valid GraphML file.
protected  void init()
           
 void setXSLFile(String fileName)
          Sets the XSL stylesheet that will be used to transform the given XML file to a valid GraphML file.
 
Methods inherited from class y.module.io.IOHandlerModule
addTilingOptions, addViewPortOptions, adoptViewPortOptions, configureViewPort, getIOHandler, getIOMode, getURL, mainrun, setIOHandler, setIOMode, setURL
 
Methods inherited from class y.module.YModule
addModuleListener, createThread, dispose, exceptionHappened, fitGraph2DView, getAuthor, getDescription, getExitStatus, getGraph2D, getGraph2DView, getModuleName, getOptionHandler, getTimer, getView, isAbortable, isBackupRealizersEnabled, removeModuleListener, run, setBackupRealizersEnabled, setExitStatus, setGraph2D, setModuleName, setOptionHandler, start, startAsThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLToGraphMLInput

public XMLToGraphMLInput()
Creates a new instance of XMLToGrapHMLInput.

Method Detail

createIOHandler

protected IOHandler createIOHandler()
Returns an XMLXSLIOHandler that uses GraphMLIOHandler as the delegate reader.


createOptionHandler

public OptionHandler createOptionHandler()
Creates a new OptionHandler that allows to specify the location of a stylesheet.


init

protected void init()

setXSLFile

public void setXSLFile(String fileName)
Sets the XSL stylesheet that will be used to transform the given XML file to a valid GraphML file.


getXSLFile

public String getXSLFile()
Returns the XSL stylesheet that will be used to transform the given XML file to a valid GraphML file.



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