projects
/
shibboleth
/
xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add xsi:nil support to objects.
[shibboleth/xmltooling.git]
/
xmltooling
/
AbstractXMLObject.h
diff --git
a/xmltooling/AbstractXMLObject.h
b/xmltooling/AbstractXMLObject.h
index
80b2971
..
7767167
100644
(file)
--- a/
xmltooling/AbstractXMLObject.h
+++ b/
xmltooling/AbstractXMLObject.h
@@
-23,11
+23,10
@@
#ifndef __xmltooling_abstractxmlobj_h__
#define __xmltooling_abstractxmlobj_h__
#ifndef __xmltooling_abstractxmlobj_h__
#define __xmltooling_abstractxmlobj_h__
+#include <xmltooling/logging.h>
#include <xmltooling/XMLObject.h>
#include <xmltooling/util/DateTime.h>
#include <xmltooling/XMLObject.h>
#include <xmltooling/util/DateTime.h>
-#include <log4cpp/Category.hh>
-
#if defined (_MSC_VER)
#pragma warning( push )
#pragma warning( disable : 4250 4251 )
#if defined (_MSC_VER)
#pragma warning( push )
#pragma warning( disable : 4250 4251 )
@@
-80,7
+79,18
@@
namespace xmltooling {
const XMLCh* getXMLID() const {
return NULL;
}
const XMLCh* getXMLID() const {
return NULL;
}
-
+
+ xmlconstants::xmltooling_bool_t getNil() const {
+ return m_nil;
+ }
+
+ void nil(xmlconstants::xmltooling_bool_t value) {
+ if (m_nil != value) {
+ releaseThisandParentDOM();
+ m_nil = value;
+ }
+ }
+
bool hasParent() const {
return m_parent != NULL;
}
bool hasParent() const {
return m_parent != NULL;
}
@@
-195,7
+205,7
@@
namespace xmltooling {
/**
* Logging object.
*/
/**
* Logging object.
*/
- log
4cpp
::Category& m_log;
+ log
ging
::Category& m_log;
/**
* Stores off xsi:schemaLocation attribute.
/**
* Stores off xsi:schemaLocation attribute.
@@
-206,6
+216,11
@@
namespace xmltooling {
* Stores off xsi:noNamespaceSchemaLocation attribute.
*/
XMLCh* m_noNamespaceSchemaLocation;
* Stores off xsi:noNamespaceSchemaLocation attribute.
*/
XMLCh* m_noNamespaceSchemaLocation;
+
+ /**
+ * Stores off xsi:nil attribute.
+ */
+ xmlconstants::xmltooling_bool_t m_nil;
private:
XMLObject* m_parent;
private:
XMLObject* m_parent;