XSIDCDefinition.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_XSIDCDEFINITION_HPP)
#define XERCESC_INCLUDE_GUARD_XSIDCDEFINITION_HPP
#include <xercesc/framework/psvi/XSObject.hpp>
XERCES_CPP_NAMESPACE_BEGIN
// forward declarations
class XSAnnotation;
class IdentityConstraint;
class XMLPARSER_EXPORT XSIDCDefinition : public XSObject
{
public:
// Identity Constraints
enum IC_CATEGORY {
IC_KEY = 1,
IC_KEYREF = 2,
IC_UNIQUE = 3
};
// Constructors and Destructor
// -----------------------------------------------------------------------
XSIDCDefinition
(
IdentityConstraint* const identityConstraint
, XSIDCDefinition* const keyIC
, XSAnnotation* const headAnnot
, StringList* const stringList
, XSModel* const xsModel
, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
);
~XSIDCDefinition();
//---------------------
const XMLCh* getName() const;
const XMLCh* getNamespace() const;
XSNamespaceItem *getNamespaceItem();
//---------------------
IC_CATEGORY getCategory() const;
const XMLCh *getSelectorStr();
StringList *getFieldStrs();
XSIDCDefinition *getRefKey() const;
XSAnnotationList *getAnnotations();
//----------------------------------
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XSIDCDefinition(const XSIDCDefinition&);
XSIDCDefinition & operator=(const XSIDCDefinition &);
protected:
// -----------------------------------------------------------------------
// data members
// -----------------------------------------------------------------------
IdentityConstraint* fIdentityConstraint;
XSIDCDefinition* fKey;
StringList* fStringList;
XSAnnotationList* fXSAnnotationList;
};
inline StringList* XSIDCDefinition::getFieldStrs()
{
return fStringList;
}
inline XSIDCDefinition* XSIDCDefinition::getRefKey() const
{
return fKey;
}
XERCES_CPP_NAMESPACE_END
#endif
XSAnnotationList
RefVectorOf< XSAnnotation > XSAnnotationList
Definition XSConstants.hpp:47
StringList
RefArrayVectorOf< XMLCh > StringList
Definition XSConstants.hpp:54
XSObject.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
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XSAnnotation
Definition XSAnnotation.hpp:42
XSIDCDefinition
Definition XSIDCDefinition.hpp:41
XSIDCDefinition::getSelectorStr
const XMLCh * getSelectorStr()
[selector]: a restricted XPath expression.
XSIDCDefinition::getCategory
IC_CATEGORY getCategory() const
[identity-constraint category]: one of IC_KEY, IC_KEYREF or IC_UNIQUE.
XSIDCDefinition::fStringList
StringList * fStringList
Definition XSIDCDefinition.hpp:173
XSIDCDefinition::getAnnotations
XSAnnotationList * getAnnotations()
A set of [annotations].
XSIDCDefinition::fKey
XSIDCDefinition * fKey
Definition XSIDCDefinition.hpp:172
XSIDCDefinition::getFieldStrs
StringList * getFieldStrs()
[fields]: a non-empty list of restricted XPath ([XPath]) expressions.
Definition XSIDCDefinition.hpp:178
XSIDCDefinition::~XSIDCDefinition
~XSIDCDefinition()
XSIDCDefinition::getNamespaceItem
XSNamespaceItem * getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component,...
XSIDCDefinition::XSIDCDefinition
XSIDCDefinition(IdentityConstraint *const identityConstraint, XSIDCDefinition *const keyIC, XSAnnotation *const headAnnot, StringList *const stringList, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
XSIDCDefinition::getNamespace
const XMLCh * getNamespace() const
The [target namespace] of this object, or null if it is unspecified.
XSIDCDefinition::getName
const XMLCh * getName() const
The name of type NCName of this declaration as defined in XML Namespaces.
XSIDCDefinition::fIdentityConstraint
IdentityConstraint * fIdentityConstraint
Definition XSIDCDefinition.hpp:171
XSIDCDefinition::IC_CATEGORY
IC_CATEGORY
Definition XSIDCDefinition.hpp:45
XSIDCDefinition::getRefKey
XSIDCDefinition * getRefKey() const
[referenced key]: required if [identity-constraint category] is IC_KEYREF, forbidden otherwise (when ...
Definition XSIDCDefinition.hpp:183
XSIDCDefinition::fXSAnnotationList
XSAnnotationList * fXSAnnotationList
Definition XSIDCDefinition.hpp:174
XSModel
Definition XSModel.hpp:60
XSNamespaceItem
Definition XSNamespaceItem.hpp:54
XSObject
Definition XSObject.hpp:43