XMLSchemaDescription.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.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP)
#define XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP
#include <xercesc/framework/XMLGrammarDescription.hpp>
#include <xercesc/util/RefArrayVectorOf.hpp>
XERCES_CPP_NAMESPACE_BEGIN
typedef const XMLCh* const LocationHint;
class XMLPARSER_EXPORT XMLSchemaDescription : public XMLGrammarDescription
{
public :
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
virtual ~XMLSchemaDescription();
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
virtual Grammar::GrammarType getGrammarType() const
{
return Grammar::SchemaGrammarType;
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
enum ContextType
{
CONTEXT_INCLUDE,
CONTEXT_REDEFINE,
CONTEXT_IMPORT,
CONTEXT_PREPARSE,
CONTEXT_INSTANCE,
CONTEXT_ELEMENT,
CONTEXT_ATTRIBUTE,
CONTEXT_XSITYPE,
CONTEXT_UNKNOWN
};
virtual ContextType getContextType() const = 0;
virtual const XMLCh* getTargetNamespace() const = 0;
virtual const RefArrayVectorOf<XMLCh>* getLocationHints() const = 0;
virtual const QName* getTriggeringComponent() const = 0;
virtual const QName* getEnclosingElementName() const = 0;
virtual const XMLAttDef* getAttributes() const = 0;
virtual void setContextType(ContextType) = 0;
virtual void setTargetNamespace(const XMLCh* const) = 0;
virtual void setLocationHints(const XMLCh* const) = 0;
virtual void setTriggeringComponent(QName* const) = 0;
virtual void setEnclosingElementName(QName* const) = 0;
virtual void setAttributes(XMLAttDef* const) = 0;
/***
* Support for Serialization/De-serialization
***/
DECL_XSERIALIZABLE(XMLSchemaDescription)
protected :
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
XMLSchemaDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
private :
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
XMLSchemaDescription(const XMLSchemaDescription& );
XMLSchemaDescription& operator=(const XMLSchemaDescription& );
};
XERCES_CPP_NAMESPACE_END
#endif
XMLGrammarDescription.hpp
LocationHint
XERCES_CPP_NAMESPACE_BEGIN typedef const XMLCh *const LocationHint
Definition: XMLSchemaDescription.hpp:30
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
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
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:40
QName
Definition: QName.hpp:35
XMLAttDef
Represents the core information of an attribute definition.
Definition: XMLAttDef.hpp:53
XMLGrammarDescription
Definition: XMLGrammarDescription.hpp:33
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XMLSchemaDescription
Definition: XMLSchemaDescription.hpp:33
XMLSchemaDescription::setEnclosingElementName
virtual void setEnclosingElementName(QName *const)=0
getenclosingElementName
XMLSchemaDescription::setTargetNamespace
virtual void setTargetNamespace(const XMLCh *const)=0
setTargetNamespace
XMLSchemaDescription::setAttributes
virtual void setAttributes(XMLAttDef *const)=0
setAttributes
XMLSchemaDescription::XMLSchemaDescription
XMLSchemaDescription(MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)
Hidden Constructors.
XMLSchemaDescription::ContextType
ContextType
Definition: XMLSchemaDescription.hpp:66
XMLSchemaDescription::CONTEXT_XSITYPE
@ CONTEXT_XSITYPE
Definition: XMLSchemaDescription.hpp:74
XMLSchemaDescription::CONTEXT_ELEMENT
@ CONTEXT_ELEMENT
Definition: XMLSchemaDescription.hpp:72
XMLSchemaDescription::CONTEXT_INSTANCE
@ CONTEXT_INSTANCE
Definition: XMLSchemaDescription.hpp:71
XMLSchemaDescription::CONTEXT_INCLUDE
@ CONTEXT_INCLUDE
Definition: XMLSchemaDescription.hpp:67
XMLSchemaDescription::CONTEXT_PREPARSE
@ CONTEXT_PREPARSE
Definition: XMLSchemaDescription.hpp:70
XMLSchemaDescription::CONTEXT_ATTRIBUTE
@ CONTEXT_ATTRIBUTE
Definition: XMLSchemaDescription.hpp:73
XMLSchemaDescription::CONTEXT_REDEFINE
@ CONTEXT_REDEFINE
Definition: XMLSchemaDescription.hpp:68
XMLSchemaDescription::CONTEXT_IMPORT
@ CONTEXT_IMPORT
Definition: XMLSchemaDescription.hpp:69
XMLSchemaDescription::getEnclosingElementName
virtual const QName * getEnclosingElementName() const =0
getenclosingElementName
XMLSchemaDescription::getContextType
virtual ContextType getContextType() const =0
getContextType
XMLSchemaDescription::setLocationHints
virtual void setLocationHints(const XMLCh *const)=0
setLocationHints
XMLSchemaDescription::getGrammarType
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition: XMLSchemaDescription.hpp:54
XMLSchemaDescription::getTriggeringComponent
virtual const QName * getTriggeringComponent() const =0
getTriggeringComponent
XMLSchemaDescription::setTriggeringComponent
virtual void setTriggeringComponent(QName *const)=0
setTriggeringComponent
XMLSchemaDescription::getTargetNamespace
virtual const XMLCh * getTargetNamespace() const =0
getTargetNamespace
XMLSchemaDescription::setContextType
virtual void setContextType(ContextType)=0
setContextType
XMLSchemaDescription::getAttributes
virtual const XMLAttDef * getAttributes() const =0
getAttributes
XMLSchemaDescription::getLocationHints
virtual const RefArrayVectorOf< XMLCh > * getLocationHints() const =0
getLocationHints
XMLSchemaDescription::~XMLSchemaDescription
virtual ~XMLSchemaDescription()
virtual destructor