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
189 virtual const XMLCh* getFullName()
const = 0;
195 virtual void reset() = 0;
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
399 XMLAttDef& operator=(const XMLAttDef&);
441 bool fExternalAttribute;
479 return fCreateReason;
484 return fExternalAttribute;
489 return fMemoryManager;
497 fDefaultType = newValue;
503 fMemoryManager->deallocate(fEnumeration);
521 fMemoryManager->deallocate(fValue);
529 fCreateReason = newReason;
534 fExternalAttribute = aValue;
void setCreateReason(const CreateReasons newReason)
Update the create reason for this attribute type.
Definition: XMLAttDef.hpp:527
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:40
DefAttTypes
Definition: XMLAttDef.hpp:94
void setExternalAttDeclaration(const bool aValue)
Set the attribute decl to indicate external declaration.
Definition: XMLAttDef.hpp:532
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
const XMLCh * getEnumeration() const
Get the enumeration value (if any) of this attribute type.
Definition: XMLAttDef.hpp:457
bool isExternal() const
Indicate whether this attribute has been declared externally.
Definition: XMLAttDef.hpp:482
void setType(const XMLAttDef::AttTypes newValue)
Set the type of this attribute type.
Definition: XMLAttDef.hpp:513
static const unsigned int fgInvalidAttrId
Definition: XMLAttDef.hpp:121
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
This class defines the information about an attribute that will come out of the scanner during parsin...
Definition: XMLAttr.hpp:53
Represents the core information of an attribute definition.
Definition: XMLAttDef.hpp:52
Configurable memory manager.
Definition: MemoryManager.hpp:39
SIZE_T XMLSize_t
Definition: Xerces_autoconf_config.borland.hpp:86
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
void setEnumeration(const XMLCh *const newValue)
Set the enumerated value of this attribute type.
Definition: XMLAttDef.hpp:500
AttTypes
Definition: XMLAttDef.hpp:71
void setValue(const XMLCh *const newValue)
Set the default/fixed value of this attribute type.
Definition: XMLAttDef.hpp:518
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
CreateReasons
Definition: XMLAttDef.hpp:112
AttTypes getType() const
Get the type of this attribute.
Definition: XMLAttDef.hpp:467
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
void setId(const XMLSize_t newId)
Set the pool id for this attribute type.
Definition: XMLAttDef.hpp:508
XMLSize_t getId() const
Get the pool id of this attribute type.
Definition: XMLAttDef.hpp:462
const XMLCh * getValue() const
Get the default/fixed value of this attribute (if any.)
Definition: XMLAttDef.hpp:472
CreateReasons getCreateReason() const
Get the create reason for this attribute.
Definition: XMLAttDef.hpp:477