:: com :: sun :: star :: xml :: sax ::
|
unpublished |
interface XFastAttributeList |
|
|
|
- Usage Restrictions
- not published
- Description
- a container for the attributes of an XML element.
Attributes are separated into known attributes and unknown attributes.
Known attributes have a local name that is known to the
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.
|
Methods' Details |
hasAttribute
boolean |
hasAttribute( |
[in] long |
Token ); |
- Description
- checks if an attribute is available.
- Parameter Token
- contains the integer token from the XFastTokenHandler
registered at the XFastParser.
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
or operation.
- Returns
- true, if the attribute is available
|
|
getValueToken
long |
getValueToken( |
[in] long |
Token ) |
raises( |
SAXException ); |
- Description
- retrieves the token of an attributes value.
- Parameter Token
- contains the integer token from the XFastTokenHandler
registered at the XFastParser.
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
or operation.
- Returns
- The integer token of the value from the attribute or FastToken::Invalid
- Throws
- SAXEXception
if the attribute is not available
|
|
getOptionalValueToken
long |
getOptionalValueToken( |
[in] long |
Token, |
| [in] long |
Default ); |
- Description
- retrieves the token of an attributes value.
- Parameter Token
- contains the integer token from the XFastTokenHandler
registered at the XFastParser.
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
or operation.
- Parameter 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 Default is returned.
|
|
getValue
- Description
- retrieves the value of an attributes.
- Parameter Token
- contains the integer token from the XFastTokenHandler
registered at the XFastParser.
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
or operation.
- Returns
- The string value from the attribute.
- Throws
- SAXEXception
if the attribute is not available
|
|
getOptionalValue
string |
getOptionalValue( |
[in] long |
Token ); |
- Description
- retrieves the value of an attributes.
- Parameter Token
- contains the integer token from the XFastTokenHandler
registered at the XFastParser.
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
or operation.
- Returns
- The string value from the attribute or an empty string if the
attribute is not available.
|
|
getUnknownAttributes
sequence< ::com::sun::star::xml::Attribute > |
getUnknownAttributes(); |
- Description
- returns a sequence of attributes which names and or namespaces URLS
can not be translated to tokens.
|
|
getFastAttributes
- Description
- returns a sequence of attributes which names and or namespaces URLS
are translated to tokens.
|
|
Top of Page
Copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.