pl.psnc.dl.ege.webapp.request
Class ConversionsPropertiesHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by pl.psnc.dl.ege.webapp.request.ConversionsPropertiesHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

Provides SAX parsing functionality - for decoding xml conversion properties.

Translates contained properties into format understandable for converter.

Author:
mariuszs

Constructor Summary
ConversionsPropertiesHandler(java.lang.String xmlProperties)
          Constructor.
 
Method Summary
 void applyPathProperties(ConversionsPath cp)
          Assigns properties to conversions path.
 void characters(char[] buf, int offset, int len)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, 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

ConversionsPropertiesHandler

public ConversionsPropertiesHandler(java.lang.String xmlProperties)
                             throws RequestResolvingException
Constructor.

Parameters:
xmlProperties - - xml data as String
Throws:
RequestResolvingException
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String name,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

applyPathProperties

public void applyPathProperties(ConversionsPath cp)
                         throws RequestResolvingException
Assigns properties to conversions path.
Trying to assign properties to wrong conversions path will result in exception.

Parameters:
cp - - conversions path
Throws:
RequestResolvingException


Copyright © 2010. All Rights Reserved.