[#BloombergLP-balxml-ElementAttribute]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::ElementAttribute
:relfileprefix: ../../
:mrdocs:

Class to represent the properties of an attribute in an XML element tag&period; Note that this class is not value semantic and does not own any of its pointer values&period; The owner of the arguments used to set the value of a `ElementAttribute` is responsible for ensuring that the values remain valid or else must document the conditions that will make the values invalid&period; Some facets are computed the first time that they are needed&period; To avoid extra processing, the caller may supply otherwise&hyphen;computed facets at construction or by calling `reset`&period; Facets provided by the caller are not checked to ensure that they are consistent with one another&period;

== Synopsis

Declared in `&lt;balxml&lowbar;elementattribute&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ElementAttribute;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/ElementAttribute/_04enum.adoc[`Unnamed enum`] 
| Attribute flag bits for `ElementAttribute`&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balxml/ElementAttribute/2constructor-0d.adoc[`ElementAttribute`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/balxml/ElementAttribute/flags.adoc[`flags`] 
| Return the value of `flags` specified at the last call to `reset` or the constructor, if non&hyphen;zero, or zero otherwise&period; Pre&hyphen;defined flags are enumerated in the class definition&period;
| xref:BloombergLP/balxml/ElementAttribute/isNull.adoc[`isNull`] 
| Return true if this object is null&period; More precisely, return true if `qualifiedName()` returns 0&period; A default&hyphen;constructed object will be null, as will an object that was reset with no arguments&period;
| xref:BloombergLP/balxml/ElementAttribute/localName.adoc[`localName`] 
| Return the value of `localName` specified at the last call to `reset` or the constructor, if non&hyphen;zero, else return the local part of the qualified name&period; More precisely, return the portion of `qualifiedName()` after the colon, if any, or the entire `qualifiedName()` if there is no colon&period;
| xref:BloombergLP/balxml/ElementAttribute/namespaceId.adoc[`namespaceId`] 
| Return the value of `localName` specified at the last call to `reset` or the constructor, if not `INT&lowbar;MIN`, else return the ID returned by the prefix stack for the current value of `prefix()`&period; Return &hyphen;1 if `prefix()` is an empty string, `prefixStack()` is zero, or `prefix()` is not active in the prefix stack&period; Note that, as per the XML namespace standard, an empty prefix does _NOT_ refer to the default namespace, but rather refers to _NO_ namespace&period;
| xref:BloombergLP/balxml/ElementAttribute/namespaceUri.adoc[`namespaceUri`] 
| Return the value of `namespaceUri` specified at the last call to `reset` or the constructor, if non&hyphen;zero, else return the URI returned by the prefix stack for the current value of `prefix()`&period; Return an empty string if `prefix()` is an empty string, `prefixStack()` is zero, or `prefix()` is not active in the prefix stack&period; Note that, as per the XML namespace standard, an empty prefix does _NOT_ refer to the default namespace, but rather refers to _NO_ namespace&period;
| xref:BloombergLP/balxml/ElementAttribute/prefix.adoc[`prefix`] 
| Return the value of `prefix` specified at the last call to `reset` or the constructor, if non&hyphen;zero, else return a copy of the prefix portion of the qualified name&period; More precisely, return a copy of the portion of `qualifiedName()` up to, but not including, the colon&period; Return an empty string if the qualified name has no colon or if `prefixStack()` returns zero&period;
| xref:BloombergLP/balxml/ElementAttribute/prefixStack.adoc[`prefixStack`] 
| Return the value of `prefixStack` specified at the last call to `reset` or the constructor or 0 if no prefix stack was specified&period;
| xref:BloombergLP/balxml/ElementAttribute/print.adoc[`print`] 
| Format this object to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to `stream`&period; If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects&period; If `level` is negative, suppress indentation of the first line&period; If `spacesPerLevel` is negative, format the entire output on one line&period; If `stream` is not valid on entry, this operation has no effect&period; Facet values that have not yet been computed are represented by &quot;&lt;null&gt;&quot; in the resulting stream&period;
| xref:BloombergLP/balxml/ElementAttribute/qualifiedName.adoc[`qualifiedName`] 
| Return the value of `qualifiedName` specified at the last call to `reset` or the constructor or 0 if no qualified name was specified&period;
| xref:BloombergLP/balxml/ElementAttribute/reset-0b.adoc[`reset`] 
| `reset` overloads
| xref:BloombergLP/balxml/ElementAttribute/value.adoc[`value`] 
| Return the value of `value` specified at the last call to `reset` or the constructor or 0 if no value was specified&period;
| xref:BloombergLP/balxml/ElementAttribute/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;ElementAttribute, is&lowbar;trivially&lowbar;copyable&gt;`] 
| `ElementAttribute` is trivially copyable&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
