XSIDCDefinition.hpp

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  * 
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  * 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 /*
00019  * $Id: XSIDCDefinition.hpp 568078 2007-08-21 11:43:25Z amassari $
00020  */
00021 
00022 #if !defined(XSIDCDEFINITION_HPP)
00023 #define XSIDCDEFINITION_HPP
00024 
00025 #include <xercesc/framework/psvi/XSObject.hpp>
00026 
00027 XERCES_CPP_NAMESPACE_BEGIN
00028 
00036 // forward declarations
00037 class XSAnnotation;
00038 class IdentityConstraint;
00039 
00040 class XMLPARSER_EXPORT XSIDCDefinition : public XSObject
00041 {
00042 public:
00043 
00044     // Identity Constraints
00045     enum IC_CATEGORY {
00049         IC_KEY                    = 1,
00053         IC_KEYREF                 = 2,
00057         IC_UNIQUE                 = 3
00058     };
00059 
00060     //  Constructors and Destructor
00061     // -----------------------------------------------------------------------
00064 
00075     XSIDCDefinition
00076     (
00077         IdentityConstraint* const identityConstraint
00078         , XSIDCDefinition*  const keyIC
00079         , XSAnnotation* const     headAnnot
00080         , StringList* const       stringList
00081         , XSModel* const          xsModel
00082         , MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager
00083     );
00084 
00086 
00089     ~XSIDCDefinition();
00091 
00092     //---------------------
00096 
00101     const XMLCh* getName();
00102 
00107     const XMLCh* getNamespace();
00108 
00114     XSNamespaceItem *getNamespaceItem();
00115 
00117 
00118     //---------------------
00122 
00126     IC_CATEGORY getCategory() const;
00127 
00131     const XMLCh *getSelectorStr();
00132 
00136     StringList *getFieldStrs();
00137 
00143     XSIDCDefinition *getRefKey() const;
00144 
00148     XSAnnotationList *getAnnotations();
00149 
00151 
00152     //----------------------------------
00156 
00158 private:
00159 
00160     // -----------------------------------------------------------------------
00161     //  Unimplemented constructors and operators
00162     // -----------------------------------------------------------------------
00163     XSIDCDefinition(const XSIDCDefinition&);
00164     XSIDCDefinition & operator=(const XSIDCDefinition &);
00165 
00166 protected:
00167 
00168     // -----------------------------------------------------------------------
00169     //  data members
00170     // -----------------------------------------------------------------------
00171     IdentityConstraint* fIdentityConstraint;
00172     XSIDCDefinition*    fKey;
00173     StringList*         fStringList;
00174     XSAnnotationList*   fXSAnnotationList;
00175 };
00176 
00177 
00178 inline StringList* XSIDCDefinition::getFieldStrs()
00179 {
00180     return fStringList;
00181 }
00182 
00183 inline XSIDCDefinition* XSIDCDefinition::getRefKey() const
00184 {
00185     return fKey;
00186 }
00187 
00188 XERCES_CPP_NAMESPACE_END
00189 
00190 #endif

Generated on Thu Feb 19 11:35:44 2009 for Xerces-C++ by  doxygen 1.5.4