You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/06/20 19:56:57 UTC
cvs commit: xml-xerces/c/src/validators/datatype DatatypeValidator.cpp
peiyongz 01/06/20 10:56:57
Modified: c/src/validators/datatype DatatypeValidator.cpp
Log:
support for "fixed" option on constrainning facets
Revision Changes Path
1.7 +19 -0 xml-xerces/c/src/validators/datatype/DatatypeValidator.cpp
Index: DatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DatatypeValidator.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DatatypeValidator.cpp 2001/05/11 21:51:09 1.6
+++ DatatypeValidator.cpp 2001/06/20 17:56:56 1.7
@@ -56,6 +56,9 @@
/*
* $Log: DatatypeValidator.cpp,v $
+ * Revision 1.7 2001/06/20 17:56:56 peiyongz
+ * support for "fixed" option on constrainning facets
+ *
* Revision 1.6 2001/05/11 21:51:09 knoaman
* Schema updates and fixes.
*
@@ -92,6 +95,7 @@
const ValidatorType type)
: fFinalSet(finalSet)
, fFacetsDefined(0)
+ , fFixed(0)
, fType(type)
, fBaseValidator(baseValidator)
, fFacets(facets)
@@ -105,6 +109,21 @@
cleanUp();
}
+const XMLCh* DatatypeValidator::getWSstring(const short theType) const
+{
+ switch (theType)
+ {
+ case PRESERVE:
+ return SchemaSymbols::fgWS_PRESERVE;
+ case REPLACE:
+ return SchemaSymbols::fgWS_COLLAPSE;
+ case COLLAPSE:
+ return SchemaSymbols::fgWS_REPLACE;
+ default:
+ return SchemaSymbols::fgWS_PRESERVE;
+ }
+
+}
/**
* End of file DatatypeValidator.cpp
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org