22#if !defined(XERCESC_INCLUDE_GUARD_XMLATTDEF_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLATTDEF_HPP
28#include <xercesc/internal/XSerializable.hpp>
91 , AttTypes_Unknown = -1
99 , Required_And_Fixed = 3
101 , ProcessContents_Skip = 5
102 , ProcessContents_Lax = 6
103 , ProcessContents_Strict = 7
107 , DefAttTypes_Min = 0
108 , DefAttTypes_Max = 8
109 , DefAttTypes_Unknown = -1
226 const XMLCh* getEnumeration()
const;
258 const XMLCh* getValue()
const;
277 bool isExternal()
const;
337 void setValue(
const XMLCh*
const newValue);
349 void setEnumeration(
const XMLCh*
const newValue);
365 void setExternalAttDeclaration(
const bool aValue);
386 const XMLCh*
const attValue
389 ,
const XMLCh*
const enumValues = 0
441 bool fExternalAttribute;
479 return fCreateReason;
484 return fExternalAttribute;
489 return fMemoryManager;
497 fDefaultType = newValue;
529 fCreateReason = newReason;
534 fExternalAttribute = aValue;
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Configurable memory manager.
Definition MemoryManager.hpp:40
virtual void deallocate(void *p)=0
This method deallocates memory.
Represents the core information of an attribute definition.
Definition XMLAttDef.hpp:53
AttTypes getType() const
Get the type of this attribute.
Definition XMLAttDef.hpp:467
void setDefaultType(const XMLAttDef::DefAttTypes newValue)
Set the default attribute type.
Definition XMLAttDef.hpp:495
MemoryManager * getMemoryManager() const
Get the plugged-in memory manager.
Definition XMLAttDef.hpp:487
virtual const XMLCh * getFullName() const =0
Get the full name of this attribute type.
const XMLCh * getEnumeration() const
Get the enumeration value (if any) of this attribute type.
Definition XMLAttDef.hpp:457
void setType(const XMLAttDef::AttTypes newValue)
Set the type of this attribute type.
Definition XMLAttDef.hpp:513
XMLAttDef(const AttTypes type=CData, const DefAttTypes defType=Implied, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
DefAttTypes getDefaultType() const
Get the default type of this attribute type.
Definition XMLAttDef.hpp:452
const XMLCh * getValue() const
Get the default/fixed value of this attribute (if any.)
Definition XMLAttDef.hpp:472
void setExternalAttDeclaration(const bool aValue)
Set the attribute decl to indicate external declaration.
Definition XMLAttDef.hpp:532
void setId(const XMLSize_t newId)
Set the pool id for this attribute type.
Definition XMLAttDef.hpp:508
static const XMLCh * getAttTypeString(const AttTypes attrType, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Get a string representation of the passed attribute type enum.
void setCreateReason(const CreateReasons newReason)
Update the create reason for this attribute type.
Definition XMLAttDef.hpp:527
virtual ~XMLAttDef()
Destructor.
CreateReasons
Definition XMLAttDef.hpp:113
void setEnumeration(const XMLCh *const newValue)
Set the enumerated value of this attribute type.
Definition XMLAttDef.hpp:500
static const unsigned int fgInvalidAttrId
Definition XMLAttDef.hpp:121
XMLSize_t getId() const
Get the pool id of this attribute type.
Definition XMLAttDef.hpp:462
bool isExternal() const
Indicate whether this attribute has been declared externally.
Definition XMLAttDef.hpp:482
void setValue(const XMLCh *const newValue)
Set the default/fixed value of this attribute type.
Definition XMLAttDef.hpp:518
virtual void reset()=0
The derived class should implement any cleaning up required between each use of an instance of this c...
static const XMLCh * getDefAttTypeString(const DefAttTypes attrType, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Get a string representation of the passed def attribute type enum.
CreateReasons getCreateReason() const
Get the create reason for this attribute.
Definition XMLAttDef.hpp:477
AttTypes
Definition XMLAttDef.hpp:72
DefAttTypes
Definition XMLAttDef.hpp:95
XMLAttDef(const XMLCh *const attValue, const AttTypes type, const DefAttTypes defType, const XMLCh *const enumValues=0, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
This class defines the information about an attribute that will come out of the scanner during parsin...
Definition XMLAttr.hpp:54
static char * replicate(const char *const toRep, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Replicates a string NOTE: The returned buffer is allocated with the MemoryManager.
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41