Class to represent the properties of an attribute in an XML element tag. Note that this class is not value semantic and does not own any of its pointer values. 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. Some facets are computed the first time that they are needed. To avoid extra processing, the caller may supply otherwise-computed facets at construction or by calling reset. Facets provided by the caller are not checked to ensure that they are consistent with one another.
Declared in <balxml_elementattribute.h>
class ElementAttribute;
| Name | Description |
|---|---|
Unnamed enum | Attribute flag bits for ElementAttribute. |
| Name | Description |
|---|---|
ElementAttribute [constructor] | Constructors |
flags | Return the value of flags specified at the last call to reset or the constructor, if non-zero, or zero otherwise. Pre-defined flags are enumerated in the class definition. |
isNull | Return true if this object is null. More precisely, return true if qualifiedName() returns 0. A default-constructed object will be null, as will an object that was reset with no arguments. |
localName | Return the value of localName specified at the last call to reset or the constructor, if non-zero, else return the local part of the qualified name. More precisely, return the portion of qualifiedName() after the colon, if any, or the entire qualifiedName() if there is no colon. |
namespaceId | Return the value of localName specified at the last call to reset or the constructor, if not INT_MIN, else return the ID returned by the prefix stack for the current value of prefix(). Return -1 if prefix() is an empty string, prefixStack() is zero, or prefix() is not active in the prefix stack. Note that, as per the XML namespace standard, an empty prefix does NOT refer to the default namespace, but rather refers to NO namespace. |
namespaceUri | Return the value of namespaceUri specified at the last call to reset or the constructor, if non-zero, else return the URI returned by the prefix stack for the current value of prefix(). Return an empty string if prefix() is an empty string, prefixStack() is zero, or prefix() is not active in the prefix stack. Note that, as per the XML namespace standard, an empty prefix does NOT refer to the default namespace, but rather refers to NO namespace. |
prefix | Return the value of prefix specified at the last call to reset or the constructor, if non-zero, else return a copy of the prefix portion of the qualified name. More precisely, return a copy of the portion of qualifiedName() up to, but not including, the colon. Return an empty string if the qualified name has no colon or if prefixStack() returns zero. |
prefixStack | Return the value of prefixStack specified at the last call to reset or the constructor or 0 if no prefix stack was specified. |
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. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line. If stream is not valid on entry, this operation has no effect. Facet values that have not yet been computed are represented by "<null>" in the resulting stream. |
qualifiedName | Return the value of qualifiedName specified at the last call to reset or the constructor or 0 if no qualified name was specified. |
reset | reset overloads |
value | Return the value of value specified at the last call to reset or the constructor or 0 if no value was specified. |
operator BloombergLP::bslmf::NestedTraitDeclaration<ElementAttribute, is_trivially_copyable> | ElementAttribute is trivially copyable. |