DOMTypeInfo.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(XERCESC_INCLUDE_GUARD_DOMTYPEINFO_HPP)
#define XERCESC_INCLUDE_GUARD_DOMTYPEINFO_HPP
//------------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------------
#include <xercesc/util/XMLString.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class CDOM_EXPORT DOMTypeInfo
{
protected:
// -----------------------------------------------------------------------
// Hidden constructors
// -----------------------------------------------------------------------
DOMTypeInfo() {};
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
DOMTypeInfo(const DOMTypeInfo &);
DOMTypeInfo & operator = (const DOMTypeInfo &);
public:
// -----------------------------------------------------------------------
// All constructors are hidden, just the destructor is available
// -----------------------------------------------------------------------
virtual ~DOMTypeInfo() {};
// -----------------------------------------------------------------------
// Class Types
// -----------------------------------------------------------------------
enum DerivationMethods {
DERIVATION_RESTRICTION = 0x001,
DERIVATION_EXTENSION = 0x002,
DERIVATION_UNION = 0x004,
DERIVATION_LIST = 0x008
};
// -----------------------------------------------------------------------
// Getter methods
// -----------------------------------------------------------------------
virtual const XMLCh* getTypeName() const = 0;
virtual const XMLCh* getTypeNamespace() const = 0;
virtual bool isDerivedFrom(const XMLCh* typeNamespaceArg,
const XMLCh* typeNameArg,
DerivationMethods derivationMethod) const = 0;
};
XERCES_CPP_NAMESPACE_END
#endif
XMLString.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLCh
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
DOMTypeInfo
The DOMTypeInfo interface represent a type used by DOMElement or DOMAttr nodes, specified in the sche...
Definition DOMTypeInfo.hpp:36
DOMTypeInfo::isDerivedFrom
virtual bool isDerivedFrom(const XMLCh *typeNamespaceArg, const XMLCh *typeNameArg, DerivationMethods derivationMethod) const =0
This method returns if there is a derivation between the reference type definition,...
DOMTypeInfo::~DOMTypeInfo
virtual ~DOMTypeInfo()
Destructor.
Definition DOMTypeInfo.hpp:67
DOMTypeInfo::DOMTypeInfo
DOMTypeInfo()
Definition DOMTypeInfo.hpp:43
DOMTypeInfo::getTypeNamespace
virtual const XMLCh * getTypeNamespace() const =0
The namespace of the type declared for the associated DOMElement or DOMAttr or null if the DOMElement...
DOMTypeInfo::getTypeName
virtual const XMLCh * getTypeName() const =0
Returns The name of a type declared for the associated DOMElement or DOMAttr, or null if unknown.
DOMTypeInfo::DerivationMethods
DerivationMethods
These are the available values for the derivationMethod parameter used by the method DOMTypeInfo::isD...
Definition DOMTypeInfo.hpp:129