22 #if !defined(XERCESC_INCLUDE_GUARD_XMLELEMENTDECL_HPP)
23 #define XERCESC_INCLUDE_GUARD_XMLELEMENTDECL_HPP
29 #include <xercesc/internal/XSerializable.hpp>
33 class ContentSpecNode;
103 static const XMLCh fgPCDataElemName[];
151 virtual bool hasAttDefs()
const = 0;
160 virtual const ContentSpecNode* getContentSpec()
const = 0;
167 virtual ContentSpecNode* getContentSpec() = 0;
178 virtual void setContentSpec(ContentSpecNode* toAdopt) = 0;
204 virtual void setContentModel(
XMLContentModel*
const newModelToAdopt) = 0;
218 virtual const XMLCh* getFormattedContentModel ()
const = 0;
237 const XMLCh* getBaseName()
const;
238 XMLCh* getBaseName();
246 unsigned int getURI()
const;
255 const QName* getElementName()
const;
256 QName* getElementName();
266 const XMLCh* getFullName()
const;
301 bool isDeclared()
const;
311 bool isExternal()
const;
342 void setElementName(
const XMLCh*
const prefix
343 ,
const XMLCh*
const localPart
355 void setElementName(
const XMLCh*
const rawName
366 void setElementName(
const QName*
const elementName);
392 void setExternalElemDeclaration(
const bool aValue);
420 static void storeElementDecl(XSerializeEngine& serEng
464 CreateReasons fCreateReason;
466 bool fExternalElement;
485 return fElementName->
getURI();
505 return fCreateReason;
521 return fExternalElement;
526 return fMemoryManager;
536 fCreateReason = newReason;
547 fExternalElement = aValue;
Definition: XMLElementDecl.hpp:72
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition: XMemory.hpp:40
XMLSize_t getId() const
Get the element decl pool id for this element type.
Definition: XMLElementDecl.hpp:508
CreateReasons
Definition: XMLElementDecl.hpp:69
const XMLCh * getLocalPart() const
Definition: QName.hpp:177
This class defines the abstract interface for all content models.
Definition: XMLContentModel.hpp:46
bool isExternal() const
Indicate whether this element type has been declared externally.
Definition: XMLElementDecl.hpp:519
const QName * getElementName() const
Get the QName of this element type.
Definition: XMLElementDecl.hpp:488
unsigned int getURI() const
Definition: QName.hpp:187
This class defines an abstract interface that all validators must support.
Definition: XMLAttDefList.hpp:50
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
static const unsigned int fgPCDataElemId
Definition: XMLElementDecl.hpp:102
void setCreateReason(const CreateReasons newReason)
Update the create reason for this element type.
Definition: XMLElementDecl.hpp:534
Configurable memory manager.
Definition: MemoryManager.hpp:39
This class defines the core information of an element declaration.
Definition: XMLElementDecl.hpp:51
static const unsigned int fgInvalidElemId
Definition: XMLElementDecl.hpp:101
objectType
Definition: XMLElementDecl.hpp:411
SIZE_T XMLSize_t
Definition: Xerces_autoconf_config.borland.hpp:86
void setId(const XMLSize_t newId)
Set the element decl pool id for this element type.
Definition: XMLElementDecl.hpp:539
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
CharDataOpts
Definition: XMLElementDecl.hpp:79
CreateReasons getCreateReason() const
Get the create reason for this element type.
Definition: XMLElementDecl.hpp:503
void setExternalElemDeclaration(const bool aValue)
Set the element decl to indicate external declaration.
Definition: XMLElementDecl.hpp:545
bool isDeclared() const
Indicate whether this element type has been declared yet.
Definition: XMLElementDecl.hpp:513
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
const XMLCh * getFullName() const
Get the full name of this element type.
Definition: XMLElementDecl.hpp:498
const XMLCh * getBaseName() const
Get the base name of this element type.
Definition: XMLElementDecl.hpp:473
unsigned int getURI() const
Get the URI id of this element type.
Definition: XMLElementDecl.hpp:483
const XMLCh * getRawName() const
MemoryManager * getMemoryManager() const
Get the memory manager.
Definition: XMLElementDecl.hpp:524