:: 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 local name.  
getQNameByIndex Gets the QName of an attribute.  
getUidByIndex Gets the namespace uid of an attribute.  
getLocalNameByIndex Gets the local name of an attribute.  
getValueByIndex Gets the value of an attribute.  
getValueByUidName For convenience: Gets the value of an attribute passing uid, local name.  
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 local name.
Parameter uid
namespace uid
Parameter localName
local name
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 local name of an attribute.
Parameter nIndex
index
Returns
local name 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, local name.
Parameter uid
namespace uid
Parameter localName
local name
Returns
value string or empty string, if invalid uid/local name
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