00001 /* 00002 * Copyright 2003-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 /* 00019 * Revision 1.1 2004/05/25 samisa 00020 * Added copy constructure and clone for copy constructing derived classes 00021 */ 00022 00023 /* 00024 * Revision 1.2 2004/06/13 roshan 00025 * Added doxygen comments to help autobuild API docs 00026 */ 00027 00028 00029 #if !defined(_CHARACTERELEMENT_H____OF_AXIS_INCLUDED_) 00030 #define _CHARACTERELEMENT_H____OF_AXIS_INCLUDED_ 00031 00032 #ifdef WIN32 00033 #pragma warning (disable : 4786) 00034 #endif 00035 00036 #include "BasicNode.h" 00037 00045 class CharacterElement : public BasicNode 00046 { 00047 public: 00048 bool operator ==( const CharacterElement &objChEle); 00049 00056 int setValue(const AxisChar* pachValue); 00057 00063 const AxisChar* getValue() const; 00064 00072 int getNoOfChildren() {return 0;} 00073 00081 const BasicNode* getFirstChild() const {return NULL;} 00082 00090 const BasicNode* getLastChild() const {return NULL;} 00091 00100 const BasicNode* getChild(int iChildPosition) const {return NULL;} 00101 00111 int setURI(const AxisChar* sURI) {return AXIS_FAIL;} 00112 00122 int addChild(BasicNode* pBasicNode) {return AXIS_FAIL;} 00123 00133 int setLocalName(const AxisChar* sLocalName) {return AXIS_FAIL;} 00134 00144 int setPrefix(const AxisChar* sPrefix) {return AXIS_FAIL;} 00145 00146 int serialize(SoapSerializer& pSZ); 00147 00152 int serialize(SoapSerializer& pSZ, 00153 list<AxisChar*>& lstTmpNameSpaceStack) {return AXIS_SUCCESS;} 00154 00162 NODE_TYPE getNodeType() const; 00163 00169 CharacterElement(const AxisChar* sValue); 00170 00174 CharacterElement(); 00175 00176 CharacterElement(const CharacterElement& rCopy); 00177 BasicNode* clone(); 00178 00182 virtual ~CharacterElement(); 00183 }; 00184 00185 #endif