source: icXML/icXML-devel/src/xercesc/dom/impl/DOMTypeInfoImpl.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 4.4 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//
19//  This file is part of the internal implementation of the C++ XML DOM.
20//  It should NOT be included or used directly by application programs.
21//
22//  Applications should include the file <xercesc/dom/DOM.hpp> for the entire
23//  DOM API, or xercesc/dom/DOM*.hpp for individual DOM classes, where the class
24//  name is substituded for the *.
25//
26
27
28#if !defined(XERCESC_INCLUDE_GUARD_DOMTYPEINFOIMPL_HPP)
29#define XERCESC_INCLUDE_GUARD_DOMTYPEINFOIMPL_HPP
30
31//------------------------------------------------------------------------------------
32//  Includes
33//------------------------------------------------------------------------------------
34#include <xercesc/dom/DOMTypeInfo.hpp>
35#include <xercesc/dom/DOMPSVITypeInfo.hpp>
36
37XERCES_CPP_NAMESPACE_BEGIN
38
39class DOMDocumentImpl;
40
41class CDOM_EXPORT DOMTypeInfoImpl : public DOMTypeInfo, public DOMPSVITypeInfo
42{
43public:
44
45    //-----------------------------------------------------------------------------------
46    //  Constructor
47    //-----------------------------------------------------------------------------------
48    DOMTypeInfoImpl(const XMLCh* namespaceUri=0, const XMLCh* name=0);
49    DOMTypeInfoImpl(DOMDocumentImpl* ownerDoc, const DOMPSVITypeInfo* sourcePSVI);
50
51    static DOMTypeInfoImpl  g_DtdValidatedElement;
52    static DOMTypeInfoImpl  g_DtdNotValidatedAttribute;
53    static DOMTypeInfoImpl  g_DtdValidatedCDATAAttribute;
54    static DOMTypeInfoImpl  g_DtdValidatedIDAttribute;
55    static DOMTypeInfoImpl  g_DtdValidatedIDREFAttribute;
56    static DOMTypeInfoImpl  g_DtdValidatedIDREFSAttribute;
57    static DOMTypeInfoImpl  g_DtdValidatedENTITYAttribute;
58    static DOMTypeInfoImpl  g_DtdValidatedENTITIESAttribute;
59    static DOMTypeInfoImpl  g_DtdValidatedNMTOKENAttribute;
60    static DOMTypeInfoImpl  g_DtdValidatedNMTOKENSAttribute;
61    static DOMTypeInfoImpl  g_DtdValidatedNOTATIONAttribute;
62    static DOMTypeInfoImpl  g_DtdValidatedENUMERATIONAttribute;
63
64    // -----------------------------------------------------------------------
65    //  DOMTypeInfo interface
66    // -----------------------------------------------------------------------
67    virtual const XMLCh* getTypeName() const;
68    virtual const XMLCh* getTypeNamespace() const;
69    virtual bool isDerivedFrom(const XMLCh* typeNamespaceArg, const XMLCh* typeNameArg, DerivationMethods derivationMethod) const;
70
71    // -----------------------------------------------------------------------
72    //  DOMPSVITypeInfo interface
73    // -----------------------------------------------------------------------
74    virtual const XMLCh* getStringProperty(PSVIProperty prop) const;
75    virtual int getNumericProperty(PSVIProperty prop) const;
76
77    // -----------------------------------------------------------------------
78    //  Setter methods
79    // -----------------------------------------------------------------------
80    virtual void setStringProperty(PSVIProperty prop, const XMLCh* value);
81    virtual void setNumericProperty(PSVIProperty prop, int value);
82
83protected:
84    int             fBitFields;
85    const XMLCh*    fTypeName;
86    const XMLCh*    fTypeNamespace;
87    const XMLCh*    fMemberTypeName;
88    const XMLCh*    fMemberTypeNamespace;
89    const XMLCh*    fDefaultValue;
90    const XMLCh*    fNormalizedValue;
91
92private:
93    // -----------------------------------------------------------------------
94    // Unimplemented constructors and operators
95    // -----------------------------------------------------------------------
96    DOMTypeInfoImpl (const DOMTypeInfoImpl&);
97    DOMTypeInfoImpl & operator = (const DOMTypeInfoImpl &);
98};
99
100XERCES_CPP_NAMESPACE_END
101
102#endif
103
104/**
105 * End of file DOMTypeInfo.hpp
106 */
Note: See TracBrowser for help on using the repository browser.