Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: xml :: input ::

unpublished interface XAttributes
Usage Restrictions
not published
Description
An element's attributes @internal

Methods' Summary
getLength Gets the number of attributes.  
getIndexByQName Gets attribute index passing a QName.  
getIndexByUidName Gets attribute index passing a namespace uid and a localname.  
getQNameByIndex Gets the QName of an attribute.  
getUidByIndex Gets the namespace uid of an attribute.  
getLocalNameByIndex Gets the localname of an attribute.  
getValueByIndex Gets the value of an attribute.  
getValueByUidName For convenience: Gets the value of an attribute passing uid, localname.  
getTypeByIndex Gets the type of an attribute, if possible.  
Methods' Details
getLength
long
getLength();

Description
Gets the number of attributes.
Returns
number of attributes
getIndexByQName
long
getIndexByQName( [in] string  qName );

Description
Gets attribute index passing a QName.
Parameter qName
QName
Returns
attribute index or -1, if not found
getIndexByUidName
long
getIndexByUidName( [in] long  uid,
[in] string  localName );

Description
Gets attribute index passing a namespace uid and a localname.
Parameter uid
namespace uid
Parameter localName
localname
Returns
attribute index or -1, if not found
getQNameByIndex
string
getQNameByIndex( [in] long  nIndex );

Description
Gets the QName of an attribute.
Parameter nIndex
index
Returns
QName of attribute or empty string, if invalid index
getUidByIndex
long
getUidByIndex( [in] long  nIndex );

Description
Gets the namespace uid of an attribute.
Parameter nIndex
index
Returns
namespace uid of attribute or -1, if invalid index
getLocalNameByIndex
string
getLocalNameByIndex( [in] long  nIndex );

Description
Gets the localname of an attribute.
Parameter nIndex
index
Returns
localname of attribute or empty string, if invalid index
getValueByIndex
string
getValueByIndex( [in] long  nIndex );

Description
Gets the value of an attribute.
Parameter nIndex
index
Returns
value string or empty string, if invalid index
getValueByUidName
string
getValueByUidName( [in] long  uid,
[in] string  localName );

Description
For convenience: Gets the value of an attribute passing uid, localname.
Parameter uid
namespace uid
Parameter localName
localname
Returns
value string or empty string, if invalid uid/localname
getTypeByIndex
string
getTypeByIndex( [in] long  nIndex );

Description
Gets the type of an attribute, if possible.
Parameter nIndex
index
Returns
type of attribute (if possible, else empty string)
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.