gareth 2002/12/19 06:03:10
Modified: c/src/xercesc/validators/datatype DatatypeValidator.cpp
DatatypeValidator.hpp
Log:
get/set methods to see if the represented type is anonymous. Patch by Peter Volchek.
Revision Changes Path
1.4 +4 -0
xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.cpp
Index: DatatypeValidator.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- DatatypeValidator.cpp 4 Nov 2002 14:53:28 -0000 1.3
+++ DatatypeValidator.cpp 19 Dec 2002 14:03:10 -0000 1.4
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.4 2002/12/19 14:03:10 gareth
+ * get/set methods to see if the represented type is anonymous. Patch by Peter
Volchek.
+ *
* Revision 1.3 2002/11/04 14:53:28 tng
* C++ Namespace Support.
*
@@ -112,6 +115,7 @@
, fFacets(facets)
, fPattern(0)
, fRegex(0)
+ , fAnonymous(false)
{
}
1.8 +24 -2
xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.hpp
Index: DatatypeValidator.hpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- DatatypeValidator.hpp 18 Dec 2002 14:17:55 -0000 1.7
+++ DatatypeValidator.hpp 19 Dec 2002 14:03:10 -0000 1.8
@@ -200,6 +200,16 @@
*/
virtual const RefArrayVectorOf<XMLCh>* getEnumString() const = 0;
+ /**
+ * returns true if this type is anonymous
+ **/
+ bool getAnonymous() const;
+
+ /**
+ * sets this type to be anonymous
+ **/
+ void setAnonymous();
+
//@}
// -----------------------------------------------------------------------
@@ -361,8 +371,10 @@
// {base type definition} cannot specify a value for a specific
// facet.
//
+ // fAnonymous
+ // true if this type is anonynous
+ //
// -----------------------------------------------------------------------
-
int fFinalSet;
int fFacetsDefined;
int fFixed;
@@ -371,6 +383,7 @@
RefHashTableOf<KVStringPair>* fFacets;
XMLCh* fPattern;
RegularExpression* fRegex;
+ bool fAnonymous;
};
@@ -492,6 +505,15 @@
return true;
}
+
+inline void DatatypeValidator::setAnonymous() {
+ fAnonymous = true;
+}
+
+inline bool DatatypeValidator::getAnonymous() const {
+ return fAnonymous;
+}
+
XERCES_CPP_NAMESPACE_END
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]