cid#1607171 Data race condition
[LibreOffice.git] / odk / examples / java / Inspector / XUnoNode.java
blob11eba35dacf21ee34dd6bbda962845c4fc65b619
1 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 import com.sun.star.uno.Type;
3 /*************************************************************************
5 * The Contents of this file are made available subject to the terms of
6 * the BSD license.
8 * Copyright 2000, 2010 Oracle and/or its affiliates.
9 * All rights reserved.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of Sun Microsystems, Inc. nor the names of its
20 * contributors may be used to endorse or promote products derived
21 * from this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
30 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
32 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
33 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 *************************************************************************/
38 public interface XUnoNode {
40 public static final int nINTERFACE = 1;
41 public static final int nSERVICE = 2;
42 public static final int nOTHERS = 3;
44 public String getAnchor();
46 public String getClassName();
48 public void openIdlDescription(String _sIDLUrl);
50 public boolean isFilterApplicable(String _sFilter);
52 public void setVisible(String _sFilter);
54 public void setParameterObjects(Object[] _oParamObjects);
56 public Object[] getParameterObjects();
58 public String getName();
60 public void setFoldable(boolean _bIsFoldable);
62 public Object getUnoObject();
64 public XUnoNode getParentNode();
66 public void addChildNode(XUnoNode _xUnoNode);
68 public void setLabel(String _sLabel);
70 public String getLabel();
72 public int getChildCount();
74 public XUnoNode getChild(int _index);
76 public int getNodeType();
78 // possible values are nINTERFACE, nSERVICE, nOTHERS
79 public void setNodeType(int _nNodeType);
81 /** delivers only the Uno-Type when the NodeType is set to nINTERFACE
82 * otherwise (when the NodeType has not been set returns null
84 public Type getUnoType();
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */