OMText.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2005-2009 WSO2, Inc. http://wso2.com
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 #ifndef OMTEXT_H
00018 #define OMTEXT_H
00019 
00020 #include <WSFDefines.h>
00021 #include <axiom_text.h>
00022 #include <OMNode.h>
00023 #include <OMElement.h>
00024 #include <OMDataHandler.h>
00025 
00034 namespace wso2wsf
00035 {
00045     class OMText : public OMNode
00046     {
00047     private:
00052         axiom_text_t * _wsf_axiom_text;
00053 
00058         OMDataHandler * _data_handler;
00059 
00060     public:
00066         WSF_EXTERN WSF_CALL OMText(OMNode * parent, std::string value);
00067 
00072         WSF_EXTERN WSF_CALL OMText(std::string value);
00073 
00079         WSF_EXTERN WSF_CALL OMText(OMNode * parent, OMDataHandler * dataHandler);
00080 
00085         WSF_EXTERN WSF_CALL OMText(OMDataHandler * data_handler);
00086 
00090         WSF_EXTERN WSF_CALL OMText();
00091 
00097         WSF_CALL OMText(OMNode * parent, axiom_node_t * node);
00098 
00102         WSF_CALL ~OMText();
00103 
00110         WSF_EXTERN bool WSF_CALL setValue(std::string value);
00111 
00116         WSF_EXTERN std::string WSF_CALL getValue();
00117 
00123         WSF_EXTERN std::string WSF_CALL getText();
00124 
00129         WSF_EXTERN void WSF_CALL optimize(bool optimize);
00130 
00135         WSF_EXTERN void WSF_CALL isBinary(bool is_binary);
00136 
00141         WSF_EXTERN OMDataHandler * WSF_CALL getDataHandler();
00142 
00147         WSF_EXTERN std::string WSF_CALL getContentId();
00148 
00155         WSF_EXTERN bool WSF_CALL setContentId(std::string content_id);
00156 
00163         WSF_EXTERN virtual axiom_types_t WSF_CALL nodeType();
00164     };
00166 }
00167 #endif // OMTEXT_H

Generated on Wed Oct 14 00:43:25 2009 for WSF/CPP by  doxygen 1.5.7.1