org.processmining.framework.models.pdm.algorithms
Class PDMReader

java.lang.Object
  extended by org.processmining.framework.models.pdm.algorithms.PDMReader

public class PDMReader
extends java.lang.Object

Title: PDM reader

Description: Parses and reads the incoming PDM file, and loads the corresponding model into the ProM framework.

Copyright: Copyright (c) 2006

Company:

Version:
1.0
Author:
Irene Vanderfeesten

Method Summary
static void parseDataElement(org.w3c.dom.Node rootNode, PDMModel model)
          Parses an XML node of the type DataElement
static void parseInputElements(org.w3c.dom.Node rootNode, PDMOperation operation, PDMModel model)
          Parses an XML node of the type Input.
static void parseOperation(org.w3c.dom.Node rootNode, PDMModel model)
          Parses an XML node of the type Operation
static void parseOutputElements(org.w3c.dom.Node rootNode, PDMOperation operation, PDMModel model)
          Parses an XML node of the type Output.
static void parseResource(org.w3c.dom.Node rootNode, PDMModel model)
          Parses an XML node of the type Resource
static void parseResourceRef(org.w3c.dom.Node rootNode, PDMOperation operation, PDMModel model)
          Parses an XML node of the type ResourceRef.
static void parseRootElement(org.w3c.dom.Node rootNode, PDMModel model)
          Parses an XML node of the type RootElementRef
static PDMModel read(java.io.InputStream input)
          Read the PDM file waiting in the given stream, recognize a PDM model and store it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static PDMModel read(java.io.InputStream input)
                     throws java.lang.Exception
Read the PDM file waiting in the given stream, recognize a PDM model and store it.

Throws:
java.lang.Exception

parseDataElement

public static void parseDataElement(org.w3c.dom.Node rootNode,
                                    PDMModel model)
Parses an XML node of the type DataElement

Parameters:
rootNode - Node
model - PDMModel

parseRootElement

public static void parseRootElement(org.w3c.dom.Node rootNode,
                                    PDMModel model)
Parses an XML node of the type RootElementRef

Parameters:
rootNode - Node
model - PDMModel

parseResource

public static void parseResource(org.w3c.dom.Node rootNode,
                                 PDMModel model)
Parses an XML node of the type Resource

Parameters:
rootNode - Node
model - PDMModel

parseOperation

public static void parseOperation(org.w3c.dom.Node rootNode,
                                  PDMModel model)
Parses an XML node of the type Operation

Parameters:
rootNode - Node
model - PDMModel

parseInputElements

public static void parseInputElements(org.w3c.dom.Node rootNode,
                                      PDMOperation operation,
                                      PDMModel model)
Parses an XML node of the type Input.

Parameters:
rootNode - Node
operation - PDMOperation
model - PDMModel

parseOutputElements

public static void parseOutputElements(org.w3c.dom.Node rootNode,
                                       PDMOperation operation,
                                       PDMModel model)
Parses an XML node of the type Output.

Parameters:
rootNode - Node
operation - PDMOperation
model - PDMModel

parseResourceRef

public static void parseResourceRef(org.w3c.dom.Node rootNode,
                                    PDMOperation operation,
                                    PDMModel model)
Parses an XML node of the type ResourceRef.

Parameters:
rootNode - Node
operation - PDMOperation
model - PDMModel