# 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     axiom_text_create_with_data_handler(
    00089         const axutil_env_t * env,
    00090         axiom_node_t * parent,
    00091         axiom_data_handler_t * data_handler,
    00092         axiom_node_t ** node);
    00093
    00101     AXIS2_EXTERN void AXIS2_CALL
    00102     axiom_text_free(
    00103         struct axiom_text *om_text,
    00104         const axutil_env_t * env);
    00105
    00114     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00115     axiom_text_serialize(
    00116         struct axiom_text *om_text,
    00117         const axutil_env_t * env,
    00118         axiom_output_t * om_output);
    00119
    00128     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00129     axiom_text_set_value(
    00130         struct axiom_text *om_text,
    00131         const axutil_env_t * env,
    00132         const axis2_char_t * value);
    00133
    00140     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
    00141     axiom_text_get_value(
    00142         struct axiom_text *om_text,
    00143         const axutil_env_t * env);
    00144
    00153     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00154     axiom_text_set_value_str(
    00155         struct axiom_text *om_text,
    00156         const axutil_env_t * env,
    00157         axutil_string_t * value);
    00158
    00166     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
    00167     axiom_text_get_text(
    00168         axiom_text_t * om_text,
    00169         const axutil_env_t * env);
    00170
    00177     AXIS2_EXTERN axutil_string_t *AXIS2_CALL
    00178     axiom_text_get_value_str(
    00179         struct axiom_text *om_text,
    00180         const axutil_env_t * env);
    00181
    00189     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00190     axiom_text_set_optimize(
    00191         struct axiom_text *om_text,
    00192         const axutil_env_t * env,
    00193         axis2_bool_t optimize);
    00194
    00201     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00202     axiom_text_set_is_binary(
    00203         struct axiom_text *om_text,
    00204         const axutil_env_t * env,
    00205         const axis2_bool_t is_binary);
    00206
    00214     AXIS2_EXTERN axiom_data_handler_t *AXIS2_CALL
    00215     axiom_text_get_data_handler(
    00216         struct axiom_text *om_text,
    00217         const axutil_env_t * env);
    00218
    00226     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00227     axiom_text_get_content_id(
    00228         struct axiom_text *om_text,
    00229         const axutil_env_t * env);
    00230
    00239     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00240     axiom_text_set_content_id(
    00241         axiom_text_t * om_text,
    00242         const axutil_env_t * env,
    00243         const axis2_char_t * content_id);
    00244
    00253     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00254     axiom_text_set_is_swa(
    00255         struct axiom_text *om_text,
    00256         const axutil_env_t * env,
    00257         const axis2_bool_t is_swa);
    00258
    00261 #ifdef __cplusplus
    00262 }
    00263 #endif
    00264
    00265 #endif                          /* AXIOM_TEXT_H */