SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PmtDomElement Class Reference

PmtDomElement is a convenience wrapper around the DOM_Element class of the XML Parser. More...

#include <PmtDomElement.h>

Inheritance diagram for PmtDomElement:

[legend]
Collaboration diagram for PmtDomElement:
[legend]
List of all members.

Public Types

enum  { PMT_MAX_ATTR_LEN = 256 }

Public Methods

 PmtDomElement ()
 This method creates an empty DOM Element. More...

 PmtDomElement (const DOM_Element &element)
 This method creates a Dom_Node from the element passed in. More...

 ~PmtDomElement ()
 This is the destructor. More...

PmtDomElement & operator= (const PmtDomElement &pmtDomElement)
 This is the assignment operator. More...

const DOM_Element & getDomElement () const
DOMString getTagName () const
 This method returns the node's tag name. More...

void getTagName (SPmtString &tagName) const
 This method returns the node's tag name via the parameter list. More...

bool isTagNameGivenName (const char *name) const
 This method tests to see if the tag name is a given name. More...

DOMString getElementValue () const
 This method gets the text node child first, before obtaining the value. More...

void getElementValueAscii (char *value) const
 This method gets the text node child first before obtaining the value. More...

DOMString getAttrValue (const DOMString &attrName) const
 This method returns the attribute value. More...

SPmtString getAttrValue (const char *attrName) const
Special Assignment Operators
These deliberately return void, since under no circumstances do we want to allow initialization chaining.

void operator= (const DOM_Element &domElement)
 This assignment operator takes a DOM_Element. More...

void operator= (const int nullPtr)
 This assignment operator creates a NULL Dom_Element. More...

void operator= (const DOM_Node &node)
 This assignment operator creates a DOM_Node. More...


Detailed Description

PmtDomElement is a convenience wrapper around the DOM_Element class of the XML Parser.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
PMT_MAX_ATTR_LEN 


Constructor & Destructor Documentation

PmtDomElement::PmtDomElement   [inline]
 

This method creates an empty DOM Element.

PmtDomElement::PmtDomElement const DOM_Element &    element [inline]
 

This method creates a Dom_Node from the element passed in.

PmtDomElement::~PmtDomElement   [inline]
 

This is the destructor.


Member Function Documentation

SPmtString PmtDomElement::getAttrValue const char *    attrName const
 

DOMString PmtDomElement::getAttrValue const DOMString &    attrName const
 

This method returns the attribute value.

const DOM_Element& PmtDomElement::getDomElement   const [inline]
 

DOMString PmtDomElement::getElementValue   const
 

This method gets the text node child first, before obtaining the value.

void PmtDomElement::getElementValueAscii char *    value const
 

This method gets the text node child first before obtaining the value.

void PmtDomElement::getTagName SPmtString   tagName const [inline]
 

This method returns the node's tag name via the parameter list.

DOMString PmtDomElement::getTagName   const [inline]
 

This method returns the node's tag name.

bool PmtDomElement::isTagNameGivenName const char *    name const
 

This method tests to see if the tag name is a given name.

void PmtDomElement::operator= const DOM_Node &    node [inline]
 

This assignment operator creates a DOM_Node.

Reimplemented from PmtDomNode.

Reimplemented in PmtSchemaElement.

void PmtDomElement::operator= const int    nullPtr [inline]
 

This assignment operator creates a NULL Dom_Element.

Reimplemented in PmtSchemaElement.

void PmtDomElement::operator= const DOM_Element &    domElement [inline]
 

This assignment operator takes a DOM_Element.

Reimplemented in PmtSchemaElement.

PmtDomElement & PmtDomElement::operator= const PmtDomElement &    pmtDomElement
 

This is the assignment operator.


The documentation for this class was generated from the following files:
Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.