Skip to content
Snippets Groups Projects
Commit cc8b14b0 authored by PeiYong Zhang's avatar PeiYong Zhang
Browse files

getBuiltInBaseValidator

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@176041 13f79535-47bb-0310-9956-ffa450edef68
parent d31ecdbc
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,9 @@
/*
* $Log$
* Revision 1.29 2004/09/13 21:38:34 peiyongz
* getBuiltInBaseValidator
*
* Revision 1.28 2004/09/08 13:56:52 peiyongz
* Apache License Version 2.0
*
......@@ -775,6 +778,21 @@ XMLCanRepGroup::CanRepGroup DatatypeValidatorFactory::getCanRepGroup(const Datat
return XMLCanRepGroup::String;
}
DatatypeValidator* DatatypeValidatorFactory::getBuiltInBaseValidator(const DatatypeValidator* const dv)
{
DatatypeValidator *curdv = (DatatypeValidator*)dv;
while (curdv)
{
if (curdv == getBuiltInRegistry()->get(curdv->getTypeLocalName()))
return curdv;
else
curdv = curdv->getBaseValidator();
}
return 0;
}
// ---------------------------------------------------------------------------
// DatatypeValidatorFactory: factory methods
// ---------------------------------------------------------------------------
......
......@@ -139,6 +139,8 @@ public:
static XMLCanRepGroup::CanRepGroup getCanRepGroup(const DatatypeValidator* const);
static DatatypeValidator* getBuiltInBaseValidator(const DatatypeValidator* const);
// -----------------------------------------------------------------------
// Validator Factory methods
// -----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment