Update ooo320-m1
[ooovba.git] / odk / examples / java / Inspector / XUnoNode.java
blob6bde939d4ea6517f51caad98e14861ab98494c68
1 import com.sun.star.uno.Type;
2 /*************************************************************************
4 * $RCSfile: XUnoNode.java,v $
6 * $Revision: 1.3 $
8 * last change: $Author: rt $ $Date: 2007-04-04 09:25:00 $
10 * The Contents of this file are made available subject to the terms of
11 * the BSD license.
13 * Copyright (c) 2003 by Sun Microsystems, Inc.
14 * All rights reserved.
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions
18 * are met:
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 * 3. Neither the name of Sun Microsystems, Inc. nor the names of its
25 * contributors may be used to endorse or promote products derived
26 * from this software without specific prior written permission.
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
31 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
32 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
33 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
34 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
35 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
36 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
37 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
38 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *************************************************************************/
43 public interface XUnoNode {
45 public static final int nINTERFACE = 1;
46 public static final int nSERVICE = 2;
47 public static final int nOTHERS = 3;
49 public String getAnchor();
51 public String getClassName();
53 public void openIdlDescription(String _sIDLUrl);
55 public boolean isFilterApplicable(String _sFilter);
57 public void setVisible(String _sFilter);
59 public void setParameterObjects(Object[] _oParamObjects);
61 public Object[] getParameterObjects();
63 public String getName();
65 public void setFoldable(boolean _bIsFoldable);
67 public Object getUnoObject();
69 public XUnoNode getParentNode();
71 public void addChildNode(XUnoNode _xUnoNode);
73 public void setLabel(String _sLabel);
75 public String getLabel();
77 public int getChildCount();
79 public XUnoNode getChild(int _index);
81 public int getNodeType();
83 // possible values are nINTERFACE, nSERVICE, nOTHERS
84 public void setNodeType(int _nNodeType);
86 /** delivers only the Uno-Type when the NodeType is set to nINTERFACE
87 * otherwise (when the NodeType has not been set returns null
89 public Type getUnoType();