[2674] | 1 | /* |
---|
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 3 | * contributor license agreements. See the NOTICE file distributed with |
---|
| 4 | * this work for additional information regarding copyright ownership. |
---|
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 6 | * (the "License"); you may not use this file except in compliance with |
---|
| 7 | * the License. You may obtain a copy of the License at |
---|
| 8 | * |
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 10 | * |
---|
| 11 | * Unless required by applicable law or agreed to in writing, software |
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 14 | * See the License for the specific language governing permissions and |
---|
| 15 | * limitations under the License. |
---|
| 16 | */ |
---|
| 17 | |
---|
| 18 | /* |
---|
| 19 | * $Id: IC_Unique.hpp 568078 2007-08-21 11:43:25Z amassari $ |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | #if !defined(IC_UNIQUE_HPP) |
---|
| 23 | #define IC_UNIQUE_HPP |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | /** |
---|
| 27 | * Schema unique identity constraint |
---|
| 28 | */ |
---|
| 29 | |
---|
| 30 | // --------------------------------------------------------------------------- |
---|
| 31 | // Includes |
---|
| 32 | // --------------------------------------------------------------------------- |
---|
| 33 | #include <xercesc/validators/schema/identity/IdentityConstraint.hpp> |
---|
| 34 | |
---|
| 35 | XERCES_CPP_NAMESPACE_BEGIN |
---|
| 36 | |
---|
| 37 | class VALIDATORS_EXPORT IC_Unique: public IdentityConstraint |
---|
| 38 | { |
---|
| 39 | public: |
---|
| 40 | // ----------------------------------------------------------------------- |
---|
| 41 | // Constructors/Destructor |
---|
| 42 | // ----------------------------------------------------------------------- |
---|
| 43 | IC_Unique(const XMLCh* const identityConstraintName, |
---|
| 44 | const XMLCh* const elemName, |
---|
| 45 | MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager); |
---|
| 46 | ~IC_Unique(); |
---|
| 47 | |
---|
| 48 | // ----------------------------------------------------------------------- |
---|
| 49 | // Getter methods |
---|
| 50 | // ----------------------------------------------------------------------- |
---|
| 51 | short getType() const; |
---|
| 52 | |
---|
| 53 | /*** |
---|
| 54 | * Support for Serialization/De-serialization |
---|
| 55 | ***/ |
---|
| 56 | DECL_XSERIALIZABLE(IC_Unique) |
---|
| 57 | |
---|
| 58 | IC_Unique(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager); |
---|
| 59 | |
---|
| 60 | private: |
---|
| 61 | // ----------------------------------------------------------------------- |
---|
| 62 | // Unimplemented contstructors and operators |
---|
| 63 | // ----------------------------------------------------------------------- |
---|
| 64 | IC_Unique(const IC_Unique& other); |
---|
| 65 | IC_Unique& operator= (const IC_Unique& other); |
---|
| 66 | }; |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | // --------------------------------------------------------------------------- |
---|
| 70 | // IC_Unique: Getter methods |
---|
| 71 | // --------------------------------------------------------------------------- |
---|
| 72 | inline short IC_Unique::getType() const { |
---|
| 73 | |
---|
| 74 | return IdentityConstraint::UNIQUE; |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | XERCES_CPP_NAMESPACE_END |
---|
| 78 | |
---|
| 79 | #endif |
---|
| 80 | |
---|
| 81 | /** |
---|
| 82 | * End of file IC_Unique.hpp |
---|
| 83 | */ |
---|
| 84 | |
---|