oxs_axiom.h

Go to the documentation of this file.
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 OXS_AXIOM_H
00019 #define OXS_AXIOM_H
00020 
00021 
00027 #include <axis2_defines.h>
00028 #include <axutil_env.h>
00029 #include <axis2_util.h>
00030 #include <axiom_node.h>
00031 #include <axiom_util.h>
00032 #include <axiom_document.h>
00033 #include <axiom.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039 
00054     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00055     oxs_axiom_add_attribute(const axutil_env_t *env,
00056                             axiom_node_t* node,
00057                             axis2_char_t* attribute_ns,
00058                             axis2_char_t* attribute_ns_uri,
00059                             axis2_char_t* attribute,
00060                             axis2_char_t* value);
00071     AXIS2_EXTERN int AXIS2_CALL
00072     oxs_axiom_get_number_of_children_with_qname(const axutil_env_t *env,
00073             axiom_node_t* parent,
00074             axis2_char_t* local_name,
00075             axis2_char_t* ns_uri,
00076             axis2_char_t* prefix);
00077 
00086     AXIS2_EXTERN axiom_node_t* AXIS2_CALL
00087     oxs_axiom_get_node_by_local_name(const axutil_env_t *env,
00088                                      axiom_node_t *node,
00089                                      axis2_char_t *local_name);
00099     AXIS2_EXTERN axiom_node_t* AXIS2_CALL
00100     oxs_axiom_get_node_by_id(const axutil_env_t *env,
00101                              axiom_node_t *node,
00102                              axis2_char_t *attr,
00103                              axis2_char_t *val,
00104                              axis2_char_t *ns);
00105 
00114     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00115     oxs_axiom_get_attribute_value_of_node_by_name(const axutil_env_t *env,
00116             axiom_node_t *node,
00117             axis2_char_t *attribute_name,
00118             axis2_char_t *ns);
00119 
00120     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00121     oxs_axiom_get_attribute_val_of_node_by_qname(const axutil_env_t *env,
00122             axiom_node_t *node,
00123             axutil_qname_t *qname);
00124 
00125     AXIS2_EXTERN axiom_node_t* AXIS2_CALL
00126     oxs_axiom_get_first_child_node_by_name(const axutil_env_t *env,
00127                                            axiom_node_t* parent,
00128                                            axis2_char_t* local_name,
00129                                            axis2_char_t* ns_uri,
00130                                            axis2_char_t* prefix);
00131     /*
00132      * Returns content of a node
00133      * 
00134      */
00135     AXIS2_EXTERN axis2_char_t* AXIS2_CALL
00136     oxs_axiom_get_node_content(const axutil_env_t *env, axiom_node_t* node);
00137 
00138 
00139     AXIS2_EXTERN axiom_node_t *AXIS2_CALL
00140     oxs_axiom_deserialize_node(const axutil_env_t *env,  axis2_char_t* buffer);
00144     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00145     oxs_axiom_check_node_name(const axutil_env_t *env, axiom_node_t* node, axis2_char_t* name, axis2_char_t* ns);
00146 
00148 #ifdef __cplusplus
00149 }
00150 #endif
00151 
00152 #endif                          /* OXS_AXIOM_H */

Generated on Thu Oct 4 17:37:07 2007 for Rampart/C by  doxygen 1.4.7