#include <DTDGrammar.hpp>
Public Member Functions | |
DTDGrammar (MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
virtual | ~DTDGrammar () |
virtual Grammar::GrammarType | getGrammarType () const |
virtual const XMLCh * | getTargetNamespace () const |
virtual XMLElementDecl * | findOrAddElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const prefixName, const XMLCh *const qName, unsigned int scope, bool &wasAdded) |
virtual unsigned int | getElemId (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope) const |
virtual const XMLElementDecl * | getElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope) const |
virtual XMLElementDecl * | getElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const qName, unsigned int scope) |
virtual const XMLElementDecl * | getElemDecl (const unsigned int elemId) const |
virtual XMLElementDecl * | getElemDecl (const unsigned int elemId) |
virtual const XMLNotationDecl * | getNotationDecl (const XMLCh *const notName) const |
virtual XMLNotationDecl * | getNotationDecl (const XMLCh *const notName) |
virtual bool | getValidated () const |
virtual XMLElementDecl * | putElemDecl (const unsigned int uriId, const XMLCh *const baseName, const XMLCh *const prefixName, const XMLCh *const qName, unsigned int scope, const bool notDeclared=false) |
virtual unsigned int | putElemDecl (XMLElementDecl *const elemDecl, const bool notDeclared=false) const |
virtual unsigned int | putNotationDecl (XMLNotationDecl *const notationDecl) const |
virtual void | setValidated (const bool newState) |
virtual void | reset () |
unsigned int | getRootElemId () |
const DTDEntityDecl * | getEntityDecl (const XMLCh *const entName) const |
DTDEntityDecl * | getEntityDecl (const XMLCh *const entName) |
NameIdPool< DTDEntityDecl > * | getEntityDeclPool () |
const NameIdPool< DTDEntityDecl > * | getEntityDeclPool () const |
NameIdPoolEnumerator< DTDElementDecl > | getElemEnumerator () const |
NameIdPoolEnumerator< DTDEntityDecl > | getEntityEnumerator () const |
NameIdPoolEnumerator< XMLNotationDecl > | getNotationEnumerator () const |
void | setRootElemId (unsigned int rootElemId) |
unsigned int | putEntityDecl (DTDEntityDecl *const entityDecl) const |
Private Member Functions | |
void | resetEntityDeclPool () |
Private Attributes | |
MemoryManager * | fMemoryManager |
NameIdPool< DTDElementDecl > * | fElemDeclPool |
NameIdPool< DTDElementDecl > * | fElemNonDeclPool |
NameIdPool< DTDEntityDecl > * | fEntityDeclPool |
NameIdPool< XMLNotationDecl > * | fNotationDeclPool |
unsigned int | fRootElemId |
bool | fValidated |
Definition at line 129 of file DTDGrammar.hpp.
DTDGrammar::DTDGrammar | ( | MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager |
) |
virtual DTDGrammar::~DTDGrammar | ( | ) | [virtual] |
virtual XMLElementDecl* DTDGrammar::findOrAddElemDecl | ( | const unsigned int | uriId, | |
const XMLCh *const | baseName, | |||
const XMLCh *const | prefixName, | |||
const XMLCh *const | qName, | |||
unsigned int | scope, | |||
bool & | wasAdded | |||
) | [virtual] |
XMLElementDecl * DTDGrammar::getElemDecl | ( | const unsigned int | elemId | ) | [inline, virtual] |
Definition at line 418 of file DTDGrammar.hpp.
References fElemDeclPool, and NameIdPool< TElem >::getById().
const XMLElementDecl * DTDGrammar::getElemDecl | ( | const unsigned int | elemId | ) | const [inline, virtual] |
Definition at line 412 of file DTDGrammar.hpp.
References fElemDeclPool, and NameIdPool< TElem >::getById().
XMLElementDecl * DTDGrammar::getElemDecl | ( | const unsigned int | uriId, | |
const XMLCh *const | baseName, | |||
const XMLCh *const | qName, | |||
unsigned int | scope | |||
) | [inline, virtual] |
Definition at line 399 of file DTDGrammar.hpp.
References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::getByKey().
const XMLElementDecl * DTDGrammar::getElemDecl | ( | const unsigned int | uriId, | |
const XMLCh *const | baseName, | |||
const XMLCh *const | qName, | |||
unsigned int | scope | |||
) | const [inline, virtual] |
Definition at line 386 of file DTDGrammar.hpp.
References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::getByKey().
NameIdPoolEnumerator< DTDElementDecl > DTDGrammar::getElemEnumerator | ( | ) | const [inline] |
unsigned int DTDGrammar::getElemId | ( | const unsigned int | uriId, | |
const XMLCh *const | baseName, | |||
const XMLCh *const | qName, | |||
unsigned int | scope | |||
) | const [inline, virtual] |
Definition at line 371 of file DTDGrammar.hpp.
References fElemDeclPool, XMLElementDecl::fgInvalidElemId, NameIdPool< TElem >::getByKey(), and XMLElementDecl::getId().
DTDEntityDecl * DTDGrammar::getEntityDecl | ( | const XMLCh *const | entName | ) | [inline] |
Definition at line 330 of file DTDGrammar.hpp.
References fEntityDeclPool, and NameIdPool< TElem >::getByKey().
const DTDEntityDecl * DTDGrammar::getEntityDecl | ( | const XMLCh *const | entName | ) | const [inline] |
Definition at line 325 of file DTDGrammar.hpp.
References fEntityDeclPool, and NameIdPool< TElem >::getByKey().
const NameIdPool< DTDEntityDecl > * DTDGrammar::getEntityDeclPool | ( | ) | const [inline] |
NameIdPool< DTDEntityDecl > * DTDGrammar::getEntityDeclPool | ( | ) | [inline] |
NameIdPoolEnumerator< DTDEntityDecl > DTDGrammar::getEntityEnumerator | ( | ) | const [inline] |
Grammar::GrammarType DTDGrammar::getGrammarType | ( | ) | const [inline, virtual] |
Definition at line 362 of file DTDGrammar.hpp.
XMLNotationDecl * DTDGrammar::getNotationDecl | ( | const XMLCh *const | notName | ) | [inline, virtual] |
Definition at line 440 of file DTDGrammar.hpp.
References fNotationDeclPool, and NameIdPool< TElem >::getByKey().
const XMLNotationDecl * DTDGrammar::getNotationDecl | ( | const XMLCh *const | notName | ) | const [inline, virtual] |
Definition at line 435 of file DTDGrammar.hpp.
References fNotationDeclPool, and NameIdPool< TElem >::getByKey().
NameIdPoolEnumerator< XMLNotationDecl > DTDGrammar::getNotationEnumerator | ( | ) | const [inline] |
unsigned int DTDGrammar::getRootElemId | ( | ) | [inline] |
const XMLCh * DTDGrammar::getTargetNamespace | ( | ) | const [inline, virtual] |
bool DTDGrammar::getValidated | ( | ) | const [inline, virtual] |
unsigned int DTDGrammar::putElemDecl | ( | XMLElementDecl *const | elemDecl, | |
const bool | notDeclared = false | |||
) | const [inline, virtual] |
Definition at line 425 of file DTDGrammar.hpp.
References fElemDeclPool, fElemNonDeclPool, and NameIdPool< TElem >::put().
virtual XMLElementDecl* DTDGrammar::putElemDecl | ( | const unsigned int | uriId, | |
const XMLCh *const | baseName, | |||
const XMLCh *const | prefixName, | |||
const XMLCh *const | qName, | |||
unsigned int | scope, | |||
const bool | notDeclared = false | |||
) | [virtual] |
unsigned int DTDGrammar::putEntityDecl | ( | DTDEntityDecl *const | entityDecl | ) | const [inline] |
Definition at line 353 of file DTDGrammar.hpp.
References fEntityDeclPool, and NameIdPool< TElem >::put().
unsigned int DTDGrammar::putNotationDecl | ( | XMLNotationDecl *const | notationDecl | ) | const [inline, virtual] |
Definition at line 445 of file DTDGrammar.hpp.
References fNotationDeclPool, and NameIdPool< TElem >::put().
virtual void DTDGrammar::reset | ( | ) | [virtual] |
void DTDGrammar::resetEntityDeclPool | ( | ) | [private] |
void DTDGrammar::setRootElemId | ( | unsigned int | rootElemId | ) | [inline] |
void DTDGrammar::setValidated | ( | const bool | newState | ) | [inline, virtual] |
NameIdPool<DTDElementDecl>* DTDGrammar::fElemDeclPool [private] |
Definition at line 286 of file DTDGrammar.hpp.
Referenced by getElemDecl(), getElemEnumerator(), getElemId(), and putElemDecl().
NameIdPool<DTDElementDecl>* DTDGrammar::fElemNonDeclPool [private] |
NameIdPool<DTDEntityDecl>* DTDGrammar::fEntityDeclPool [private] |
Definition at line 288 of file DTDGrammar.hpp.
Referenced by getEntityDecl(), getEntityDeclPool(), getEntityEnumerator(), and putEntityDecl().
MemoryManager* DTDGrammar::fMemoryManager [private] |
Definition at line 285 of file DTDGrammar.hpp.
NameIdPool<XMLNotationDecl>* DTDGrammar::fNotationDeclPool [private] |
Definition at line 289 of file DTDGrammar.hpp.
Referenced by getNotationDecl(), getNotationEnumerator(), and putNotationDecl().
unsigned int DTDGrammar::fRootElemId [private] |
bool DTDGrammar::fValidated [private] |