source: icXML/icXML-devel/tests/src/DOM/TypeInfo/TypeInfo.hpp @ 2726

Last change on this file since 2726 was 2726, checked in by cameron, 7 years ago

Add original Xerces tests and samples directories

File size: 1.6 KB
Line 
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18//  define null for compatibility with original Java source code.
19#define null 0
20
21#include <xercesc/dom/DOM.hpp>
22
23XERCES_CPP_NAMESPACE_USE
24
25XERCES_CPP_NAMESPACE_BEGIN
26class XercesDOMParser;
27XERCES_CPP_NAMESPACE_END
28
29
30
31
32class TypeInfo {
33
34public:
35        TypeInfo();
36        ~TypeInfo();
37
38    bool testInBuiltTypesOnElements();
39    bool testInBuiltTypesOnAttributes(bool DTDPresent);
40    bool testSimpleDerived();
41    bool testComplexTypes();
42    bool testUnions();
43    bool testAnonymous();
44    bool testXsiTypes();
45    bool testInvaild();
46    bool testAnys();
47    bool testDTD();
48    bool combinedTest();
49
50    bool compareDOMTypeInfo(const DOMTypeInfo *info, const XMLCh* type, const XMLCh* uri);
51
52        XercesDOMParser *parser;
53    DOMDocument *doc;
54
55private:
56
57    DOMElement* findElement(const XMLCh *name) const ;
58
59};
Note: See TracBrowser for help on using the repository browser.