1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module xml
{ module sax
{
24 /** a container for the attributes of an XML element.
26 <br>Attributes are separated into known attributes and unknown attributes.
27 <p>Known attributes have a local name that is known to the XFastTokenHandler
28 registered at the XFastParser which created the sax event containing
29 this attributes. If an attribute also has a namespace, that must be registered
30 at the XFastParser, else this attribute is also unknown even if
31 the local name is known.
33 interface XFastAttributeList
: com
::sun
::star
::uno
::XInterface
35 /** checks if an attribute is available.<br>
38 contains the integer token from the XFastTokenHandler
39 registered at the XFastParser.<br>
41 If the attribute name has a namespace that was registered with the
42 XFastParser, Token contains the integer token of the
43 attributes local name from the XFastTokenHandler and
44 the integer token of the namespace combined with an arithmetic
48 `TRUE`, if the attribute is available
50 boolean hasAttribute
( [in] long Token
);
52 /** retrieves the token of an attribute value.<br>
55 contains the integer token from the XFastTokenHandler
56 registered at the XFastParser.<br>
58 If the attribute name has a namespace that was registered with the
59 XFastParser, Token contains the integer token of the
60 attributes local name from the XFastTokenHandler and
61 the integer token of the namespace combined with an arithmetic
65 The integer token of the value from the attribute or FastToken::Invalid
68 if the attribute is not available
71 long getValueToken
( [in] long Token
)
72 raises
( SAXException
);
74 /**retrieves the token of an attribute value.<br>
77 contains the integer token from the XFastTokenHandler
78 registered at the XFastParser.<br>
80 If the attribute name has a namespace that was registered with the
81 XFastParser, Token contains the integer token of the
82 attributes local name from the XFastTokenHandler and
83 the integer token of the namespace combined with an arithmetic
87 This value will be returned if the attribute is not available
90 If the attribute is available it returns the integer token of the value
91 from the attribute or FastToken::Invalid.
92 If not the value of <code>Default</code> is returned.
95 long getOptionalValueToken
( [in] long Token
, [in] long Default );
97 /** retrieves the value of an attribute.<br>
100 contains the integer token from the XFastTokenHandler
101 registered at the XFastParser.<br>
103 If the attribute name has a namespace that was registered with the
104 XFastParser, Token contains the integer token of the
105 attributes local name from the XFastTokenHandler and
106 the integer token of the namespace combined with an arithmetic
110 The string value from the attribute.
113 if the attribute is not available
116 string getValue
( [in] long Token
)
117 raises
( SAXException
);
119 /** retrieves the value of an attribute.<br>
122 contains the integer token from the XFastTokenHandler
123 registered at the XFastParser.<br>
125 If the attribute name has a namespace that was registered with the
126 XFastParser, Token contains the integer token of the
127 attributes local name from the XFastTokenHandler and
128 the integer token of the namespace combined with an arithmetic
132 The string value from the attribute or an empty string if the
133 attribute is not available.
135 string getOptionalValue
( [in] long Token
);
137 /** returns a sequence of attributes which names and or namespaces URLS
138 can not be translated to tokens.
140 sequence
< ::com
::sun
::star
::xml
::Attribute
> getUnknownAttributes
();
142 /** returns a sequence of attributes which names and or namespaces URLS
143 are translated to tokens.
145 sequence
< ::com
::sun
::star
::xml
::FastAttribute
> getFastAttributes
();
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */