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 import com.sun.star.uno.Type;
23 
24 
25 
26 public interface XUnoNode {
27 
28     public static final int nINTERFACE = 1;
29     public static final int nSERVICE = 2;
30     public static final int nOTHERS = 3;
31 
getAnchor()32     public String getAnchor();
33 
getClassName()34     public String getClassName();
35 
openIdlDescription(String _sIDLUrl)36     public void openIdlDescription(String _sIDLUrl);
37 
isFilterApplicable(String _sFilter)38     public boolean isFilterApplicable(String _sFilter);
39 
setVisible(String _sFilter)40     public void setVisible(String _sFilter);
41 
setParameterObjects(Object[] _oParamObjects)42     public void setParameterObjects(Object[] _oParamObjects);
43 
getParameterObjects()44     public Object[] getParameterObjects();
45 
getName()46     public String getName();
47 
setFoldable(boolean _bIsFoldable)48     public void setFoldable(boolean _bIsFoldable);
49 
getUnoObject()50     public Object getUnoObject();
51 
getParentNode()52     public XUnoNode getParentNode();
53 
addChildNode(XUnoNode _xUnoNode)54     public void addChildNode(XUnoNode _xUnoNode);
55 
setLabel(String _sLabel)56     public void  setLabel(String _sLabel);
57 
getLabel()58     public String getLabel();
59 
getChildCount()60     public int getChildCount();
61 
getChild(int _index)62     public XUnoNode getChild(int _index);
63 
getNodeType()64     public int getNodeType();
65 
66     // possible values are nINTERFACE, nSERVICE, nOTHERS
setNodeType(int _nNodeType)67     public void setNodeType(int _nNodeType);
68 
69     /** delivers only the Uno-Type when the NodeType is set to nINTERFACE
70      *  otherwise (when the NodeType has not been set returns null
71      */
getUnoType()72     public Type getUnoType();
73 }
74