2005/5/9

     
 

class LibXMLAttr

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

acdk::xml::libxmldom::LibXMLAttr Class Reference

#include <LibXMLAttr.h>

Inheritance diagram for acdk::xml::libxmldom::LibXMLAttr:

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

Public Member Functions

 LibXMLAttr (xmlNodePtr np, bool ownsPtr=false)
RString getName ()
 Returns the name of this attribute.

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

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

void setValue (IN(RString) value) throw ( org::w3c::dom::RDOMException )
 On retrieval, the value of the attribute is returned as a string.

org::w3c::dom::RElement getOwnerElement ()
RString toString ()
 return a string representation of this object Object::toString() return getName() by default


Constructor & Destructor Documentation

acdk::xml::libxmldom::LibXMLAttr::LibXMLAttr xmlNodePtr  np,
bool  ownsPtr = false
[inline]
 


Member Function Documentation

RString acdk::xml::libxmldom::LibXMLAttr::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.

org::w3c::dom::RElement acdk::xml::libxmldom::LibXMLAttr::getOwnerElement  )  [inline]
 

bool acdk::xml::libxmldom::LibXMLAttr::getSpecified  )  [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.

RString acdk::xml::libxmldom::LibXMLAttr::getValue  )  [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.

void acdk::xml::libxmldom::LibXMLAttr::setValue IN(RString value  )  throw ( org::w3c::dom::RDOMException ) [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::libxmldom::LibXMLAttr::toString  )  [inline, virtual]
 

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

Reimplemented from acdk::xml::libxmldom::LibXMLNode.