artefaktur
software engineer &        architecture

 
 
 
 

class XMLAttr

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::xml::dom::XMLAttr Class Reference

#include <XMLAttr.h>

Inheritance diagram for acdk::xml::dom::XMLAttr:

acdk::xml::dom::XMLNode org::w3c::dom::Attr acdk::lang::Object org::w3c::dom::Node acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

API: org.w3c.dom<br>.

Author:
Roger Rene Kommer
Version:
Revision
1.8
Date:
Date
2005/02/05 10:45:36


Public Member Functions

 XMLAttr (IN(RString) name, bool specified=false, IN(RString) value=)
RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual RString getName ()
 Returns the name of this attribute.

virtual bool getSpecified ()
 True if this attribute was explicitly given a value in the instance document, false otherwise.

virtual RString getValue ()
 On retrieval, the value of the attribute is returned as a string.

virtual void setValue (IN(RString) value)
 On retrieval, the value of the attribute is returned as a string.


Protected Attributes

RString _name
bool _specified
RString _value

Constructor & Destructor Documentation

acdk::xml::dom::XMLAttr::XMLAttr IN(RString name,
bool  specified = false,
IN(RString value =
[inline]
 


Member Function Documentation

virtual RString acdk::xml::dom::XMLAttr::getName  )  [inline, virtual]
 

Returns the name of this attribute.

If Node.localName is different from null, this attribute is a qualified name.

Implements org::w3c::dom::Attr.

virtual bool acdk::xml::dom::XMLAttr::getSpecified  )  [inline, virtual]
 

True if this attribute was explicitly given a value in the instance document, false otherwise.

If the application changed the value of this attribute node (even if it ends up having the same value as the default value) then it is set to true. The implementation may handle attributes with default values from other schemas similarly but applications should use Document.normalizeDocument() to guarantee this information is up-to-date.

Implements org::w3c::dom::Attr.

virtual RString acdk::xml::dom::XMLAttr::getValue  )  [inline, virtual]
 

On retrieval, the value of the attribute is returned as a string.

Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method Element.setAttribute().
Some specialized implementations, such as some [SVG 1.1] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting.

Implements org::w3c::dom::Attr.

virtual void acdk::xml::dom::XMLAttr::setValue IN(RString value  )  [inline, virtual]
 

On retrieval, the value of the attribute is returned as a string.

Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method Element.setAttribute().
Some specialized implementations, such as some [SVG 1.1] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting.

Exceptions:
DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

Implements org::w3c::dom::Attr.

RString acdk::xml::dom::XMLAttr::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.


Member Data Documentation

RString acdk::xml::dom::XMLAttr::_name [protected]
 

Reimplemented from acdk::xml::dom::XMLNode.

bool acdk::xml::dom::XMLAttr::_specified [protected]
 

RString acdk::xml::dom::XMLAttr::_value [protected]
 

Reimplemented from acdk::xml::dom::XMLNode.

 
Last modified 2005-05-08 18:34 by SYSTEM By Artefaktur, Ing. Bureau Kommer