pl.psnc.dl.ege.webapp.request
Class ConversionsPropertiesHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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
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 |
ConversionsPropertiesHandler
public ConversionsPropertiesHandler(java.lang.String xmlProperties)
throws RequestResolvingException
- Constructor.
- Parameters:
xmlProperties
- - xml data as String
- Throws:
RequestResolvingException
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.