merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / runner / util / XSchemaHandlerImpl.java
blob2f8bb7cb897a25648e2c70415b51f3edf2ec6dbf
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XSchemaHandlerImpl.java,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 package util;
32 public class XSchemaHandlerImpl
33 implements com.sun.star.configuration.backend.XSchemaHandler {
34 protected String calls = "";
35 protected String ls = System.getProperty("line.separator");
37 public void addInstance(String str,
38 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
39 throws com.sun.star.configuration.backend.MalformedDataException,
40 com.sun.star.lang.WrappedTargetException {
41 calls += ("addInstance();" + ls);
44 public void addItemType(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
45 throws com.sun.star.configuration.backend.MalformedDataException,
46 com.sun.star.lang.WrappedTargetException {
47 calls += ("addItemType();" + ls);
50 public void addProperty(String str, short param,
51 com.sun.star.uno.Type type)
52 throws com.sun.star.configuration.backend.MalformedDataException,
53 com.sun.star.lang.WrappedTargetException {
54 calls += ("addProperty();" + ls);
57 public void addPropertyWithDefault(String str, short param, Object obj)
58 throws com.sun.star.configuration.backend.MalformedDataException,
59 com.sun.star.lang.WrappedTargetException {
60 calls += ("addPropertyWithDefault();" + ls);
63 public void endComponent()
64 throws com.sun.star.configuration.backend.MalformedDataException,
65 com.sun.star.lang.WrappedTargetException {
66 calls += ("endComponent();" + ls);
69 public void endNode()
70 throws com.sun.star.configuration.backend.MalformedDataException,
71 com.sun.star.lang.WrappedTargetException {
72 calls += ("endNode();" + ls);
75 public void endSchema()
76 throws com.sun.star.configuration.backend.MalformedDataException,
77 com.sun.star.lang.WrappedTargetException {
78 calls += ("endSchema();" + ls);
81 public void endTemplate()
82 throws com.sun.star.configuration.backend.MalformedDataException,
83 com.sun.star.lang.WrappedTargetException {
84 calls += ("endTemplate();" + ls);
87 public void importComponent(String str)
88 throws com.sun.star.configuration.backend.MalformedDataException,
89 com.sun.star.lang.WrappedTargetException {
90 calls += ("importComponent();" + ls);
93 public void startComponent(String str)
94 throws com.sun.star.configuration.backend.MalformedDataException,
95 com.sun.star.lang.WrappedTargetException {
96 calls += ("startComponent();" + ls);
99 public void startGroup(String str, short param)
100 throws com.sun.star.configuration.backend.MalformedDataException,
101 com.sun.star.lang.WrappedTargetException {
102 calls += ("startGroup();" + ls);
105 public void startGroupTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
106 short param)
107 throws com.sun.star.configuration.backend.MalformedDataException,
108 com.sun.star.lang.WrappedTargetException {
109 calls += ("startGroupTemplate();" + ls);
112 public void startSchema()
113 throws com.sun.star.configuration.backend.MalformedDataException,
114 com.sun.star.lang.WrappedTargetException {
115 calls += ("startSchema();" + ls);
118 public void startSet(String str, short param,
119 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
120 throws com.sun.star.configuration.backend.MalformedDataException,
121 com.sun.star.lang.WrappedTargetException {
122 calls += ("startSet();" + ls);
125 public void startSetTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
126 short param,
127 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier2)
128 throws com.sun.star.configuration.backend.MalformedDataException,
129 com.sun.star.lang.WrappedTargetException {
130 calls += ("startSetTemplate();" + ls);
133 public String getCalls() {
134 return calls;
137 public void cleanCalls() {
138 calls = "";