summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/xml/sax/XFastAttributeList.idl
blob: 1459f2d15ab5d83ffd558f7c69f93879dc953e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


module com {  module sun {  module star {  module xml {  module sax {


/** a container for the attributes of an XML element.

    <br>Attributes are separated into known attributes and unknown attributes.
    <p>Known attributes have a local name that is known to the XFastTokenHandler
    registered at the XFastParser which created the sax event containing
    this attributes. If an attribute also has a namespace, that must be registered
    at the XFastParser, else this attribute is also unknown even if
    the local name is known.
 */
interface XFastAttributeList: com::sun::star::uno::XInterface
{
    /** checks if an attribute is available.<br>

        @param Token
            contains the integer token from the XFastTokenHandler
            registered at the XFastParser.<br>

            If the attribute name has a namespace that was registered with the
            XFastParser, Token contains the integer token of the
            attributes local name from the XFastTokenHandler and
            the integer token of the namespace combined with an arithmetic
            <b>or</b> operation.

        @returns
            `TRUE`, if the attribute is available
    */
    boolean hasAttribute( [in] long Token );

    /** retrieves the token of an attribute value.<br>

        @param Token
            contains the integer token from the XFastTokenHandler
            registered at the XFastParser.<br>

            If the attribute name has a namespace that was registered with the
            XFastParser, Token contains the integer token of the
            attributes local name from the XFastTokenHandler and
            the integer token of the namespace combined with an arithmetic
            <b>or</b> operation.

        @returns
            The integer token of the value from the attribute or FastToken::Invalid

        @throws SAXEXception
            if the attribute is not available

    */
    long getValueToken( [in] long Token )
        raises( SAXException );

    /**retrieves the token of an attribute value.<br>

        @param Token
            contains the integer token from the XFastTokenHandler
            registered at the XFastParser.<br>

            If the attribute name has a namespace that was registered with the
            XFastParser, Token contains the integer token of the
            attributes local name from the XFastTokenHandler and
            the integer token of the namespace combined with an arithmetic
            <b>or</b> operation.

        @param Default
            This value will be returned if the attribute is not available

        @returns
            If the attribute is available it returns the integer token of the value
            from the attribute or FastToken::Invalid.
            If not the value of <code>Default</code> is returned.

    */
    long getOptionalValueToken( [in] long Token, [in] long Default );

    /** retrieves the value of an attribute.<br>

        @param Token
            contains the integer token from the XFastTokenHandler
            registered at the XFastParser.<br>

            If the attribute name has a namespace that was registered with the
            XFastParser, Token contains the integer token of the
            attributes local name from the XFastTokenHandler and
            the integer token of the namespace combined with an arithmetic
            <b>or</b> operation.

        @returns
            The string value from the attribute.

        @throws SAXEXception
            if the attribute is not available

    */
    string getValue( [in] long Token )
        raises( SAXException );

    /** retrieves the value of an attribute.<br>

        @param Token
            contains the integer token from the XFastTokenHandler
            registered at the XFastParser.<br>

            If the attribute name has a namespace that was registered with the
            XFastParser, Token contains the integer token of the
            attributes local name from the XFastTokenHandler and
            the integer token of the namespace combined with an arithmetic
            <b>or</b> operation.

        @returns
            The string value from the attribute or an empty string if the
            attribute is not available.
    */
    string getOptionalValue( [in] long Token );

    /** returns a sequence of attributes which names and or namespaces URLS
        can not be translated to tokens.
    */
    sequence< ::com::sun::star::xml::Attribute > getUnknownAttributes();

    /** returns a sequence of attributes which names and or namespaces URLS
        are translated to tokens.
    */
    sequence< ::com::sun::star::xml::FastAttribute > getFastAttributes();
};


}; }; }; }; };

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */