1*ef39d40dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ef39d40dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ef39d40dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ef39d40dSAndrew Rist  * distributed with this work for additional information
6*ef39d40dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ef39d40dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ef39d40dSAndrew Rist  * "License"); you may not use this file except in compliance
9*ef39d40dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ef39d40dSAndrew Rist  *
11*ef39d40dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ef39d40dSAndrew Rist  *
13*ef39d40dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ef39d40dSAndrew Rist  * software distributed under the License is distributed on an
15*ef39d40dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ef39d40dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*ef39d40dSAndrew Rist  * specific language governing permissions and limitations
18*ef39d40dSAndrew Rist  * under the License.
19*ef39d40dSAndrew Rist  *
20*ef39d40dSAndrew Rist  *************************************************************/
21*ef39d40dSAndrew Rist 
22*ef39d40dSAndrew Rist 
23cdf0e10cSrcweir package util;
24cdf0e10cSrcweir 
25cdf0e10cSrcweir public class XSchemaHandlerImpl
26cdf0e10cSrcweir     implements com.sun.star.configuration.backend.XSchemaHandler {
27cdf0e10cSrcweir     protected String calls = "";
28cdf0e10cSrcweir     protected String ls = System.getProperty("line.separator");
29cdf0e10cSrcweir 
addInstance(String str, com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)30cdf0e10cSrcweir     public void addInstance(String str,
31cdf0e10cSrcweir                             com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
32cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
33cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
34cdf0e10cSrcweir         calls += ("addInstance();" + ls);
35cdf0e10cSrcweir     }
36cdf0e10cSrcweir 
addItemType(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)37cdf0e10cSrcweir     public void addItemType(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
38cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
39cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
40cdf0e10cSrcweir         calls += ("addItemType();" + ls);
41cdf0e10cSrcweir     }
42cdf0e10cSrcweir 
addProperty(String str, short param, com.sun.star.uno.Type type)43cdf0e10cSrcweir     public void addProperty(String str, short param,
44cdf0e10cSrcweir                             com.sun.star.uno.Type type)
45cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
46cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
47cdf0e10cSrcweir         calls += ("addProperty();" + ls);
48cdf0e10cSrcweir     }
49cdf0e10cSrcweir 
addPropertyWithDefault(String str, short param, Object obj)50cdf0e10cSrcweir     public void addPropertyWithDefault(String str, short param, Object obj)
51cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
52cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
53cdf0e10cSrcweir         calls += ("addPropertyWithDefault();" + ls);
54cdf0e10cSrcweir     }
55cdf0e10cSrcweir 
endComponent()56cdf0e10cSrcweir     public void endComponent()
57cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
58cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
59cdf0e10cSrcweir         calls += ("endComponent();" + ls);
60cdf0e10cSrcweir     }
61cdf0e10cSrcweir 
endNode()62cdf0e10cSrcweir     public void endNode()
63cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
64cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
65cdf0e10cSrcweir         calls += ("endNode();" + ls);
66cdf0e10cSrcweir     }
67cdf0e10cSrcweir 
endSchema()68cdf0e10cSrcweir     public void endSchema()
69cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
70cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
71cdf0e10cSrcweir         calls += ("endSchema();" + ls);
72cdf0e10cSrcweir     }
73cdf0e10cSrcweir 
endTemplate()74cdf0e10cSrcweir     public void endTemplate()
75cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
76cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
77cdf0e10cSrcweir         calls += ("endTemplate();" + ls);
78cdf0e10cSrcweir     }
79cdf0e10cSrcweir 
importComponent(String str)80cdf0e10cSrcweir     public void importComponent(String str)
81cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
82cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
83cdf0e10cSrcweir         calls += ("importComponent();" + ls);
84cdf0e10cSrcweir     }
85cdf0e10cSrcweir 
startComponent(String str)86cdf0e10cSrcweir     public void startComponent(String str)
87cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
88cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
89cdf0e10cSrcweir         calls += ("startComponent();" + ls);
90cdf0e10cSrcweir     }
91cdf0e10cSrcweir 
startGroup(String str, short param)92cdf0e10cSrcweir     public void startGroup(String str, short param)
93cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
94cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
95cdf0e10cSrcweir         calls += ("startGroup();" + ls);
96cdf0e10cSrcweir     }
97cdf0e10cSrcweir 
startGroupTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier, short param)98cdf0e10cSrcweir     public void startGroupTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
99cdf0e10cSrcweir                                    short param)
100cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
101cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
102cdf0e10cSrcweir         calls += ("startGroupTemplate();" + ls);
103cdf0e10cSrcweir     }
104cdf0e10cSrcweir 
startSchema()105cdf0e10cSrcweir     public void startSchema()
106cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
107cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
108cdf0e10cSrcweir         calls += ("startSchema();" + ls);
109cdf0e10cSrcweir     }
110cdf0e10cSrcweir 
startSet(String str, short param, com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)111cdf0e10cSrcweir     public void startSet(String str, short param,
112cdf0e10cSrcweir                          com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
113cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
114cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
115cdf0e10cSrcweir         calls += ("startSet();" + ls);
116cdf0e10cSrcweir     }
117cdf0e10cSrcweir 
startSetTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier, short param, com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier2)118cdf0e10cSrcweir     public void startSetTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
119cdf0e10cSrcweir                                  short param,
120cdf0e10cSrcweir                                  com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier2)
121cdf0e10cSrcweir         throws com.sun.star.configuration.backend.MalformedDataException,
122cdf0e10cSrcweir                com.sun.star.lang.WrappedTargetException {
123cdf0e10cSrcweir         calls += ("startSetTemplate();" + ls);
124cdf0e10cSrcweir     }
125cdf0e10cSrcweir 
getCalls()126cdf0e10cSrcweir     public String getCalls() {
127cdf0e10cSrcweir         return calls;
128cdf0e10cSrcweir     }
129cdf0e10cSrcweir 
cleanCalls()130cdf0e10cSrcweir     public void cleanCalls() {
131cdf0e10cSrcweir         calls = "";
132cdf0e10cSrcweir     }
133cdf0e10cSrcweir }