gov.bnl.star.offline.scheduler.request
Class RDLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by gov.bnl.star.offline.scheduler.request.RequestHandler
          extended by gov.bnl.star.offline.scheduler.request.RDLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class RDLHandler
extends RequestHandler

Get RDL request parse events from SAXParser and create a Request object

Version:
$Revision: 1.8 $ $Date: 2006/11/21 00:41:31 $
Author:
paulh

Field Summary
 
Fields inherited from class gov.bnl.star.offline.scheduler.request.RequestHandler
defaults, log, requests, xmlFileName
 
Constructor Summary
RDLHandler(java.lang.String xmlFileName)
          Parses a RDL request according to STAR scheduler RDL spec.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive raw character data from the parser.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Event received when parser finds the end of an element.
 void startElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName, org.xml.sax.Attributes attrs)
          Event received when parser encounters a new element.
 
Methods inherited from class gov.bnl.star.offline.scheduler.request.RequestHandler
getRequests, setDefaults
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDLHandler

public RDLHandler(java.lang.String xmlFileName)
Parses a RDL request according to STAR scheduler RDL spec.

Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
Receive raw character data from the parser.

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

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String sName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
Event received when parser encounters a new element.

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 uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws java.lang.RuntimeException
Event received when parser finds the end of an element. Does most of work to add values to Request.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
java.lang.RuntimeException


Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.