gxXmlElementSpec Class Reference

Specifies the validation rules for an XML element during parsing. More...

#include <gxXmlElementSpec.h>

List of all members.

Public Member Functions

 gxXmlElementSpec (const char *specString)
virtual ~gxXmlElementSpec ()
void initialize (const char *specString)
bool isValidAttributeName (const char *attrName)
 Verifies that this element accepts the supplied attribute name.
bool isValidAttribute (gxXmlAttribute &attr)
 Verifies that this element accepts the supplied attribute.
bool areValidAttributes (gxXmlElement &element)
 Verifies that a given element instance contains no invalid attributes.
bool hasRequiredAttributes (gxXmlElement &element)
 Verifies that a given element instance has all required attributes.
std::string getLastErrorMessage ()

Public Attributes

bool isRoot
 Specifies whether this is the root element of the doc.
std::string name
 Element name.

Classes

class  AttrSpec


Detailed Description

Specifies the validation rules for an XML element during parsing.

This is much simpler than full DTD-style validation, however it catches some of the more obvious errors during Expat or SAX style parsing.


Constructor & Destructor Documentation

gxXmlElementSpec::gxXmlElementSpec const char *  specString  ) 
 

virtual gxXmlElementSpec::~gxXmlElementSpec  )  [virtual]
 


Member Function Documentation

bool gxXmlElementSpec::areValidAttributes gxXmlElement element  ) 
 

Verifies that a given element instance contains no invalid attributes.

std::string gxXmlElementSpec::getLastErrorMessage  ) 
 

bool gxXmlElementSpec::hasRequiredAttributes gxXmlElement element  ) 
 

Verifies that a given element instance has all required attributes.

void gxXmlElementSpec::initialize const char *  specString  ) 
 

bool gxXmlElementSpec::isValidAttribute gxXmlAttribute attr  ) 
 

Verifies that this element accepts the supplied attribute.

bool gxXmlElementSpec::isValidAttributeName const char *  attrName  ) 
 

Verifies that this element accepts the supplied attribute name.


Member Data Documentation

bool gxXmlElementSpec::isRoot
 

Specifies whether this is the root element of the doc.

std::string gxXmlElementSpec::name
 

Element name.


The documentation for this class was generated from the following file:
Generated on Mon Nov 21 01:01:37 2005 for gxLib by  doxygen 1.4.5