1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package org.openoffice.xmerge;
25 
26 /**
27  *  <p>A <code>ConverterCapabilities</code> object is used by
28  *  <code>DocumentMerger</code> implementations.  The
29  *  <code>ConverterCapabilities</code> indicates which
30  *  &quot;Office&quot; XML tags are supported by the
31  *  &quot;Device&quot; format.</p>
32  *
33  *  @see  org.openoffice.xmerge.PluginFactory
34  *  @see  org.openoffice.xmerge.DocumentMerger
35  */
36 public interface ConverterCapabilities {
37 
38 
39     /**
40      *  Test to see if the device document format supports the
41      *  tag in question.
42      *
43      *  @param  tag  The tag to check.
44      *
45      *  @return  true if the device format supports the
46      *           tag, false otherwise.
47      */
canConvertTag(String tag)48     boolean canConvertTag(String tag);
49 
50 
51     /**
52      *  Test to see if the device document format supports the
53      *  tag attribute in question.
54      *
55      *  @param  tag        The tag to check.
56      *  @param  attribute  The tag attribute to check.
57      *
58      *  @return  true if the device format supports the
59      *          attribute, false otherwise.
60      */
canConvertAttribute(String tag, String attribute)61     boolean canConvertAttribute(String tag, String attribute);
62 }
63 
64