[358] | 1 | /*
|
---|
| 2 | * Copyright 1999-2004 The Apache Software Foundation.
|
---|
| 3 | *
|
---|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 5 | * you may not use this file except in compliance with the License.
|
---|
| 6 | * You may obtain a copy of the License at
|
---|
| 7 | *
|
---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 9 | *
|
---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 13 | * See the License for the specific language governing permissions and
|
---|
| 14 | * limitations under the License.
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | /*
|
---|
| 18 | * $Log: XMLSchemaDescriptionImpl.hpp,v $
|
---|
| 19 | * Revision 1.4 2004/09/08 13:56:57 peiyongz
|
---|
| 20 | * Apache License Version 2.0
|
---|
| 21 | *
|
---|
| 22 | * Revision 1.3 2003/10/14 15:22:28 peiyongz
|
---|
| 23 | * Implementation of Serialization/Deserialization
|
---|
| 24 | *
|
---|
| 25 | * Revision 1.2 2003/07/31 17:14:27 peiyongz
|
---|
| 26 | * Grammar embed grammar description
|
---|
| 27 | *
|
---|
| 28 | * Revision 1.1 2003/06/20 18:40:29 peiyongz
|
---|
| 29 | * Stateless Grammar Pool :: Part I
|
---|
| 30 | *
|
---|
| 31 | * $Id: XMLSchemaDescriptionImpl.hpp,v 1.4 2004/09/08 13:56:57 peiyongz Exp $
|
---|
| 32 | *
|
---|
| 33 | */
|
---|
| 34 |
|
---|
| 35 | #if !defined(XMLSchemaDescriptionImplIMPL_HPP)
|
---|
| 36 | #define XMLSchemaDescriptionImplIMPL_HPP
|
---|
| 37 |
|
---|
| 38 | #include <xercesc/framework/XMLSchemaDescription.hpp>
|
---|
| 39 | #include <xercesc/util/RefVectorOf.hpp>
|
---|
| 40 |
|
---|
| 41 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
| 42 |
|
---|
| 43 | class XMLAttDefs;
|
---|
| 44 |
|
---|
| 45 | class XMLPARSER_EXPORT XMLSchemaDescriptionImpl : public XMLSchemaDescription
|
---|
| 46 | {
|
---|
| 47 | public :
|
---|
| 48 | // -----------------------------------------------------------------------
|
---|
| 49 | /** @name constructor and destructor */
|
---|
| 50 | // -----------------------------------------------------------------------
|
---|
| 51 | //@{
|
---|
| 52 | XMLSchemaDescriptionImpl(
|
---|
| 53 | const XMLCh* const targetNamespace
|
---|
| 54 | , MemoryManager* const memMgr
|
---|
| 55 | );
|
---|
| 56 |
|
---|
| 57 | ~XMLSchemaDescriptionImpl();
|
---|
| 58 | //@}
|
---|
| 59 |
|
---|
| 60 | // -----------------------------------------------------------------------
|
---|
| 61 | /** @name Implementation of GrammarDescription Interface */
|
---|
| 62 | // -----------------------------------------------------------------------
|
---|
| 63 | //@{
|
---|
| 64 | /**
|
---|
| 65 | * getGrammarKey
|
---|
| 66 | *
|
---|
| 67 | */
|
---|
| 68 | virtual const XMLCh* getGrammarKey() const;
|
---|
| 69 | //@}
|
---|
| 70 |
|
---|
| 71 | // -----------------------------------------------------------------------
|
---|
| 72 | /** @name Implementation of SchemaDescription Interface */
|
---|
| 73 | // -----------------------------------------------------------------------
|
---|
| 74 | //@{
|
---|
| 75 |
|
---|
| 76 | /**
|
---|
| 77 | * getContextType
|
---|
| 78 | *
|
---|
| 79 | */
|
---|
| 80 | virtual ContextType getContextType() const;
|
---|
| 81 |
|
---|
| 82 | /**
|
---|
| 83 | * getTargetNamespace
|
---|
| 84 | *
|
---|
| 85 | */
|
---|
| 86 | virtual const XMLCh* getTargetNamespace() const;
|
---|
| 87 |
|
---|
| 88 | /**
|
---|
| 89 | * getLocationHints
|
---|
| 90 | *
|
---|
| 91 | */
|
---|
| 92 | virtual RefArrayVectorOf<XMLCh>* getLocationHints() const;
|
---|
| 93 |
|
---|
| 94 | /**
|
---|
| 95 | * getTriggeringComponent
|
---|
| 96 | *
|
---|
| 97 | */
|
---|
| 98 | virtual const QName* getTriggeringComponent() const;
|
---|
| 99 |
|
---|
| 100 | /**
|
---|
| 101 | * getenclosingElementName
|
---|
| 102 | *
|
---|
| 103 | */
|
---|
| 104 | virtual const QName* getEnclosingElementName() const;
|
---|
| 105 |
|
---|
| 106 | /**
|
---|
| 107 | * getAttributes
|
---|
| 108 | *
|
---|
| 109 | */
|
---|
| 110 | virtual const XMLAttDef* getAttributes() const;
|
---|
| 111 |
|
---|
| 112 | /**
|
---|
| 113 | * setContextType
|
---|
| 114 | *
|
---|
| 115 | */
|
---|
| 116 | virtual void setContextType(ContextType);
|
---|
| 117 |
|
---|
| 118 | /**
|
---|
| 119 | * setTargetNamespace
|
---|
| 120 | *
|
---|
| 121 | */
|
---|
| 122 | virtual void setTargetNamespace(const XMLCh* const);
|
---|
| 123 |
|
---|
| 124 | /**
|
---|
| 125 | * setLocationHints
|
---|
| 126 | *
|
---|
| 127 | */
|
---|
| 128 | virtual void setLocationHints(const XMLCh* const);
|
---|
| 129 |
|
---|
| 130 | /**
|
---|
| 131 | * setTriggeringComponent
|
---|
| 132 | *
|
---|
| 133 | */
|
---|
| 134 | virtual void setTriggeringComponent(QName* const);
|
---|
| 135 |
|
---|
| 136 | /**
|
---|
| 137 | * getenclosingElementName
|
---|
| 138 | *
|
---|
| 139 | */
|
---|
| 140 | virtual void setEnclosingElementName(QName* const);
|
---|
| 141 |
|
---|
| 142 | /**
|
---|
| 143 | * setAttributes
|
---|
| 144 | *
|
---|
| 145 | */
|
---|
| 146 | virtual void setAttributes(XMLAttDef* const);
|
---|
| 147 | //@}
|
---|
| 148 |
|
---|
| 149 | /***
|
---|
| 150 | * Support for Serialization/De-serialization
|
---|
| 151 | ***/
|
---|
| 152 | DECL_XSERIALIZABLE(XMLSchemaDescriptionImpl)
|
---|
| 153 |
|
---|
| 154 | XMLSchemaDescriptionImpl(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
|
---|
| 155 |
|
---|
| 156 | private :
|
---|
| 157 | // -----------------------------------------------------------------------
|
---|
| 158 | /** name Unimplemented copy constructor and operator= */
|
---|
| 159 | // -----------------------------------------------------------------------
|
---|
| 160 | //@{
|
---|
| 161 | XMLSchemaDescriptionImpl(const XMLSchemaDescriptionImpl& );
|
---|
| 162 | XMLSchemaDescriptionImpl& operator=(const XMLSchemaDescriptionImpl& );
|
---|
| 163 | //@}
|
---|
| 164 |
|
---|
| 165 | // -----------------------------------------------------------------------
|
---|
| 166 | // Private data members
|
---|
| 167 | //
|
---|
| 168 | // All data member in this implementation are owned to out survive
|
---|
| 169 | // parser. Except for fNamespace which is replicated upon set, the
|
---|
| 170 | // rest shall be created by the embedded memoryManager.
|
---|
| 171 | //
|
---|
| 172 | // fContextType
|
---|
| 173 | //
|
---|
| 174 | // fNamespace owned
|
---|
| 175 | //
|
---|
| 176 | // fLocationHints owned
|
---|
| 177 | //
|
---|
| 178 | // fTriggeringComponent owned
|
---|
| 179 | //
|
---|
| 180 | // fEnclosingElementName owned
|
---|
| 181 | //
|
---|
| 182 | // fAttributes referenced
|
---|
| 183 | //
|
---|
| 184 | // -----------------------------------------------------------------------
|
---|
| 185 |
|
---|
| 186 | XMLSchemaDescription::ContextType fContextType;
|
---|
| 187 | const XMLCh* fNamespace;
|
---|
| 188 | RefArrayVectorOf<XMLCh>* fLocationHints;
|
---|
| 189 | const QName* fTriggeringComponent;
|
---|
| 190 | const QName* fEnclosingElementName;
|
---|
| 191 | const XMLAttDef* fAttributes;
|
---|
| 192 |
|
---|
| 193 | };
|
---|
| 194 |
|
---|
| 195 |
|
---|
| 196 | XERCES_CPP_NAMESPACE_END
|
---|
| 197 |
|
---|
| 198 | #endif
|
---|