tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / qadevOOo / runner / util / XSchemaHandlerImpl.java
blobcd72fd6ed11dba4f8b3b4a73f576ecfa5bf0e1d4
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 package util;
20 public class XSchemaHandlerImpl
21 implements com.sun.star.configuration.backend.XSchemaHandler {
22 private String calls = "";
23 private final String ls = System.getProperty("line.separator");
25 public void addInstance(String str,
26 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
27 throws com.sun.star.configuration.backend.MalformedDataException,
28 com.sun.star.lang.WrappedTargetException {
29 calls += ("addInstance();" + ls);
32 public void addItemType(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
33 throws com.sun.star.configuration.backend.MalformedDataException,
34 com.sun.star.lang.WrappedTargetException {
35 calls += ("addItemType();" + ls);
38 public void addProperty(String str, short param,
39 com.sun.star.uno.Type type)
40 throws com.sun.star.configuration.backend.MalformedDataException,
41 com.sun.star.lang.WrappedTargetException {
42 calls += ("addProperty();" + ls);
45 public void addPropertyWithDefault(String str, short param, Object obj)
46 throws com.sun.star.configuration.backend.MalformedDataException,
47 com.sun.star.lang.WrappedTargetException {
48 calls += ("addPropertyWithDefault();" + ls);
51 public void endComponent()
52 throws com.sun.star.configuration.backend.MalformedDataException,
53 com.sun.star.lang.WrappedTargetException {
54 calls += ("endComponent();" + ls);
57 public void endNode()
58 throws com.sun.star.configuration.backend.MalformedDataException,
59 com.sun.star.lang.WrappedTargetException {
60 calls += ("endNode();" + ls);
63 public void endSchema()
64 throws com.sun.star.configuration.backend.MalformedDataException,
65 com.sun.star.lang.WrappedTargetException {
66 calls += ("endSchema();" + ls);
69 public void endTemplate()
70 throws com.sun.star.configuration.backend.MalformedDataException,
71 com.sun.star.lang.WrappedTargetException {
72 calls += ("endTemplate();" + ls);
75 public void importComponent(String str)
76 throws com.sun.star.configuration.backend.MalformedDataException,
77 com.sun.star.lang.WrappedTargetException {
78 calls += ("importComponent();" + ls);
81 public void startComponent(String str)
82 throws com.sun.star.configuration.backend.MalformedDataException,
83 com.sun.star.lang.WrappedTargetException {
84 calls += ("startComponent();" + ls);
87 public void startGroup(String str, short param)
88 throws com.sun.star.configuration.backend.MalformedDataException,
89 com.sun.star.lang.WrappedTargetException {
90 calls += ("startGroup();" + ls);
93 public void startGroupTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
94 short param)
95 throws com.sun.star.configuration.backend.MalformedDataException,
96 com.sun.star.lang.WrappedTargetException {
97 calls += ("startGroupTemplate();" + ls);
100 public void startSchema()
101 throws com.sun.star.configuration.backend.MalformedDataException,
102 com.sun.star.lang.WrappedTargetException {
103 calls += ("startSchema();" + ls);
106 public void startSet(String str, short param,
107 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier)
108 throws com.sun.star.configuration.backend.MalformedDataException,
109 com.sun.star.lang.WrappedTargetException {
110 calls += ("startSet();" + ls);
113 public void startSetTemplate(com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier,
114 short param,
115 com.sun.star.configuration.backend.TemplateIdentifier templateIdentifier2)
116 throws com.sun.star.configuration.backend.MalformedDataException,
117 com.sun.star.lang.WrappedTargetException {
118 calls += ("startSetTemplate();" + ls);
121 public String getCalls() {
122 return calls;
125 public void cleanCalls() {
126 calls = "";