You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2003/01/09 23:34:54 UTC
cvs commit: xml-xerces/c/src/xercesc/validators/schema SchemaValidator.hpp
tng 2003/01/09 14:34:54
Modified: c/src/xercesc/validators/schema SchemaValidator.hpp
Log:
[Bug 14955] error validating parser.
Revision Changes Path
1.11 +34 -14 xml-xerces/c/src/xercesc/validators/schema/SchemaValidator.hpp
Index: SchemaValidator.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/SchemaValidator.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SchemaValidator.hpp 7 Nov 2002 21:57:37 -0000 1.10
+++ SchemaValidator.hpp 9 Jan 2003 22:34:54 -0000 1.11
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.11 2003/01/09 22:34:54 tng
+ * [Bug 14955] error validating parser.
+ *
* Revision 1.10 2002/11/07 21:57:37 tng
* Fix the following Schema Test Failures:
* 1. Typo when comparing miscFlags with FIXED
@@ -155,20 +158,6 @@
virtual ~SchemaValidator();
// -----------------------------------------------------------------------
- // Setter methods
- // -----------------------------------------------------------------------
- void setGrammarResolver(GrammarResolver* grammarResolver);
-
- void setXsiType(const XMLCh* const prefix
- , const XMLCh* const localPart
- , const unsigned int uriId);
-
- void setNillable(bool isNil);
- void setErrorReporter(XMLErrorReporter* const errorReporter);
- void setExitOnFirstFatal(const bool newValue);
- void setDatatypeBuffer(const XMLCh* const value);
-
- // -----------------------------------------------------------------------
// Implementation of the XMLValidator interface
// -----------------------------------------------------------------------
virtual int checkContent
@@ -224,6 +213,24 @@
// -----------------------------------------------------------------------
void normalizeWhiteSpace(DatatypeValidator* dV, const XMLCh* const value, XMLBuffer& toFill);
+ // -----------------------------------------------------------------------
+ // Setter methods
+ // -----------------------------------------------------------------------
+ void setGrammarResolver(GrammarResolver* grammarResolver);
+
+ void setXsiType(const XMLCh* const prefix
+ , const XMLCh* const localPart
+ , const unsigned int uriId);
+
+ void setNillable(bool isNil);
+ void setErrorReporter(XMLErrorReporter* const errorReporter);
+ void setExitOnFirstFatal(const bool newValue);
+ void setDatatypeBuffer(const XMLCh* const value);
+
+ // -----------------------------------------------------------------------
+ // Getter methods
+ // -----------------------------------------------------------------------
+ ComplexTypeInfo* getCurrentTypeInfo() const;
private:
// -----------------------------------------------------------------------
@@ -394,6 +401,15 @@
inline void SchemaValidator::setDatatypeBuffer(const XMLCh* const value)
{
fDatatypeBuffer.append(value);
+}
+
+// ---------------------------------------------------------------------------
+// SchemaValidator: Getter methods
+// ---------------------------------------------------------------------------
+inline ComplexTypeInfo* SchemaValidator::getCurrentTypeInfo() const {
+ if (fTypeStack->empty())
+ return 0;
+ return fTypeStack->peek();
}
// ---------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org