#include <xml/attribute.h>
Link against: xmlframework.lib
class Xml::RAttribute |
Public Member Functions | |
---|---|
RAttribute() | |
IMPORT_C const RTagInfo & | Attribute() |
IMPORT_C void | Close() |
IMPORT_C RAttribute | Copy() |
IMPORT_C void | Open(const RString &, const RString &, const RString &, const TAttributeType) |
IMPORT_C void | Open(const RString &, const RString &, const RString &, const RString &, const TAttributeType) |
IMPORT_C void | SetValue(const RString &) |
IMPORT_C TAttributeType | Type() |
IMPORT_C const RString & | Value() |
The RAttribute class holds an attribute's description belonging to an element.
See also: RAttributeArray
IMPORT_C const RTagInfo & | Attribute | ( | ) | const |
This method returns a handle to the attribute's name details.
IMPORT_C void | Close | ( | ) |
This method cleans up the object before destruction. It releases all resources in accordance to the R Class pattern.
IMPORT_C void | Open | ( | const RString & | aUri, |
const RString & | aPrefix, | |||
const RString & | aLocalName, | |||
const TAttributeType | aType = EAttributeType_NONE | |||
) |
This method sets the attribute's contents, taking ownership of the RStrings.
Parameters | |
---|---|
aUri | The URI of the namespace. |
aPrefix | The prefix of the qualified name. |
aLocalName | The local name of the qualified name. |
aType | The type associated with this attribute. |
IMPORT_C void | Open | ( | const RString & | aUri, |
const RString & | aPrefix, | |||
const RString & | aLocalName, | |||
const RString & | aValue, | |||
const TAttributeType | aType = EAttributeType_NONE | |||
) |
This method sets all the attribute's contents, taking ownership of the RStrings.
Parameters | |
---|---|
aUri | The URI of the namespace. |
aPrefix | The prefix of the qualified name. |
aLocalName | The local name of the qualified name. |
aValue | The value associated with this attribute. |
aType | The type associated with this attribute. |
IMPORT_C TAttributeType | Type | ( | ) | const |
This method returns the attribute's type.
IMPORT_C const RString & | Value | ( | ) | const |
This method returns a handle to the attribute value. If the attribute value is a list of tokens (IDREFS, ENTITIES or NMTOKENS), the tokens will be concatenated into a single RString with each token separated by a single space.