(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: xml :: dom ::

interface XAttr
Base Interfaces
XAttrXNode

XNode
(referenced interface's summary:)
The primary dom datatype

Methods' Summary
getName Returns the name of this attribute.  
getOwnerElement The Element node this attribute is attached to or null if this attribute is not in use.  
getSpecified If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.  
getValue On retrieval, the value of the attribute is returned as a string.  
setValue Sets the value of the attribute from a string. Throws: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.  
Methods' Details
getName
string
getName();

Description
Returns the name of this attribute.
getOwnerElement
XElement
getOwnerElement();

Description
The Element node this attribute is attached to or null if this attribute is not in use.
getSpecified
boolean
getSpecified();

Description
If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.
getValue
string
getValue();

Description
On retrieval, the value of the attribute is returned as a string.
setValue
void
setValue( [in] string  value )
raises( DOMException );

Description
Sets the value of the attribute from a string. Throws: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. 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.