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
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLSchemaDescription::getGrammarType
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition: XMLSchemaDescription.hpp:54
XMLSchemaDescription
Definition: XMLSchemaDescription.hpp:32
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLGrammarDescription
Definition: XMLGrammarDescription.hpp:32
XMLSchemaDescription::CONTEXT_XSITYPE
@ CONTEXT_XSITYPE
Definition: XMLSchemaDescription.hpp:74
LocationHint
XERCES_CPP_NAMESPACE_BEGIN const typedef XMLCh *const LocationHint
Definition: XMLSchemaDescription.hpp:30
XMLGrammarDescription.hpp
XMLSchemaDescription::CONTEXT_PREPARSE
@ CONTEXT_PREPARSE
Definition: XMLSchemaDescription.hpp:70
XMLSchemaDescription::CONTEXT_IMPORT
@ CONTEXT_IMPORT
Definition: XMLSchemaDescription.hpp:69
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XMLAttDef
Represents the core information of an attribute definition.
Definition: XMLAttDef.hpp:52
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
XMLSchemaDescription::CONTEXT_REDEFINE
@ CONTEXT_REDEFINE
Definition: XMLSchemaDescription.hpp:68
XMLSchemaDescription::CONTEXT_INSTANCE
@ CONTEXT_INSTANCE
Definition: XMLSchemaDescription.hpp:71
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
XMLSchemaDescription::ContextType
ContextType
Definition: XMLSchemaDescription.hpp:65
XMLSchemaDescription::CONTEXT_INCLUDE
@ CONTEXT_INCLUDE
Definition: XMLSchemaDescription.hpp:67
QName
Definition: QName.hpp:34
XMLSchemaDescription::CONTEXT_ELEMENT
@ CONTEXT_ELEMENT
Definition: XMLSchemaDescription.hpp:72
XMLSchemaDescription::CONTEXT_ATTRIBUTE
@ CONTEXT_ATTRIBUTE
Definition: XMLSchemaDescription.hpp:73