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: XSIDCDefinition.hpp 527149 2007-04-10 14:56:39Z amassari $
*/
#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();
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
XSIDCDefinition
Definition: XSIDCDefinition.hpp:40
XSIDCDefinition::fIdentityConstraint
IdentityConstraint * fIdentityConstraint
Definition: XSIDCDefinition.hpp:171
XSIDCDefinition::fStringList
StringList * fStringList
Definition: XSIDCDefinition.hpp:173
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XSObject::getNamespaceItem
virtual XSNamespaceItem * getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it&#39;s globally declared; or null otherwise.
XSIDCDefinition::fKey
XSIDCDefinition * fKey
Definition: XSIDCDefinition.hpp:172
XSObject::getName
virtual const XMLCh * getName() const
The name of type NCName of this declaration as defined in XML Namespaces.
XSNamespaceItem
Definition: XSNamespaceItem.hpp:53
XSIDCDefinition::IC_CATEGORY
IC_CATEGORY
Definition: XSIDCDefinition.hpp:45
XSIDCDefinition::fXSAnnotationList
XSAnnotationList * fXSAnnotationList
Definition: XSIDCDefinition.hpp:174
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
XSObject::getNamespace
virtual const XMLCh * getNamespace()
The [target namespace] of this object, or null if it is unspecified.
XSModel
Definition: XSModel.hpp:59
XSAnnotation
Definition: XSAnnotation.hpp:41
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLCh
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
StringList
RefArrayVectorOf< XMLCh > StringList
Definition: XSConstants.hpp:54
XSObject
Definition: XSObject.hpp:42
XSIDCDefinition::getFieldStrs
StringList * getFieldStrs()
[fields]: a non-empty list of restricted XPath ([XPath]) expressions.
Definition: XSIDCDefinition.hpp:178
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XSIDCDefinition::getRefKey
XSIDCDefinition * getRefKey() const
[referenced key]: required if [identity-constraint category] is IC_KEYREF, forbidden otherwise (when ...
Definition: XSIDCDefinition.hpp:183
XSObject.hpp
XSAnnotationList
RefVectorOf< XSAnnotation > XSAnnotationList
Definition: XSConstants.hpp:41