axiom_text.h

00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXIOM_TEXT_H
00020 #define AXIOM_TEXT_H
00021 
00022 #include <axutil_env.h>
00023 #include <axiom_node.h>
00024 #include <axiom_output.h>
00025 #include <axiom_data_handler.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C"
00029 {
00030 #endif
00031 
00038     typedef struct axiom_text axiom_text_t;
00039 
00051     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00052     axiom_text_create(
00053         const axutil_env_t * env,
00054         axiom_node_t * parent,
00055         const axis2_char_t * value,
00056         axiom_node_t ** node);
00057 
00069     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00070     axiom_text_create_str(
00071         const axutil_env_t * env,
00072         axiom_node_t * parent,
00073         axutil_string_t * value,
00074         axiom_node_t ** node);
00075 
00087     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00088 
00089     axiom_text_create_with_data_handler(
00090         const axutil_env_t * env,
00091         axiom_node_t * parent,
00092         axiom_data_handler_t * data_handler,
00093         axiom_node_t ** node);
00094 
00102     AXIS2_EXTERN void AXIS2_CALL
00103     axiom_text_free(
00104         struct axiom_text *om_text,
00105         const axutil_env_t * env);
00106 
00115     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00116     axiom_text_serialize(
00117         struct axiom_text *om_text,
00118         const axutil_env_t * env,
00119         axiom_output_t * om_output);
00120 
00129     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00130     axiom_text_set_value(
00131         struct axiom_text *om_text,
00132         const axutil_env_t * env,
00133         const axis2_char_t * value);
00134 
00141     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00142     axiom_text_get_value(
00143         struct axiom_text *om_text,
00144         const axutil_env_t * env);
00145 
00154     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00155     axiom_text_set_value_str(
00156         struct axiom_text *om_text,
00157         const axutil_env_t * env,
00158         axutil_string_t * value);
00159 
00167     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00168     axiom_text_get_text(
00169         axiom_text_t * om_text,
00170         const axutil_env_t * env);
00171 
00178     AXIS2_EXTERN axutil_string_t *AXIS2_CALL
00179     axiom_text_get_value_str(
00180         struct axiom_text *om_text,
00181         const axutil_env_t * env);
00182 
00190     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00191     axiom_text_set_optimize(
00192         struct axiom_text *om_text,
00193         const axutil_env_t * env,
00194         axis2_bool_t optimize);
00195 
00202     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00203     axiom_text_set_is_binary(
00204         struct axiom_text *om_text,
00205         const axutil_env_t * env,
00206         const axis2_bool_t is_binary);
00207 
00208     AXIS2_EXTERN axiom_data_handler_t *AXIS2_CALL
00209 
00210     axiom_text_get_data_handler(
00211         struct axiom_text *om_text,
00212         const axutil_env_t * env);
00213 
00214     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00215     axiom_text_get_content_id(
00216         struct axiom_text *om_text,
00217         const axutil_env_t * env);
00218 
00219     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00220     axiom_text_set_content_id(
00221         axiom_text_t * om_text,
00222         const axutil_env_t * env,
00223         const axis2_char_t * content_id);
00224 
00227 #ifdef __cplusplus
00228 }
00229 #endif
00230 
00231 #endif                          /* AXIOM_TEXT_H */

Generated on Wed Jan 2 17:42:50 2008 for Axis2/C by  doxygen 1.5.1