PSVIElement.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_PSVIELEMENT_HPP)
#define XERCESC_INCLUDE_GUARD_PSVIELEMENT_HPP
#include <xercesc/framework/psvi/PSVIItem.hpp>
XERCES_CPP_NAMESPACE_BEGIN
// forward declarations
class XSElementDeclaration;
class XSNotationDeclaration;
class XSModel;
class XMLPARSER_EXPORT PSVIElement : public PSVIItem
{
public:
// Constructors and Destructor
// -----------------------------------------------------------------------
PSVIElement( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
~PSVIElement();
//---------------------
XSElementDeclaration *getElementDeclaration();
XSNotationDeclaration *getNotationDeclaration();
XSModel *getSchemaInformation();
XSTypeDefinition *getTypeDefinition();
XSSimpleTypeDefinition *getMemberTypeDefinition();
//----------------------------------
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
);
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
PSVIElement(const PSVIElement&);
PSVIElement & operator=(const PSVIElement &);
// -----------------------------------------------------------------------
// data members
// -----------------------------------------------------------------------
// fElementDecl
// element declaration component that validated this element
// fNotationDecl
// (optional) notation decl associated with this element
// fSchemaInfo
// Schema Information Item with which this validation episode is associated
XSElementDeclaration *fElementDecl;
XSNotationDeclaration *fNotationDecl;
XSModel *fSchemaInfo;
};
inline XSElementDeclaration *PSVIElement::getElementDeclaration()
{
return fElementDecl;
}
inline XSNotationDeclaration* PSVIElement::getNotationDeclaration()
{
return fNotationDecl;
}
inline XSModel* PSVIElement::getSchemaInformation()
{
return fSchemaInfo;
}
XERCES_CPP_NAMESPACE_END
#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
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
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::VALIDITY_STATE
VALIDITY_STATE
Definition PSVIItem.hpp:45
PSVIItem::PSVIItem
PSVIItem(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
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