1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XAttributes.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #if
! defined INCLUDED__com_sun_star_xml_input_XAttributes_idl__
31 #define INCLUDED__com_sun_star_xml_input_XAttributes_idl__
33 #include
<com
/sun
/star
/uno
/XInterface.idl
>
36 module com
{ module sun
{ module star
{ module xml
{ module input
{
38 /** An element's attributes
42 interface XAttributes
: com
::sun
::star
::uno
::XInterface
44 /** Gets the number of attributes.
51 /** Gets attribute index passing a QName.
56 attribute index or -1, if not found
58 long getIndexByQName
( [in] string qName
);
60 /** Gets attribute index passing a namespace uid and a localname.
67 attribute index or -1, if not found
69 long getIndexByUidName
( [in] long uid
, [in] string localName
);
71 /** Gets the QName of an attribute.
76 QName of attribute or empty string, if invalid index
78 string getQNameByIndex
( [in] long nIndex
);
80 /** Gets the namespace uid of an attribute.
85 namespace uid of attribute or -1, if invalid index
87 long getUidByIndex
( [in] long nIndex
);
89 /** Gets the localname of an attribute.
94 localname of attribute or empty string, if invalid index
96 string getLocalNameByIndex
( [in] long nIndex
);
98 /** Gets the value of an attribute.
103 value string or empty string, if invalid index
105 string getValueByIndex
( [in] long nIndex
);
107 /** For convenience: Gets the value of an attribute passing uid, localname.
114 value string or empty string, if invalid uid/localname
116 string getValueByUidName
( [in] long uid
, [in] string localName
);
118 /** Gets the type of an attribute, if possible.
123 type of attribute (if possible, else empty string)
125 string getTypeByIndex
( [in] long nIndex
);