| API Docs for SAX and DOM |

- Main Page
- Classes
- Files
- Related Pages

# PSVIElement.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: PSVIElement.hpp 568078 2007-08-21 11:43:25Z amassari $
    00020  */
    00021
    00022 #if !defined(PSVIELEMENT_HPP)
    00023 #define PSVIELEMENT_HPP
    00024
    00025 #include <xercesc/framework/psvi/PSVIItem.hpp>
    00026
    00027 XERCES_CPP_NAMESPACE_BEGIN
    00028
    00036 // forward declarations
    00037 class XSElementDeclaration;
    00038 class XSNotationDeclaration;
    00039 class XSModel;
    00040
    00041 class  PSVIElement : public PSVIItem
    00042 {
    00043 public:
    00044
    00045     //  Constructors and Destructor
    00046     // -----------------------------------------------------------------------
    00049
    00055     PSVIElement( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
    00056
    00058
    00061     ~PSVIElement();
    00063
    00064     //---------------------
    00068
    00075     XSElementDeclaration *getElementDeclaration();
    00076
    00082     XSNotationDeclaration *getNotationDeclaration();
    00083
    00090     XSModel *getSchemaInformation();
    00091
    00097     XSTypeDefinition *getTypeDefinition();
    00098
    00108     XSSimpleTypeDefinition *getMemberTypeDefinition();
    00109
    00111
    00112     //----------------------------------
    00116     void reset
    00117     (
    00118         const VALIDITY_STATE            validityState
    00119         , const ASSESSMENT_TYPE         assessmentType
    00120         , const XMLCh* const            validationContext
    00121         , bool                          isSpecified
    00122         , XSElementDeclaration* const   elemDecl
    00123         , XSTypeDefinition* const       typeDef
    00124         , XSSimpleTypeDefinition* const memberType
    00125         , XSModel* const                schemaInfo
    00126         , const XMLCh* const            defaultValue
    00127         , const XMLCh* const            normalizedValue = 0
    00128         , XMLCh* const                  canonicalValue = 0
    00129         , XSNotationDeclaration* const  notationDecl = 0
    00130     );
    00131
    00133
    00134 private:
    00135
    00136     // -----------------------------------------------------------------------
    00137     //  Unimplemented constructors and operators
    00138     // -----------------------------------------------------------------------
    00139     PSVIElement(const PSVIElement&);
    00140     PSVIElement & operator=(const PSVIElement &);
    00141
    00142
    00143     // -----------------------------------------------------------------------
    00144     //  data members
    00145     // -----------------------------------------------------------------------
    00146     // fElementDecl
    00147     //  element declaration component that validated this element
    00148     // fNotationDecl
    00149     //  (optional) notation decl associated with this element
    00150     // fSchemaInfo
    00151     //  Schema Information Item with which this validation episode is associated
    00152     XSElementDeclaration *fElementDecl;
    00153     XSNotationDeclaration *fNotationDecl;
    00154     XSModel *fSchemaInfo;
    00155 };
    00156
    00157 inline XSElementDeclaration *PSVIElement::getElementDeclaration()
    00158 {
    00159     return fElementDecl;
    00160 }
    00161
    00162 inline XSNotationDeclaration* PSVIElement::getNotationDeclaration()
    00163 {
    00164     return fNotationDecl;
    00165 }
    00166
    00167 inline XSModel* PSVIElement::getSchemaInformation()
    00168 {
    00169     return fSchemaInfo;
    00170 }
    00171
    00172 XERCES_CPP_NAMESPACE_END
    00173
    00174 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.