axiom_text.h

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 #ifndef AXIOM_TEXT_H
00019 #define AXIOM_TEXT_H
00020 
00021 #include <axutil_env.h>
00022 #include <axiom_node.h>
00023 #include <axiom_output.h>
00024 #include <axiom_data_handler.h>
00025 
00026 #ifdef __cplusplus
00027 extern "C"
00028 {
00029 #endif
00030 
00037     typedef struct axiom_text axiom_text_t;
00038 
00039 
00051     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00052     axiom_text_create(const axutil_env_t *env,
00053         axiom_node_t *parent,
00054         const axis2_char_t *value,
00055         axiom_node_t ** node);
00056 
00068     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00069     axiom_text_create_str(const axutil_env_t *env,
00070         axiom_node_t *parent,
00071         axutil_string_t *value,
00072         axiom_node_t ** node);
00073 
00085     AXIS2_EXTERN axiom_text_t *AXIS2_CALL
00086     axiom_text_create_with_data_handler(const axutil_env_t *env,
00087         axiom_node_t * parent,
00088         axiom_data_handler_t* data_handler,
00089         axiom_node_t **node);
00090 
00098     AXIS2_EXTERN void AXIS2_CALL
00099     axiom_text_free(struct axiom_text *om_text,
00100         const axutil_env_t *env);
00101 
00110     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00111     axiom_text_serialize(struct axiom_text *om_text,
00112             const axutil_env_t *env,
00113             axiom_output_t *om_output);
00114 
00123     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00124     axiom_text_set_value(struct axiom_text *om_text,
00125         const axutil_env_t *env,
00126         const axis2_char_t *value);
00127 
00134     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00135     axiom_text_get_value(struct axiom_text *om_text,
00136         const axutil_env_t *env);
00137 
00146     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00147     axiom_text_set_value_str(struct axiom_text *om_text,
00148         const axutil_env_t *env,
00149         axutil_string_t *value);
00150 
00157     AXIS2_EXTERN axutil_string_t *AXIS2_CALL
00158     axiom_text_get_value_str(struct axiom_text *om_text,
00159         const axutil_env_t *env);
00160 
00168     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00169     axiom_text_set_optimize(struct axiom_text *om_text,
00170         const axutil_env_t *env,
00171         axis2_bool_t optimize);
00172 
00179     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00180     axiom_text_set_is_binary(struct axiom_text *om_text,
00181         const axutil_env_t *env,
00182         const axis2_bool_t is_binary);
00183 
00184     AXIS2_EXTERN axiom_data_handler_t *AXIS2_CALL
00185     axiom_text_get_data_handler(struct axiom_text *om_text,
00186         const axutil_env_t *env);
00187 
00188     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00189     axiom_text_get_content_id(struct axiom_text *om_text,
00190         const axutil_env_t *env);
00191 
00194 #ifdef __cplusplus
00195 }
00196 #endif
00197 
00198 #endif                          /* AXIOM_TEXT_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6