1 /*
2 * Copyright (c) 2006-2007 Creative Sphere Limited.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *
10 * Creative Sphere - initial API and implementation
11 *
12 */
13 package org.abstracthorizon.danube.webdav.xml;
14
15 import org.xml.sax.Attributes;
16 import org.xml.sax.SAXException;
17
18 /**
19 * XML parser handler
20 *
21 * @author Daniel Sendula
22 */
23 public interface XMLParserHandler {
24
25 /**
26 * Start tag handling
27 * @param current current object
28 * @param tag tag
29 * @param attributes tag attributes
30 * @return new object
31 * @throws SAXException sax exception
32 */
33 Object start(Object current, String tag, Attributes attributes) throws SAXException;
34
35 /**
36 * End tag handling
37 * @param current current object
38 * @param tag tag
39 * @param value tag's value
40 * @return new object
41 * @throws SAXException sax exception
42 */
43 Object end(Object current, String tag, String value) throws SAXException;
44 }