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: DOMLSInput.hpp 527149 2007-04-10 14:56:39Z amassari $ 00020 */ 00021 00022 #if !defined(XERCESC_INCLUDE_GUARD_DOMLSINPUT_HPP) 00023 #define XERCESC_INCLUDE_GUARD_DOMLSINPUT_HPP 00024 00025 #include <xercesc/util/XercesDefs.hpp> 00026 00027 XERCES_CPP_NAMESPACE_BEGIN 00028 00029 00030 class InputSource; 00031 00032 00059 class CDOM_EXPORT DOMLSInput 00060 { 00061 protected: 00062 // ----------------------------------------------------------------------- 00063 // Hidden constructors 00064 // ----------------------------------------------------------------------- 00067 DOMLSInput() {}; 00069 00070 private: 00071 // ----------------------------------------------------------------------- 00072 // Unimplemented constructors and operators 00073 // ----------------------------------------------------------------------- 00076 DOMLSInput(const DOMLSInput &); 00077 DOMLSInput & operator = (const DOMLSInput &); 00079 00080 public: 00081 // ----------------------------------------------------------------------- 00082 // All constructors are hidden, just the destructor is available 00083 // ----------------------------------------------------------------------- 00090 virtual ~DOMLSInput() {}; 00092 00093 // ----------------------------------------------------------------------- 00094 // Virtual DOMLSInput interface 00095 // ----------------------------------------------------------------------- 00098 // ----------------------------------------------------------------------- 00099 // Getter methods 00100 // ----------------------------------------------------------------------- 00107 virtual const XMLCh* getStringData() const = 0; 00108 00114 virtual InputSource* getByteStream() const = 0; 00115 00126 virtual const XMLCh* getEncoding() const = 0; 00127 00128 00136 virtual const XMLCh* getPublicId() const = 0; 00137 00138 00148 virtual const XMLCh* getSystemId() const = 0; 00149 00150 00160 virtual const XMLCh* getBaseURI() const = 0; 00161 00162 // ----------------------------------------------------------------------- 00163 // Setter methods 00164 // ----------------------------------------------------------------------- 00165 // ----------------------------------------------------------------------- 00170 virtual void setStringData(const XMLCh* data) = 0; 00171 00177 virtual void setByteStream(InputSource* stream) = 0; 00178 00191 virtual void setEncoding(const XMLCh* const encodingStr) = 0; 00192 00193 00204 virtual void setPublicId(const XMLCh* const publicId) = 0; 00205 00219 virtual void setSystemId(const XMLCh* const systemId) = 0; 00220 00230 virtual void setBaseURI(const XMLCh* const baseURI) = 0; 00232 00233 // ----------------------------------------------------------------------- 00234 // Non-standard Extension 00235 // ----------------------------------------------------------------------- 00238 00248 virtual void setIssueFatalErrorIfNotFound(bool flag) = 0; 00249 00250 00259 virtual bool getIssueFatalErrorIfNotFound() const = 0; 00260 00267 virtual void release() = 0; 00269 }; 00270 00271 00272 XERCES_CPP_NAMESPACE_END 00273 00274 #endif