XSWildcard.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: XSWildcard.hpp 527149 2007-04-10 14:56:39Z amassari $
*/
#if !defined(XERCESC_INCLUDE_GUARD_XSWILDCARD_HPP)
#define XERCESC_INCLUDE_GUARD_XSWILDCARD_HPP
#include <xercesc/framework/psvi/XSObject.hpp>
XERCES_CPP_NAMESPACE_BEGIN
// forward declarations
class XSAnnotation;
class SchemaAttDef;
class ContentSpecNode;
class XMLPARSER_EXPORT XSWildcard : public XSObject
{
public:
// Namespace Constraint
enum NAMESPACE_CONSTRAINT {
NSCONSTRAINT_ANY = 1,
NSCONSTRAINT_NOT = 2,
NSCONSTRAINT_DERIVATION_LIST = 3
};
// Process contents
enum PROCESS_CONTENTS {
PC_STRICT = 1,
PC_SKIP = 2,
PC_LAX = 3
};
// Constructors and Destructor
// -----------------------------------------------------------------------
XSWildcard
(
SchemaAttDef* const attWildCard
, XSAnnotation* const annot
, XSModel* const xsModel
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
XSWildcard
(
const ContentSpecNode* const elmWildCard
, XSAnnotation* const annot
, XSModel* const xsModel
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
~XSWildcard();
//---------------------
NAMESPACE_CONSTRAINT getConstraintType() const;
StringList *getNsConstraintList();
PROCESS_CONTENTS getProcessContents() const;
XSAnnotation *getAnnotation() const;
//----------------------------------
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XSWildcard(const XSWildcard&);
XSWildcard & operator=(const XSWildcard &);
void buildNamespaceList(const ContentSpecNode* const rootNode);
protected:
// -----------------------------------------------------------------------
// data members
// -----------------------------------------------------------------------
NAMESPACE_CONSTRAINT fConstraintType;
PROCESS_CONTENTS fProcessContents;
StringList* fNsConstraintList;
XSAnnotation* fAnnotation;
};
inline XSAnnotation *XSWildcard::getAnnotation() const
{
return fAnnotation;
}
inline XSWildcard::PROCESS_CONTENTS XSWildcard::getProcessContents() const
{
return fProcessContents;
}
inline StringList* XSWildcard::getNsConstraintList()
{
return fNsConstraintList;
}
inline XSWildcard::NAMESPACE_CONSTRAINT XSWildcard::getConstraintType() const
{
return fConstraintType;
}
XERCES_CPP_NAMESPACE_END
#endif
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XSWildcard
Definition: XSWildcard.hpp:41
XSWildcard::fAnnotation
XSAnnotation * fAnnotation
Definition: XSWildcard.hpp:175
XSWildcard::getNsConstraintList
StringList * getNsConstraintList()
Namespace constraint.
Definition: XSWildcard.hpp:188
XSWildcard::fProcessContents
PROCESS_CONTENTS fProcessContents
Definition: XSWildcard.hpp:173
XSWildcard::fConstraintType
NAMESPACE_CONSTRAINT fConstraintType
Definition: XSWildcard.hpp:172
XSWildcard::fNsConstraintList
StringList * fNsConstraintList
Definition: XSWildcard.hpp:174
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
XSModel
Definition: XSModel.hpp:59
XSWildcard::getAnnotation
XSAnnotation * getAnnotation() const
Optional.
Definition: XSWildcard.hpp:178
XSAnnotation
Definition: XSAnnotation.hpp:41
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
XSWildcard::getConstraintType
NAMESPACE_CONSTRAINT getConstraintType() const
Namespace constraint: A constraint type: any, not, list.
Definition: XSWildcard.hpp:193
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
StringList
RefArrayVectorOf< XMLCh > StringList
Definition: XSConstants.hpp:54
XSWildcard::getProcessContents
PROCESS_CONTENTS getProcessContents() const
[process contents]: one of skip, lax or strict.
Definition: XSWildcard.hpp:183
XSObject
Definition: XSObject.hpp:42
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XSObject.hpp
XSWildcard::PROCESS_CONTENTS
PROCESS_CONTENTS
Definition: XSWildcard.hpp:62
XSWildcard::NAMESPACE_CONSTRAINT
NAMESPACE_CONSTRAINT
Definition: XSWildcard.hpp:46