admin
Class TagExtractor

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by admin.TagExtractor
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class TagExtractor
extends org.xml.sax.helpers.DefaultHandler

TagExtractor uses SAX to extract and manage the logical content of a document. Author: Chiara Rasi. chiara.rasi(at)istge.it 04-10-2007


Constructor Summary
TagExtractor()
           
TagExtractor(JspWriter out)
          Takes a JspWriter as input from the JSP page that calls this method.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data.
 void endDocument()
          Receive notification of the end of a document.
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName)
          Receive notification of the end of an element.
 java.lang.String launch(java.lang.String path)
          Launches the parsing of the XML workflow document.
static void main(java.lang.String[] args)
          Main class for test purposes.
 void startDocument()
          The beginning of the XML workflow document.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes atts)
          When a XML tag is open this method calls the class GetWfInfo and values such as "workflowdescription","author","title",sources,sinks,semanticTypes,processors's data are captured.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagExtractor

public TagExtractor(JspWriter out)
Takes a JspWriter as input from the JSP page that calls this method.


TagExtractor

public TagExtractor()
Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
The beginning of the XML workflow document.

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qualifiedName,
                         org.xml.sax.Attributes atts)
When a XML tag is open this method calls the class GetWfInfo and values such as "workflowdescription","author","title",sources,sinks,semanticTypes,processors's data are captured.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qualifiedName)
Receive notification of the end of an element.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Receive notification of character data.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
Receive notification of the end of a document.

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

launch

public java.lang.String launch(java.lang.String path)
Launches the parsing of the XML workflow document. "path" is the path to the document.


main

public static void main(java.lang.String[] args)
Main class for test purposes.