22#if !defined(XERCESC_INCLUDE_GUARD_XMLATTDEF_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLATTDEF_HPP
28#include <xercesc/internal/XSerializable.hpp>
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;
521 fMemoryManager->deallocate(fValue);
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.
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
@ NoReason
Definition XMLAttDef.hpp:114
@ JustFaultIn
Definition XMLAttDef.hpp:115
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
@ NmToken
Definition XMLAttDef.hpp:79
@ NmTokens
Definition XMLAttDef.hpp:80
@ IDRef
Definition XMLAttDef.hpp:75
@ Simple
Definition XMLAttDef.hpp:83
@ Entities
Definition XMLAttDef.hpp:78
@ AttTypes_Min
Definition XMLAttDef.hpp:89
@ Any_Other
Definition XMLAttDef.hpp:85
@ AttTypes_Count
Definition XMLAttDef.hpp:88
@ AttTypes_Max
Definition XMLAttDef.hpp:90
@ Any_List
Definition XMLAttDef.hpp:86
@ Entity
Definition XMLAttDef.hpp:77
@ IDRefs
Definition XMLAttDef.hpp:76
@ ID
Definition XMLAttDef.hpp:74
@ Notation
Definition XMLAttDef.hpp:81
@ Enumeration
Definition XMLAttDef.hpp:82
@ CData
Definition XMLAttDef.hpp:73
@ AttTypes_Unknown
Definition XMLAttDef.hpp:91
@ Any_Any
Definition XMLAttDef.hpp:84
DefAttTypes
Definition XMLAttDef.hpp:95
@ Fixed
Definition XMLAttDef.hpp:97
@ Required_And_Fixed
Definition XMLAttDef.hpp:99
@ Implied
Definition XMLAttDef.hpp:100
@ ProcessContents_Skip
Definition XMLAttDef.hpp:101
@ DefAttTypes_Max
Definition XMLAttDef.hpp:108
@ Prohibited
Definition XMLAttDef.hpp:104
@ ProcessContents_Strict
Definition XMLAttDef.hpp:103
@ Default
Definition XMLAttDef.hpp:96
@ ProcessContents_Lax
Definition XMLAttDef.hpp:102
@ Required
Definition XMLAttDef.hpp:98
@ DefAttTypes_Unknown
Definition XMLAttDef.hpp:109
@ DefAttTypes_Count
Definition XMLAttDef.hpp:106
@ DefAttTypes_Min
Definition XMLAttDef.hpp:107
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.
XMemory()
Protected default constructor.
Definition XMemory.hpp:130