http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Charter
Release Info

Installation
Download
Build Instructions

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

Source Repository
User Mail Archive
Devel Mail Archive

API Docs for SAX and DOM
 

XMLResourceIdentifier.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2000,2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Id: XMLResourceIdentifier.hpp 231514 2005-08-11 20:53:29Z amassari $
00019  */
00020 
00021 #ifndef XMLRESOURCEIDENTIFIER_HPP
00022 #define XMLRESOURCEIDENTIFIER_HPP
00023 
00024 XERCES_CPP_NAMESPACE_BEGIN
00025 
00026 class Locator;
00027 
00094 class  XMLResourceIdentifier
00095 {
00096 public:
00097 
00100     enum ResourceIdentifierType {
00101         SchemaGrammar = 0,
00102         SchemaImport,
00103         SchemaInclude,
00104         SchemaRedefine ,
00105         ExternalEntity,
00106         UnKnown = 255    
00107     };
00109    
00114     XMLResourceIdentifier(const ResourceIdentifierType resourceIdentitiferType
00115                             , const XMLCh* const  systemId
00116                             , const XMLCh* const  nameSpace = 0
00117                             , const XMLCh* const  publicId = 0
00118                             , const XMLCh* const  baseURI = 0
00119                             , const Locator*      locator = 0);
00120 
00122     ~XMLResourceIdentifier()
00123     {
00124     }
00125 
00127 
00128     // -----------------------------------------------------------------------
00129     //  Getter methods
00130     // -----------------------------------------------------------------------
00133     ResourceIdentifierType getResourceIdentifierType() const;
00134     const XMLCh* getPublicId()          const;
00135     const XMLCh* getSystemId()          const;
00136     const XMLCh* getSchemaLocation()    const;
00137     const XMLCh* getBaseURI()           const;
00138     const XMLCh* getNameSpace()         const;
00139     const Locator* getLocator()         const;
00141 
00142 private :
00143 
00144     const ResourceIdentifierType    fResourceIdentifierType;
00145     const XMLCh*                    fPublicId;
00146     const XMLCh*                    fSystemId;
00147     const XMLCh*                    fBaseURI;
00148     const XMLCh*                    fNameSpace;
00149     const Locator*                  fLocator;
00150 
00151     /* Unimplemented constructors and operators */
00152 
00153     /* Copy constructor */
00154     XMLResourceIdentifier(const XMLResourceIdentifier&);
00155 
00156     /* Assignment operator */
00157     XMLResourceIdentifier& operator=(const XMLResourceIdentifier&);
00158 
00159 };
00160 
00161 inline XMLResourceIdentifier::ResourceIdentifierType XMLResourceIdentifier::getResourceIdentifierType() const 
00162 {
00163     return fResourceIdentifierType;
00164 }
00165 
00166 inline const XMLCh* XMLResourceIdentifier::getPublicId() const
00167 {
00168     return fPublicId;
00169 }
00170 
00171 inline const XMLCh* XMLResourceIdentifier::getSystemId() const
00172 {
00173     return fSystemId;
00174 }
00175 
00176 inline const XMLCh* XMLResourceIdentifier::getSchemaLocation() const
00177 {
00178     return fSystemId;
00179 }
00180 
00181 inline const XMLCh* XMLResourceIdentifier::getBaseURI() const
00182 {
00183     return fBaseURI;
00184 }
00185 
00186 inline const XMLCh* XMLResourceIdentifier::getNameSpace() const
00187 {
00188     return fNameSpace;
00189 }
00190 
00191 inline const Locator* XMLResourceIdentifier::getLocator() const
00192 {
00193     return fLocator;
00194 }
00195 
00196 inline XMLResourceIdentifier::XMLResourceIdentifier(const ResourceIdentifierType resourceIdentifierType
00197                             , const XMLCh* const  systemId
00198                             , const XMLCh* const  nameSpace
00199                             , const XMLCh* const  publicId
00200                             , const XMLCh* const  baseURI
00201                             , const Locator*      locator )
00202     : fResourceIdentifierType(resourceIdentifierType)
00203     , fPublicId(publicId)
00204     , fSystemId(systemId)
00205     , fBaseURI(baseURI)     
00206     , fNameSpace(nameSpace)
00207     , fLocator(locator)
00208 {
00209 }
00210 
00211 XERCES_CPP_NAMESPACE_END
00212 
00213 #endif


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