secureswitools/swisistools/source/xmlparser/xerces/include/xercesc/validators/datatype/DateDatatypeValidator.hpp
changeset 0 ba25891c3a9e
child 1 c42dffbd5b4f
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 /*
       
    18  * Licensed to the Apache Software Foundation (ASF) under one or more
       
    19  * contributor license agreements.  See the NOTICE file distributed with
       
    20  * this work for additional information regarding copyright ownership.
       
    21  * The ASF licenses this file to You under the Apache License, Version 2.0
       
    22  * (the "License"); you may not use this file except in compliance with
       
    23  * the License.  You may obtain a copy of the License at
       
    24  * 
       
    25  *      http://www.apache.org/licenses/LICENSE-2.0
       
    26  * 
       
    27  * Unless required by applicable law or agreed to in writing, software
       
    28  * distributed under the License is distributed on an "AS IS" BASIS,
       
    29  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    30  * See the License for the specific language governing permissions and
       
    31  * limitations under the License.
       
    32  */
       
    33 
       
    34 /*
       
    35  * $Id: DateDatatypeValidator.hpp 568078 2007-08-21 11:43:25Z amassari $
       
    36  */
       
    37 
       
    38 #if !defined(DATE_DATATYPE_VALIDATOR_HPP)
       
    39 #define DATE_DATATYPE_VALIDATOR_HPP
       
    40 
       
    41 #include <xercesc/validators/datatype/DateTimeValidator.hpp>
       
    42 
       
    43 XERCES_CPP_NAMESPACE_BEGIN
       
    44 
       
    45 class VALIDATORS_EXPORT DateDatatypeValidator : public DateTimeValidator
       
    46 {
       
    47 public:
       
    48 
       
    49     // -----------------------------------------------------------------------
       
    50     //  Public ctor/dtor
       
    51     // -----------------------------------------------------------------------
       
    52 	/** @name Constructors and Destructor */
       
    53     //@{
       
    54 
       
    55     DateDatatypeValidator
       
    56     (
       
    57         MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
       
    58     );
       
    59     DateDatatypeValidator
       
    60     (
       
    61         DatatypeValidator* const baseValidator
       
    62         , RefHashTableOf<KVStringPair>* const facets
       
    63         , RefArrayVectorOf<XMLCh>* const enums
       
    64         , const int finalSet
       
    65         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
       
    66     );
       
    67     ~DateDatatypeValidator();
       
    68 
       
    69 	//@}
       
    70 
       
    71     /**
       
    72       * Returns an instance of the base datatype validator class
       
    73 	  * Used by the DatatypeValidatorFactory.
       
    74       */
       
    75     virtual DatatypeValidator* newInstance
       
    76     (
       
    77         RefHashTableOf<KVStringPair>* const facets
       
    78         , RefArrayVectorOf<XMLCh>* const enums
       
    79         , const int finalSet
       
    80         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
       
    81     );
       
    82 
       
    83     virtual const XMLCh* getCanonicalRepresentation
       
    84                         (
       
    85                           const XMLCh*         const rawData
       
    86                         ,       MemoryManager* const memMgr = 0
       
    87                         ,       bool                 toValidate = false
       
    88                         ) const;
       
    89     /***
       
    90      * Support for Serialization/De-serialization
       
    91      ***/
       
    92     DECL_XSERIALIZABLE(DateDatatypeValidator)
       
    93 
       
    94 protected:
       
    95 
       
    96     // -----------------------------------------------------------------------
       
    97     //  implementation of (DateTimeValidator's) virtual interface
       
    98     // -----------------------------------------------------------------------
       
    99     virtual XMLDateTime*          parse(const XMLCh* const, MemoryManager* const manager);
       
   100     virtual void                  parse(XMLDateTime* const);
       
   101 
       
   102 private:
       
   103     // -----------------------------------------------------------------------
       
   104     //  Unimplemented constructors and operators
       
   105     // -----------------------------------------------------------------------
       
   106     DateDatatypeValidator(const DateDatatypeValidator&);
       
   107     DateDatatypeValidator& operator=(const DateDatatypeValidator&);
       
   108 };
       
   109 
       
   110 XERCES_CPP_NAMESPACE_END
       
   111 
       
   112 #endif
       
   113 
       
   114 /**
       
   115   * End of file DateDatatypeValidator.hpp
       
   116   */
       
   117