1 /*
2 * File: IModelBuilder.java
3 * Created: 27.5.2007 8:36:06
4 *
5 * Copyright 2007 Michal Burda.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 package net.sf.webmancer.model;
23
24 import java.util.Map;
25
26
27 /**
28 * @author Michal Burda
29 *
30 */
31 public interface IModelBuilder {
32 /**
33 * @param uri
34 * @param elementName
35 * @param attributes
36 */
37 void startElement(String uri, String elementName, Map<String, String> attributes);
38
39 /**
40 * @param uri
41 * @param elementName
42 */
43 void startElement(String uri, String elementName);
44
45 /**
46 * @param uri
47 * @param elementName
48 */
49 void endElement();
50
51 /**
52 * @param text
53 */
54 void text(String text);
55
56 /**
57 * @param uri
58 * @param elementName
59 * @param attributes
60 * @param text
61 */
62 void element(String uri, String elementName, Map<String, String> attributes, String text);
63
64 /**
65 * @param uri
66 * @param elementName
67 * @param text
68 */
69 void element(String uri, String elementName, String text);
70
71 /**
72 * @param uri
73 * @param elementName
74 * @param attributes
75 */
76 void element(String uri, String elementName, Map<String, String> attributes);
77
78 /**
79 * @param uri
80 * @param elementName
81 */
82 void element(String uri, String elementName);
83
84 }