Xerces-C++ 3.2.5

PSVIElement.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/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_PSVIELEMENT_HPP)
23#define XERCESC_INCLUDE_GUARD_PSVIELEMENT_HPP
24
25#include <xercesc/framework/psvi/PSVIItem.hpp>
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
36// forward declarations
37 class XSElementDeclaration;
38 class XSNotationDeclaration;
39 class XSModel;
40
41 class XMLPARSER_EXPORT PSVIElement : public PSVIItem
42{
43 public:
44
45 // Constructors and Destructor
46 // -----------------------------------------------------------------------
49
55 PSVIElement( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
56
58
61 ~PSVIElement();
63
64 //---------------------
68
75 XSElementDeclaration *getElementDeclaration();
76
82 XSNotationDeclaration *getNotationDeclaration();
83
90 XSModel *getSchemaInformation();
91
97 XSTypeDefinition *getTypeDefinition();
98
108 XSSimpleTypeDefinition *getMemberTypeDefinition();
109
111
112 //----------------------------------
116 void reset
117 (
118 const VALIDITY_STATE validityState
119 , const ASSESSMENT_TYPE assessmentType
120 , const XMLCh* const validationContext
121 , bool isSpecified
122 , XSElementDeclaration* const elemDecl
123 , XSTypeDefinition* const typeDef
124 , XSSimpleTypeDefinition* const memberType
125 , XSModel* const schemaInfo
126 , const XMLCh* const defaultValue
127 , const XMLCh* const normalizedValue = 0
128 , XMLCh* const canonicalValue = 0
129 , XSNotationDeclaration* const notationDecl = 0
130 );
131
133
134 private:
135
136 // -----------------------------------------------------------------------
137 // Unimplemented constructors and operators
138 // -----------------------------------------------------------------------
139 PSVIElement(const PSVIElement&);
140 PSVIElement & operator=(const PSVIElement &);
141
142
143 // -----------------------------------------------------------------------
144 // data members
145 // -----------------------------------------------------------------------
146 // fElementDecl
147 // element declaration component that validated this element
148 // fNotationDecl
149 // (optional) notation decl associated with this element
150 // fSchemaInfo
151 // Schema Information Item with which this validation episode is associated
152 XSElementDeclaration *fElementDecl;
153 XSNotationDeclaration *fNotationDecl;
154 XSModel *fSchemaInfo;
155};
156
157 inline XSElementDeclaration *PSVIElement::getElementDeclaration()
158{
159 return fElementDecl;
160}
161
162 inline XSNotationDeclaration* PSVIElement::getNotationDeclaration()
163{
164 return fNotationDecl;
165}
166
167 inline XSModel* PSVIElement::getSchemaInformation()
168{
169 return fSchemaInfo;
170}
171
172 XERCES_CPP_NAMESPACE_END
173
174#endif
PSVIItem.hpp
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
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
PSVIElement
Definition PSVIElement.hpp:42
PSVIElement::PSVIElement
PSVIElement(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
PSVIElement::getTypeDefinition
XSTypeDefinition * getTypeDefinition()
An item isomorphic to the type definition used to validate this element.
PSVIElement::~PSVIElement
~PSVIElement()
PSVIElement::reset
void reset(const VALIDITY_STATE validityState, const ASSESSMENT_TYPE assessmentType, const XMLCh *const validationContext, bool isSpecified, XSElementDeclaration *const elemDecl, XSTypeDefinition *const typeDef, XSSimpleTypeDefinition *const memberType, XSModel *const schemaInfo, const XMLCh *const defaultValue, const XMLCh *const normalizedValue=0, XMLCh *const canonicalValue=0, XSNotationDeclaration *const notationDecl=0)
methods needed by implementation
PSVIElement::getMemberTypeDefinition
XSSimpleTypeDefinition * getMemberTypeDefinition()
If and only if that type definition is a simple type definition with {variety} union,...
PSVIElement::getNotationDeclaration
XSNotationDeclaration * getNotationDeclaration()
[notation]
Definition PSVIElement.hpp:162
PSVIElement::getElementDeclaration
XSElementDeclaration * getElementDeclaration()
An item isomorphic to the element declaration used to validate this element.
Definition PSVIElement.hpp:157
PSVIElement::getSchemaInformation
XSModel * getSchemaInformation()
[schema information]
Definition PSVIElement.hpp:167
PSVIItem
Definition PSVIItem.hpp:42
PSVIItem::VALIDITY_STATE
VALIDITY_STATE
Definition PSVIItem.hpp:45
PSVIItem::ASSESSMENT_TYPE
ASSESSMENT_TYPE
Definition PSVIItem.hpp:65
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XSElementDeclaration
Definition XSElementDeclaration.hpp:45
XSModel
Definition XSModel.hpp:60
XSNotationDeclaration
Definition XSNotationDeclaration.hpp:41
XSSimpleTypeDefinition
Definition XSSimpleTypeDefinition.hpp:44
XSTypeDefinition
This class represents a complexType or simpleType definition.
Definition XSTypeDefinition.hpp:40