Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: xml :: dom ::
interface XAttr
  Base Interfaces
      XAttr
      ┗ XNode
  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

Copyright © 2000, 2014 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.