Xerces-C++ 3.2.5
DOMConfiguration.hpp
Go to the documentation of this file.
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#if !defined(XERCESC_INCLUDE_GUARD_DOMCONFIGURATION_HPP)
19#define XERCESC_INCLUDE_GUARD_DOMCONFIGURATION_HPP
20
21//------------------------------------------------------------------------------------
22// Includes
23//------------------------------------------------------------------------------------
24
26#include <xercesc/util/RefVectorOf.hpp>
28
30
351{
352protected:
353 //-----------------------------------------------------------------------------------
354 // Constructor
355 //-----------------------------------------------------------------------------------
360
361private:
362 // -----------------------------------------------------------------------
363 // Unimplemented constructors and operators
364 // -----------------------------------------------------------------------
368 DOMConfiguration & operator = (const DOMConfiguration &);
370
371public:
372
373 // -----------------------------------------------------------------------
374 // Setter methods
375 // -----------------------------------------------------------------------
376
390 virtual void setParameter(const XMLCh* name, const void* value) = 0;
391 virtual void setParameter(const XMLCh* name, bool value) = 0;
392
393 // -----------------------------------------------------------------------
394 // Getter methods
395 // -----------------------------------------------------------------------
406 virtual const void* getParameter(const XMLCh* name) const = 0;
407
408
409 // -----------------------------------------------------------------------
410 // Query methods
411 // -----------------------------------------------------------------------
412
422 virtual bool canSetParameter(const XMLCh* name, const void* value) const = 0;
423 virtual bool canSetParameter(const XMLCh* name, bool value) const = 0;
424
433 virtual const DOMStringList* getParameterNames() const = 0;
434
435 // -----------------------------------------------------------------------
436 // All constructors are hidden, just the destructor is available
437 // -----------------------------------------------------------------------
444 virtual ~DOMConfiguration() {};
446};
447
449
450#endif
451
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
The DOMConfiguration interface represents the configuration of a document and maintains a table of re...
Definition DOMConfiguration.hpp:351
virtual void setParameter(const XMLCh *name, bool value)=0
virtual bool canSetParameter(const XMLCh *name, const void *value) const =0
Check if setting a parameter to a specific value is supported.
virtual ~DOMConfiguration()
Destructor.
Definition DOMConfiguration.hpp:444
virtual void setParameter(const XMLCh *name, const void *value)=0
Set the value of a parameter.
virtual bool canSetParameter(const XMLCh *name, bool value) const =0
virtual const void * getParameter(const XMLCh *name) const =0
Return the value of a parameter if known.
virtual const DOMStringList * getParameterNames() const =0
The list of the parameters supported by this DOMConfiguration object and for which at least one value...
DOMConfiguration()
Definition DOMConfiguration.hpp:358
The DOMStringList interface provides the abstraction of an ordered collection of strings,...
Definition DOMStringList.hpp:37