# axiom_namespace.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_NAMESPACE_H
    00020 #define AXIOM_NAMESPACE_H
    00021
    00022 #include <axutil_utils_defines.h>
    00023 #include <axutil_env.h>
    00024 #include <axiom_output.h>
    00025 #include <axutil_string.h>
    00026
    00027 #ifdef __cplusplus
    00028 extern "C"
    00029 {
    00030 #endif
    00031
    00038     typedef struct axiom_namespace axiom_namespace_t;
    00039
    00046     AXIS2_EXTERN axiom_namespace_t *AXIS2_CALL
    00047     axiom_namespace_create(
    00048         const axutil_env_t * env,
    00049         const axis2_char_t * uri,
    00050         const axis2_char_t * prefix);
    00051
    00058     AXIS2_EXTERN void AXIS2_CALL
    00059     axiom_namespace_free(
    00060         struct axiom_namespace *om_namespace,
    00061         const axutil_env_t * env);
    00062
    00070     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00071     axiom_namespace_equals(
    00072         struct axiom_namespace *om_namespace,
    00073         const axutil_env_t * env,
    00074         struct axiom_namespace *om_namespace1);
    00075
    00083     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00084     axiom_namespace_serialize(
    00085         struct axiom_namespace *om_namespace,
    00086         const axutil_env_t * env,
    00087         axiom_output_t * om_output);
    00088
    00094     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00095     axiom_namespace_get_uri(
    00096         struct axiom_namespace *om_namespace,
    00097         const axutil_env_t * env);
    00098
    00104     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00105     axiom_namespace_get_prefix(
    00106         struct axiom_namespace *om_namespace,
    00107         const axutil_env_t * env);
    00108
    00115     AXIS2_EXTERN struct axiom_namespace *AXIS2_CALL
    00116                 axiom_namespace_clone(
    00117                     struct axiom_namespace *om_namespace,
    00118                     const axutil_env_t * env);
    00119
    00128     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
    00129     axiom_namespace_to_string(
    00130         struct axiom_namespace *om_namespace,
    00131         const axutil_env_t * env);
    00132
    00140     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00141     axiom_namespace_increment_ref(
    00142         struct axiom_namespace *om_namespace,
    00143         const axutil_env_t * env);
    00144
    00152     AXIS2_EXTERN axiom_namespace_t *AXIS2_CALL
    00153     axiom_namespace_create_str(
    00154         const axutil_env_t * env,
    00155         axutil_string_t * uri,
    00156         axutil_string_t * prefix);
    00157
    00165     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00166     axiom_namespace_set_uri_str(
    00167         axiom_namespace_t * om_namespace,
    00168         const axutil_env_t * env,
    00169         axutil_string_t * uri);
    00170
    00178     AXIS2_EXTERN axutil_string_t *AXIS2_CALL
    00179     axiom_namespace_get_uri_str(
    00180         axiom_namespace_t * om_namespace,
    00181         const axutil_env_t * env);
    00182
    00190     AXIS2_EXTERN axutil_string_t *AXIS2_CALL
    00191     axiom_namespace_get_prefix_str(
    00192         axiom_namespace_t * om_namespace,
    00193         const axutil_env_t * env);
    00194
    00197 #ifdef __cplusplus
    00198 }
    00199 #endif
    00200
    00201 #endif                          /* AXIOM_NAMESPACE */