This class defines the core information of an element declaration
![]() | getContentModel () Get a pointer to the abstract content model This method is identical to the previous one, except that it is non const |
![]() | getContentModel () const Get a pointer to the abstract content model This method will return a const pointer to the content model object of this element |
![]() | getCreateReason () const Get the create reason for this element type This method returns an enumeration which indicates why this element declaration exists |
![]() | getFormattedContentModel ( const XMLValidator& validator ) const Geta formatted string of the content model This method is a convenience method which will create a formatted representation of the content model of the element |
![]() | getId () const Get the element decl pool id for this element type This method will return the element decl pool id of this element declaration |
![]() | getKey () const Support keyed collections This method allows objects of this type be placed into one of the standard keyed collections |
![]() | isDeclared () const Indicate whether this element type has been declared yet This method returns a boolean that indicates whether this element has been declared yet |
![]() | setContentModel (XMLContentModel* const newModelToAdopt) Set the content model object for this element type This method will adopt the based content model object |
![]() | setCreateReason (const CreateReasons newReason) Update the create reason for this element type |
![]() | setId (const unsigned int newId) Set the element decl pool id for this element type This method will set the pool id of this element decl |
![]() | Destructor | ||||||||||||||
![]() | Getter methods | ||||||||||||||
![]() | Miscellenous methods | ||||||||||||||
![]() | Setter methods | ||||||||||||||
![]() | Virual ElementDecl interface
|
This class defines the core information of an element declaration. Each validator (DTD, Schema, etc...) will have its own information that it associations with the declaration of an element, but they must all share at least this core information, i.e. they must all derive from this class. The set of info enforced at this level is driven by the needs of XML 1.0 spec validation and well formedness checks. This class supports keyed collection semantics by providing the getKey() method, which extracts the key field. getKey() just calls getFullName() which is virtual so that each type of validator can have its own version of what a full name is. For the DTD validator, its element decl derivatives will return QNames in form pre:name. A Schema validator would return expanded names in the form {uri}name. This class defines some special element id values for invalid elements and PCDATA elements, as well as a string for the special PCDATA element name. All validators must honor these special values in order to allow content models to work generically (i.e. to let code know when its dealing with invalid or PCDATA element ids without having to know what type of validator its messing with.)
Virual ElementDecl interface
virtual XMLAttDef* findAttr( const XMLCh* const qName, const unsigned int uriId, const XMLCh* const baseName, const LookupOpts options, bool& wasAdded ) const
uriId - This is the id of the URI of the namespace to which
this attribute mapped. Only valid if namespaces are
enabled.
baseName - This is the base part of the name, i.e. after any
prefix.
options - Indicates the lookup options.
wasAdded - Should be set if the attribute is faulted in, else
cleared. virtual XMLAttDefList& getAttDefList() const
virtual const XMLCh* getBaseName() const
virtual CharDataOpts getCharDataOpts() const
virtual const XMLCh* getFullName() const
virtual bool hasAttDefs() const
virtual bool resetDefs()
Getter methods
const XMLContentModel* getContentModel() const
XMLContentModel* getContentModel()
CreateReasons getCreateReason() const
unsigned int getId() const
bool isDeclared() const
Setter methods
void setContentModel(XMLContentModel* const newModelToAdopt)
void setCreateReason(const CreateReasons newReason)
void setId(const unsigned int newId)
Miscellenous methods
const XMLCh* getFormattedContentModel( const XMLValidator& validator ) const
const XMLCh* getKey() const
alphabetic index hierarchy of classes
Xerces-C XML Parser for C++ Version 1.1 |
|
generated by doc++